Merge pull request #2235 from thedax/master

User controllable CPU speed option
This commit is contained in:
Henrik Rydgård committed 2013-06-26 14:57:40 -07:00
commit e440fa606e
4 files changed
+45 -8

No files matched your search

+2
View File
@@ -85,6 +85,7 @@ void Config::Load(const char *iniFileName)
#endif
//FastMemory Default set back to True when solve UNIMPL _sceAtracGetContextAddress making game crash
cpu->Get("FastMemory", &bFastMemory, false);
cpu->Get("CPUSpeed", &iLockedCPUSpeed, false);
IniFile::Section *graphics = iniFile.GetOrCreateSection("Graphics");
graphics->Get("ShowFPSCounter", &iShowFPSCounter, false);
@@ -204,6 +205,7 @@ void Config::Save()
IniFile::Section *cpu = iniFile.GetOrCreateSection("CPU");
cpu->Set("Jit", bJit);
cpu->Set("FastMemory", bFastMemory);
cpu->Set("CPUSpeed", iLockedCPUSpeed);
IniFile::Section *graphics = iniFile.GetOrCreateSection("Graphics");
graphics->Set("ShowFPSCounter", iShowFPSCounter);