Last change
on this file since 691 was 689, checked in by alloc, 12 years ago |
Daodan: Cleaned up code so no major warnings exist
|
File size:
640 bytes
|
Rev | Line | |
---|
[272] | 1 | #pragma once
|
---|
| 2 | #ifndef DAODAN_PATCH_H
|
---|
| 3 | #define DAODAN_PATCH_H
|
---|
| 4 |
|
---|
[677] | 5 | #include "bool.h"
|
---|
[272] | 6 |
|
---|
| 7 | #define DDrPatch_Const(d, c) DDrPatch_String(d, c, sizeof(c))
|
---|
| 8 |
|
---|
[677] | 9 | #define OniExe ((char*)0x00400000)
|
---|
[274] | 10 |
|
---|
[272] | 11 | bool DDrPatch_MakeJump(void* from, void* to);
|
---|
| 12 | bool DDrPatch_MakeCall(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);
|
---|
[677] | 17 | bool DDrPatch__strdup(int* dest, const char* value);
|
---|
[351] | 18 | bool DDrPatch_NOOP(char* dest, unsigned int length);
|
---|
[272] | 19 |
|
---|
| 20 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.