ViewVC Help
View File | Revision Log | View Changeset | Root Listing
root/Oni2/Daodan/src/Daodan_Patch.h
Revision: 689
Committed: Mon Mar 4 15:52:19 2013 UTC (12 years, 7 months ago) by alloc
Content type: text/x-chdr
File size: 640 byte(s)
Log Message:
Daodan: Cleaned up code so no major warnings exist

File Contents

# Content
1 #pragma once
2 #ifndef DAODAN_PATCH_H
3 #define DAODAN_PATCH_H
4
5 #include "bool.h"
6
7 #define DDrPatch_Const(d, c) DDrPatch_String(d, c, sizeof(c))
8
9 #define OniExe ((char*)0x00400000)
10
11 bool DDrPatch_MakeJump(void* from, void* to);
12 bool DDrPatch_MakeCall(void* from, void* to);
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);
17 bool DDrPatch__strdup(int* dest, const char* value);
18 bool DDrPatch_NOOP(char* dest, unsigned int length);
19
20 #endif