ViewVC Help
View File | Revision Log | View Changeset | Root Listing
root/Oni2/Daodan/Daodan_Patch.h
Revision: 269
Committed: Tue Mar 17 08:53:33 2009 UTC (16 years, 6 months ago) by rossy
Content type: text/x-chdr
File size: 461 byte(s)
Log Message:
Daodan WIP

File Contents

# Content
1 #pragma once
2 #ifndef DAODAN_PATCH_H
3 #define DAODAN_PATCH_H
4
5 #include <stdbool.h>
6
7 #define DDrPatch_Const(d, c) DDrPatch_String(d, c, sizeof(c))
8
9 bool DDrPatch_MakeJump(void* from, void* to);
10 bool DDrPatch_MakeCall(void* from, void* to);
11 bool DDrPatch_String(char* dest, const char* string, int length);
12 bool DDrPatch_Byte(char* dest, char value);
13 bool DDrPatch_Int32(int* dest, int value);
14 bool DDrPatch_Int16(short* dest, short value);
15
16 #endif