sdl: added config value SDL.SwapDuty (0 or 1)

This commit is contained in:
punkrockguy318 2015-06-24 00:31:20 +00:00
parent 4c0b8d9ce8
commit 209f3137de
2 changed files with 4 additions and 1 deletions

View File

@ -145,6 +145,7 @@ InitConfig()
config->addOption("frameskip", "SDL.Frameskip", 0);
config->addOption("clipsides", "SDL.ClipSides", 0);
config->addOption("nospritelim", "SDL.DisableSpriteLimit", 1);
config->addOption("swapduty", "SDL.SwapDuty", 0);
// color control
config->addOption('p', "palette", "SDL.Palette", "");

View File

@ -74,7 +74,6 @@ static int noconfig;
int pal_emulation;
int dendy;
// TODO: actually implement swapDuty
int swapDuty;
// -Video Modes Tag- : See --special
@ -249,6 +248,9 @@ int LoadGame(const char *path)
int id;
g_config->getOption("SDL.PAL", &id);
SetRegion(id);
g_config->getOption("SDL.SwapDuty", &id);
swapDuty = id;
std::string filename;
g_config->getOption("SDL.Sound.RecordFile", &filename);