forgot to commit the PatchEngine.cpp a looong time ago

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@737 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
daco65 2008-10-01 00:21:48 +00:00
parent abe24d1c36
commit 14541f0f8a
2 changed files with 10 additions and 10 deletions

View File

@ -115,7 +115,7 @@ void LoadActionReplayCodes(IniFile &ini);
void PatchEngine_LoadPatches(const char *gameID) void PatchEngine_LoadPatches(const char *gameID)
{ {
IniFile ini; IniFile ini;
std::string filename = std::string("Patches/") + gameID + ".ini"; std::string filename = std::string("GameIni/") + gameID + ".ini";
if (ini.Load(filename.c_str())) { if (ini.Load(filename.c_str())) {
LoadPatchSection("OnLoad", onLoad, ini); LoadPatchSection("OnLoad", onLoad, ini);
LoadPatchSection("OnFrame", onFrame, ini); LoadPatchSection("OnFrame", onFrame, ini);

View File

@ -261,40 +261,40 @@ void CGameListCtrl::InsertItemInReportView(long _Index)
std::string GameIni; std::string GameIni;
item.SetColumn(COLUMN_EMULATION_STATE); item.SetColumn(COLUMN_EMULATION_STATE);
//NOTE (Daco): i dont like the fact of having so much ini's just to have //NOTE (Daco): i dont like the fact of having so much ini's just to have
//the game emulation state of every game you have. //the game emulation state of every game you have. but 1 huge ini is no option
GameIni = "GameIni/" + (rISOFile.GetUniqueID()) + ".ini"; GameIni = "GameIni/" + (rISOFile.GetUniqueID()) + ".ini";
ini.Load(GameIni.c_str()); ini.Load(GameIni.c_str());
ini.Get("EmuState","EmulationStateId",&EmuState); ini.Get("EmuState","EmulationStateId",&EmuState);
if (EmuState.empty()) if (EmuState.empty())
{ {
//srry, its empty //srry, its empty
//item.SetText("unknown"); //item.SetText(_("unknown"));
//without unknown it looks more pretty :P //without unknown it looks more pretty :P
} }
else else
{ {
if(EmuState == "5") if(EmuState == "5")
item.SetText(_("Perfect")); item.SetText(_("Perfect"));
else if(EmuState == "4") else if(EmuState == "4")
item.SetText(_("In Game")); item.SetText(_("In Game"));
else if(EmuState == "3") else if(EmuState == "3")
item.SetText(_("Intro")); item.SetText(_("Intro"));
else if(EmuState == "2") else if(EmuState == "2")
{ {
item.SetText(_("Problems: Other")); item.SetText(_("Problems: Other"));
//NOTE (Daco): IMO under 2 i see problems like music and games that only work //NOTE (Daco): IMO under 2 i see problems like music and games that only work
//with GL or only with DX9 //with GL or only with DX9
//TODO (Daco): maybe 2 should get a function to present more info... o.o //TODO (Daco): maybe 2 should get a function to present more info... o.o
} }
else if(EmuState == "1") else if(EmuState == "1")
item.SetText(_("Broken")); item.SetText(_("Broken"));
else if(EmuState == "0") else if(EmuState == "0")
item.SetText(_("Not Set")); item.SetText(_("Not Set"));
else else
{ {
//if the EmuState isn't a number between 0 & 5 we dont know the state //if the EmuState isn't a number between 0 & 5 we dont know the state
//hence why it should say unknown //hence why it should say unknown
item.SetText(_("unknown emu ID")); item.SetText(_("unknown emu ID"));
} }
} }
SetItem(item); SetItem(item);