libcod
cracking.hpp
Go to the documentation of this file.
1 #ifndef _CRACKING_HPP_
2 #define _CRACKING_HPP_
3 
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
7 
8  #include <string.h>
9 
10  int cracking_nop(int from, int to);
11  void cracking_hook_function(int from, int to);
12  void cracking_hook_call(int from, int to);
13  int cracking_write_hex(int address, char *hex);
14 
15  int singleHexToNumber(char hexchar);
16  int hexToBuffer(char *hex, char *buffer, int bufferLen);
17 
18  int cracking_call_function(int func_address, char *args, unsigned char *data);
19 #ifdef __cplusplus
20 }
21 #endif
22 
23 #ifdef __cplusplus
24  class cHook
25  {
26  public:
27  int from;
28  int to;
29  unsigned char oldCode[5];
30  cHook(int from, int to);
31  void hook();
32  void unhook();
33  };
34 #endif
35 
36 #endif
int hexToBuffer(char *hex, char *buffer, int bufferLen)
Definition: cracking.cpp:58
void cracking_hook_call(int from, int to)
Definition: cracking.cpp:21
int cracking_nop(int from, int to)
Definition: cracking.cpp:3
int cracking_write_hex(int address, char *hex)
Definition: cracking.cpp:108
void cracking_hook_function(int from, int to)
Definition: cracking.cpp:14
int singleHexToNumber(char hexchar)
Definition: cracking.cpp:29
int cracking_call_function(int func_address, char *args, unsigned char *data)
Definition: cracking.cpp:137