Moved all the ActionReplay code into its own source/header file. Also updated the scons and vcproj file to include the added files.

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@874 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
omegadox
2008-10-15 05:57:41 +00:00
parent 38f1091c7b
commit a6365c758e
5 changed files with 419 additions and 17 deletions

View File

@@ -36,6 +36,7 @@
#include "PatchEngine.h"
#include "IniFile.h"
#include "HW/Memmap.h"
#include "ActionReplay.h"
enum PatchType
@@ -66,23 +67,8 @@ struct Patch
std::vector<Patch> onLoad;
std::vector<Patch> onFrame;
struct AREntry {
u32 cmd_addr;
u32 value;
};
struct ARCode {
std::string name;
std::vector<AREntry> ops;
bool active;
};
std::vector<ARCode> arCodes;
using namespace Common;
void RunActionReplayCode(const ARCode &code, bool nowIsBootup);
void LoadPatchSection(const char *section, std::vector<Patch> &patches, IniFile &ini)
{
std::vector<std::string> keys;
@@ -110,8 +96,6 @@ void LoadPatchSection(const char *section, std::vector<Patch> &patches, IniFile
}
}
void LoadActionReplayCodes(IniFile &ini);
void PatchEngine_LoadPatches(const char *gameID)
{
IniFile ini;
@@ -162,6 +146,8 @@ void PatchEngine_ApplyARPatches()
if (iter->active)
RunActionReplayCode(*iter, false);
}
<<<<<<< .mine
}=======
}
void LoadActionReplayCodes(IniFile &ini)
@@ -444,3 +430,4 @@ void RunActionReplayCode(const ARCode &code, bool nowIsBootup) {
}
}
}
>>>>>>> .r873