mirror of https://github.com/stella-emu/stella.git
changed saved game properties (Control + s) path to defaultSaveDir()
Question: Should those files overwrite Stella.pro automatically?
This commit is contained in:
parent
3dcec2e705
commit
ae0a3c1ba5
|
@ -559,9 +559,10 @@ void EventHandler::handleKeyEvent(StellaKey key, StellaMod mod, bool state)
|
||||||
|
|
||||||
case KBDK_S: // Ctrl-s saves properties to a file
|
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";
|
myOSystem.console().properties().get(Cartridge_Name) + ".pro";
|
||||||
ofstream out(filename);
|
ofstream out(filename);
|
||||||
|
|
||||||
if(out)
|
if(out)
|
||||||
{
|
{
|
||||||
out << myOSystem.console().properties();
|
out << myOSystem.console().properties();
|
||||||
|
|
Loading…
Reference in New Issue