mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-11 13:36:24 +02:00
Merge branch 'master' into vertexcache
This commit is contained in:
commit
04860322f4
37 files changed
+456
-327
No files matched your search
@@ -18,6 +18,7 @@
|
||||
|
||||
#include "Config.h"
|
||||
#include "IniFile.h"
|
||||
#include "HLE/sceUtility.h"
|
||||
|
||||
SState g_State;
|
||||
CConfig g_Config;
|
||||
@@ -81,6 +82,9 @@ void CConfig::Load(const char *iniFileName)
|
||||
false);
|
||||
#endif
|
||||
|
||||
IniFile::Section *pspConfig = iniFile.GetOrCreateSection("SystemParam");
|
||||
pspConfig->Get("Language", &ilanguage, PSP_SYSTEMPARAM_LANGUAGE_ENGLISH);
|
||||
|
||||
// Ephemeral settings
|
||||
bDrawWireframe = false;
|
||||
}
|
||||
@@ -124,6 +128,9 @@ void CConfig::Save()
|
||||
control->Set("ShowStick", bShowAnalogStick);
|
||||
control->Set("ShowTouchControls", bShowTouchControls);
|
||||
|
||||
IniFile::Section *pspConfig = iniFile.GetOrCreateSection("SystemParam");
|
||||
pspConfig->Set("Language", ilanguage);
|
||||
|
||||
if (!iniFile.Save(iniFilename_.c_str())) {
|
||||
ERROR_LOG(LOADER, "Error saving config - can't write ini %s", iniFilename_.c_str());
|
||||
return;
|
||||
|
||||
Reference in new issue
Block a user