Added overclocking parameters to saved config settings for Qt GUI.
This commit is contained in:
parent
0e64829682
commit
1e13f3f7c3
|
@ -766,6 +766,7 @@ void ConsoleVideoConfDialog_t::use_new_PPU_changed( bool value )
|
|||
}
|
||||
|
||||
g_config->setOption("SDL.NewPPU", newppu );
|
||||
g_config->setOption("SDL.OverClockEnable", overclock_enabled );
|
||||
g_config->save ();
|
||||
|
||||
UpdateEMUCore (g_config);
|
||||
|
|
|
@ -707,6 +707,7 @@ void TimingConfDialog_t::overclockingToggled(bool on)
|
|||
if ( !newppu )
|
||||
{
|
||||
overclock_enabled = on;
|
||||
g_config->setOption("SDL.OverClockEnable", overclock_enabled );
|
||||
}
|
||||
fceuWrapperUnLock();
|
||||
}
|
||||
|
@ -715,6 +716,7 @@ void TimingConfDialog_t::postRenderChanged(int value)
|
|||
{
|
||||
fceuWrapperLock();
|
||||
postrenderscanlines = value;
|
||||
g_config->setOption("SDL.PostRenderScanlines", postrenderscanlines );
|
||||
fceuWrapperUnLock();
|
||||
//printf("Post Render %i\n", postrenderscanlines );
|
||||
}
|
||||
|
@ -723,6 +725,7 @@ void TimingConfDialog_t::vblankScanlinesChanged(int value)
|
|||
{
|
||||
fceuWrapperLock();
|
||||
vblankscanlines = value;
|
||||
g_config->setOption("SDL.VBlankScanlines", vblankscanlines );
|
||||
fceuWrapperUnLock();
|
||||
//printf("Vblank Scanlines %i\n", vblankscanlines );
|
||||
}
|
||||
|
@ -731,6 +734,7 @@ void TimingConfDialog_t::no7bitChanged(int value)
|
|||
{
|
||||
fceuWrapperLock();
|
||||
skip_7bit_overclocking = (value != Qt::Unchecked);
|
||||
g_config->setOption("SDL.Skip7bitOverClocking", skip_7bit_overclocking );
|
||||
fceuWrapperUnLock();
|
||||
//printf("Skip 7-bit: %i\n", skip_7bit_overclocking );
|
||||
}
|
||||
|
|
|
@ -734,6 +734,10 @@ InitConfig()
|
|||
config->addOption("_guiSchedNice" , "SDL.GuiSchedNice" , 0);
|
||||
config->addOption("_guiSchedPrioRt" , "SDL.GuiSchedPrioRt", 40);
|
||||
config->addOption("_emuTimingMech" , "SDL.EmuTimingMech" , 0);
|
||||
config->addOption("SDL.OverClockEnable" , 0);
|
||||
config->addOption("SDL.PostRenderScanlines" , 0);
|
||||
config->addOption("SDL.VBlankScanlines" , 0);
|
||||
config->addOption("SDL.Skip7bitOverClocking", 1);
|
||||
|
||||
// fcm -> fm2 conversion
|
||||
config->addOption("fcmconvert", "SDL.FCMConvert", "");
|
||||
|
@ -967,6 +971,10 @@ UpdateEMUCore(Config *config)
|
|||
}
|
||||
|
||||
config->getOption("SDL.NewPPU", &newppu);
|
||||
config->getOption("SDL.OverClockEnable" , &overclock_enabled );
|
||||
config->getOption("SDL.PostRenderScanlines" , &postrenderscanlines );
|
||||
config->getOption("SDL.VBlankScanlines" , &vblankscanlines );
|
||||
config->getOption("SDL.Skip7bitOverClocking", &skip_7bit_overclocking );
|
||||
|
||||
config->getOption("SDL.PAL", ®ion);
|
||||
FCEUI_SetRegion(region);
|
||||
|
|
Loading…
Reference in New Issue