mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Close cheat menu before editing file.
This commit is contained in:
parent
e0377dbe8e
commit
a7cce0f105
1 changed files with 8 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue