From cc55724d4955e55e2864ee805e6209fe3943cec5 Mon Sep 17 00:00:00 2001 From: thrust26 Date: Sat, 25 Nov 2017 12:36:11 +0100 Subject: [PATCH] Revert "changed saved game properties (Control + s) path to defaultSaveDir()" This reverts commit ae0a3c1ba5f65bd7804748d4185d3d8215098111. According to documentation, the contents should overwrite stella.pro. --- src/emucore/EventHandler.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/emucore/EventHandler.cxx b/src/emucore/EventHandler.cxx index 5bd193b22..f505096b7 100644 --- a/src/emucore/EventHandler.cxx +++ b/src/emucore/EventHandler.cxx @@ -559,10 +559,9 @@ void EventHandler::handleKeyEvent(StellaKey key, StellaMod mod, bool state) case KBDK_S: // Ctrl-s saves properties to a file { - string filename = myOSystem.defaultSaveDir() + + string filename = myOSystem.baseDir() + myOSystem.console().properties().get(Cartridge_Name) + ".pro"; ofstream out(filename); - if(out) { out << myOSystem.console().properties();