source: Daodan/MSVC/Daodan_Patch.h@ 844

Last change on this file since 844 was 567, checked in by gumby, 14 years ago

Daodan MSVC

File size: 604 bytes
Line 
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
11bool DDrPatch_MakeJump(void* from, void* to);
12bool DDrPatch_MakeCall(void* from, void* to);
13bool DDrPatch_String(char* dest, const char* string, int length);
14bool DDrPatch_Byte(char* dest, char value);
15bool DDrPatch_Int32(char* dest, int value);
16bool DDrPatch_Int16(char* dest, 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.