source: Daodan/src/Daodan_Patch.h@ 993

Last change on this file since 993 was 983, checked in by alloc, 11 years ago

Daodan:

File size: 678 bytes
Line 
1#ifndef DAODAN_PATCH_H
2#define DAODAN_PATCH_H
3
4#include "stdint.h"
5
6#define DDrPatch_Const(d, c) DDrPatch_String(d, c, sizeof(c))
7
8#define OniExe ((char*)0x00400000)
9
10bool DDrPatch_MakeJump(void* from, void* to);
11bool DDrPatch_MakeCall(void* from, void* to);
12void* DDrPatch_MakeDetour(void* from, void* to);
13bool DDrPatch_String(char* dest, const unsigned char* string, int length);
14bool DDrPatch_Byte(char* dest, unsigned char value);
15bool DDrPatch_Int32(int* dest, unsigned int value);
16bool DDrPatch_Int16(short* dest, unsigned short value);
17bool DDrPatch__strdup(int* dest, const char* value);
18bool DDrPatch_NOOP(char* dest, unsigned int length);
19
20#endif
Note: See TracBrowser for help on using the repository browser.