source: Daodan/src/Daodan_Patch.h@ 1086

Last change on this file since 1086 was 1008, checked in by alloc, 10 years ago

Daodan 3.9: Added AI awareness patch (fixes #36)

File size: 794 bytes
RevLine 
[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]10bool DDrPatch_MakeJump(void* from, void* to);
11bool DDrPatch_MakeCall(void* from, void* to);
[983]12void* DDrPatch_MakeDetour(void* from, void* to);
[689]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);
[351]17bool DDrPatch_NOOP(char* dest, unsigned int length);
[1008]18void* DDrPatch_ExecutableASM(char* from, char* nextInst, const unsigned char* code, int length);
[272]19
[994]20void DDrPatch_PrintDisasm(void* addr, int instLimit, int sizeLimit);
21
[272]22#endif
Note: See TracBrowser for help on using the repository browser.