diff --git a/UI/CwCheatScreen.cpp b/UI/CwCheatScreen.cpp index 8ee5489735..1eadd78ec7 100644 --- a/UI/CwCheatScreen.cpp +++ b/UI/CwCheatScreen.cpp @@ -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,