mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-27 04:08:37 +01:00
Save the disasm window's size in config.
And, allow it to be smaller.
This commit is contained in:
1 parent
bafbfc75a0
commit
3ef95fadb3
4 files changed
+71
-14
No files matched your search
@@ -154,6 +154,12 @@ void Config::Load(const char *iniFileName)
|
||||
pspConfig->Get("WlanPowerSave", &bWlanPowerSave, PSP_SYSTEMPARAM_WLAN_POWERSAVE_OFF);
|
||||
pspConfig->Get("EncryptSave", &bEncryptSave, true);
|
||||
|
||||
IniFile::Section *debugConfig = iniFile.GetOrCreateSection("Debugger");
|
||||
debugConfig->Get("DisasmWindowX", &iDisasmWindowX, -1);
|
||||
debugConfig->Get("DisasmWindowY", &iDisasmWindowY, -1);
|
||||
debugConfig->Get("DisasmWindowW", &iDisasmWindowW, -1);
|
||||
debugConfig->Get("DisasmWindowH", &iDisasmWindowH, -1);
|
||||
|
||||
CleanRecent();
|
||||
}
|
||||
|
||||
@@ -250,6 +256,12 @@ void Config::Save()
|
||||
pspConfig->Set("WlanPowerSave", bWlanPowerSave);
|
||||
pspConfig->Set("EncryptSave", bEncryptSave);
|
||||
|
||||
IniFile::Section *debugConfig = iniFile.GetOrCreateSection("Debugger");
|
||||
debugConfig->Set("DisasmWindowX", iDisasmWindowX);
|
||||
debugConfig->Set("DisasmWindowY", iDisasmWindowY);
|
||||
debugConfig->Set("DisasmWindowW", iDisasmWindowW);
|
||||
debugConfig->Set("DisasmWindowH", iDisasmWindowH);
|
||||
|
||||
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