Re-committed code from R874, but fixed the build problem, and made some code cleanup.

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@880 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
omegadox committed 2008-10-15 16:33:22 +00:00
1 parent bbbe898839
commit a3a948ac1d
6 files changed
+449 -337

No files matched your search

+24 -3
View File
@@ -18,9 +18,30 @@
#ifndef _PATCHENGINE_H
#define _PATCHENGINE_H
// see comments in patchengine.cpp
// TODO(ector): Actually call these functions somewhere,
// and figure out where to place patch files
enum PatchType
{
PATCH_8BIT,
PATCH_16BIT,
PATCH_32BIT,
};
static const char *PatchTypeStrings[] =
{
"byte",
"word",
"dword",
0
};
struct Patch
{
Patch() {}
Patch(PatchType _t, u32 _addr, u32 _value) : type(_t), address(_addr), value(_value) {}
PatchType type;
u32 address;
u32 value;
};
void PatchEngine_LoadPatches(const char *gameID);
void PatchEngine_ApplyLoadPatches();
void PatchEngine_ApplyFramePatches();