Skip to content

Commit

Permalink
Merge pull request #7385 from LunaMoo/cheatmenu
Browse files Browse the repository at this point in the history
Close cheat menu before editing the file.
  • Loading branch information
hrydgard committed Jan 28, 2015
2 parents e0377db + 4ef0c14 commit 2b0b1a5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions UI/CwCheatScreen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,12 @@ UI::EventReturn CwCheatScreen::OnAddCheat(UI::EventParams &params) {

UI::EventReturn CwCheatScreen::OnEditCheatFile(UI::EventParams &params) {
std::string cheatFile;
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,
Expand Down

0 comments on commit 2b0b1a5

Please sign in to comment.