mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-02-19 05:37:49 +00:00
Close cheat menu before editing file.
This commit is contained in:
parent
e0377dbe8e
commit
a7cce0f105
@ -146,6 +146,14 @@ UI::EventReturn CwCheatScreen::OnAddCheat(UI::EventParams ¶ms) {
|
||||
|
||||
UI::EventReturn CwCheatScreen::OnEditCheatFile(UI::EventParams ¶ms) {
|
||||
std::string cheatFile;
|
||||
std::fstream fs;
|
||||
fs.close();
|
||||
g_Config.bReloadCheats = true;
|
||||
g_Config.Save();
|
||||
if (MIPSComp::jit) {
|
||||
MIPSComp::jit->ClearCache();
|
||||
}
|
||||
screenManager()->finishDialog(this, DR_OK);
|
||||
#ifdef _WIN32
|
||||
cheatFile = activeCheatFile;
|
||||
// Can't rely on a .txt file extension to auto-open in the right editor,
|
||||
|
Loading…
x
Reference in New Issue
Block a user