Last change
on this file since 996 was 994, checked in by alloc, 11 years ago |
Daodan:
- Fix #80
- Reorganization of file hierarchy
|
File size:
696 bytes
|
Rev | Line | |
---|
[272] | 1 | #ifndef DAODAN_PATCH_H
|
---|
| 2 | #define DAODAN_PATCH_H
|
---|
| 3 |
|
---|
[692] | 4 | #include "stdint.h"
|
---|
[272] | 5 |
|
---|
| 6 | #define DDrPatch_Const(d, c) DDrPatch_String(d, c, sizeof(c))
|
---|
| 7 |
|
---|
[677] | 8 | #define OniExe ((char*)0x00400000)
|
---|
[274] | 9 |
|
---|
[272] | 10 | bool DDrPatch_MakeJump(void* from, void* to);
|
---|
| 11 | bool DDrPatch_MakeCall(void* from, void* to);
|
---|
[983] | 12 | void* DDrPatch_MakeDetour(void* from, void* to);
|
---|
[689] | 13 | bool DDrPatch_String(char* dest, const unsigned char* string, int length);
|
---|
| 14 | bool DDrPatch_Byte(char* dest, unsigned char value);
|
---|
| 15 | bool DDrPatch_Int32(int* dest, unsigned int value);
|
---|
| 16 | bool DDrPatch_Int16(short* dest, unsigned short value);
|
---|
[351] | 17 | bool DDrPatch_NOOP(char* dest, unsigned int length);
|
---|
[272] | 18 |
|
---|
[994] | 19 | void DDrPatch_PrintDisasm(void* addr, int instLimit, int sizeLimit);
|
---|
| 20 |
|
---|
[272] | 21 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.