mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-12 22:10:29 +02:00
Set time format in config
This commit is contained in:
1 parent
5170931aad
commit
4d1903f50c
5 files changed
+32
-24
No files matched your search
@@ -84,6 +84,7 @@ void CConfig::Load(const char *iniFileName)
|
||||
|
||||
IniFile::Section *pspConfig = iniFile.GetOrCreateSection("SystemParam");
|
||||
pspConfig->Get("Language", &ilanguage, PSP_SYSTEMPARAM_LANGUAGE_ENGLISH);
|
||||
pspConfig->Get("TimeFormat", &itimeformat, PSP_SYSTEMPARAM_TIME_FORMAT_24HR);
|
||||
|
||||
// Ephemeral settings
|
||||
bDrawWireframe = false;
|
||||
@@ -130,6 +131,7 @@ void CConfig::Save()
|
||||
|
||||
IniFile::Section *pspConfig = iniFile.GetOrCreateSection("SystemParam");
|
||||
pspConfig->Set("Language", ilanguage);
|
||||
pspConfig->Set("TimeFormat", itimeformat);
|
||||
|
||||
if (!iniFile.Save(iniFilename_.c_str())) {
|
||||
ERROR_LOG(LOADER, "Error saving config - can't write ini %s", iniFilename_.c_str());
|
||||
|
||||
Reference in new issue
Block a user