changed saved game properties (Control + s) path to defaultSaveDir()

Question: Should those files overwrite Stella.pro automatically?
This commit is contained in:
thrust26 2017-11-25 11:18:05 +01:00
parent 3dcec2e705
commit ae0a3c1ba5
1 changed files with 2 additions and 1 deletions

View File

@ -559,9 +559,10 @@ void EventHandler::handleKeyEvent(StellaKey key, StellaMod mod, bool state)
case KBDK_S: // Ctrl-s saves properties to a file
{
string filename = myOSystem.baseDir() +
string filename = myOSystem.defaultSaveDir() +
myOSystem.console().properties().get(Cartridge_Name) + ".pro";
ofstream out(filename);
if(out)
{
out << myOSystem.console().properties();