forked from dolphin-emu/dolphin
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user