Change a variable name to match the name used in the ini file. Default screenshots to JPG.

This commit is contained in:
Henrik Rydgard 2013-07-08 00:10:23 +02:00
parent a4e95e5ce9
commit 613b9ec994
3 changed files with 5 additions and 5 deletions

View file

@ -61,7 +61,7 @@ void Config::Load(const char *iniFileName)
general->Get("NumWorkerThreads", &iNumWorkerThreads, cpu_info.num_cores);
general->Get("EnableCheats", &bEnableCheats, false);
general->Get("MaxRecent", &iMaxRecent, 12);
general->Get("ScreenshotsAsPNG", &bScreenshotAsPNG, true);
general->Get("ScreenshotsAsPNG", &bScreenshotsAsPNG, false);
// Fix issue from switching from uint (hex in .ini) to int (dec)
if (iMaxRecent == 0)
@ -210,7 +210,7 @@ void Config::Save()
general->Set("NumWorkerThreads", iNumWorkerThreads);
general->Set("MaxRecent", iMaxRecent);
general->Set("EnableCheats", bEnableCheats);
general->Set("ScreenshotsAsPNG", &bScreenshotAsPNG);
general->Set("ScreenshotsAsPNG", &bScreenshotsAsPNG);
IniFile::Section *cpu = iniFile.GetOrCreateSection("CPU");
cpu->Set("Jit", bJit);