Made console type change immediate

This commit is contained in:
thrust26 2019-01-01 14:35:14 +01:00
parent 1f64eecf4e
commit fdea8aa82e
2 changed files with 6 additions and 0 deletions

View File

@ -20,6 +20,8 @@
* Removed superfluous controller option 'PADDLES_IDIR' * Removed superfluous controller option 'PADDLES_IDIR'
* Fixed not working 7800 pause key
* Fixed 'Dancing Plate (Unknown) (PAL)' to use joystick * Fixed 'Dancing Plate (Unknown) (PAL)' to use joystick
-Have fun! -Have fun!

View File

@ -33,6 +33,7 @@
#include "Console.hxx" #include "Console.hxx"
#include "TIA.hxx" #include "TIA.hxx"
#include "OSystem.hxx" #include "OSystem.hxx"
#include "EventHandler.hxx"
#include "StateManager.hxx" #include "StateManager.hxx"
#include "RewindManager.hxx" #include "RewindManager.hxx"
#include "M6502.hxx" #include "M6502.hxx"
@ -527,6 +528,9 @@ void DeveloperDialog::saveSettings(SettingsSet set)
instance().settings().setValue(prefix + "stats", myFrameStats[set]); instance().settings().setValue(prefix + "stats", myFrameStats[set]);
instance().settings().setValue(prefix + "console", myConsole[set] == 1 ? "7800" : "2600"); instance().settings().setValue(prefix + "console", myConsole[set] == 1 ? "7800" : "2600");
if(instance().hasConsole())
instance().eventHandler().set7800Mode();
// Randomization // Randomization
instance().settings().setValue(prefix + "bankrandom", myRandomBank[set]); instance().settings().setValue(prefix + "bankrandom", myRandomBank[set]);
instance().settings().setValue(prefix + "ramrandom", myRandomizeRAM[set]); instance().settings().setValue(prefix + "ramrandom", myRandomizeRAM[set]);