Close cheat menu before editing file.

This commit is contained in:
LunaMoo 2015-01-28 09:06:00 +01:00
parent e0377dbe8e
commit a7cce0f105

View File

@ -146,6 +146,14 @@ UI::EventReturn CwCheatScreen::OnAddCheat(UI::EventParams &params) {
UI::EventReturn CwCheatScreen::OnEditCheatFile(UI::EventParams &params) {
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,