Fixed saving of pauseWhenInactive setting to the config file. Fixed logic bug with autoFrameSkip setting to not disable autoFrameSkip when throttle is disabled.
This commit is contained in:
parent
4571763225
commit
27301c1155
|
@ -873,13 +873,11 @@ void VBA::updateThrottle( unsigned short throttle )
|
||||||
{
|
{
|
||||||
this->throttle = throttle;
|
this->throttle = throttle;
|
||||||
|
|
||||||
if( throttle == 0 ) {
|
if( throttle ) {
|
||||||
autoFrameSkip = false;
|
|
||||||
} else {
|
|
||||||
Sm60FPS::K_fCpuSpeed = (float)throttle;
|
Sm60FPS::K_fCpuSpeed = (float)throttle;
|
||||||
Sm60FPS::K_fTargetFps = 60.0f * Sm60FPS::K_fCpuSpeed / 100;
|
Sm60FPS::K_fTargetFps = 60.0f * Sm60FPS::K_fCpuSpeed / 100;
|
||||||
Sm60FPS::K_fDT = 1000.0f / Sm60FPS::K_fTargetFps;
|
Sm60FPS::K_fDT = 1000.0f / Sm60FPS::K_fTargetFps;
|
||||||
autoFrameSkip = true;
|
autoFrameSkip = false;
|
||||||
frameSkip = 0;
|
frameSkip = 0;
|
||||||
systemFrameSkip = 0;
|
systemFrameSkip = 0;
|
||||||
}
|
}
|
||||||
|
@ -2542,6 +2540,7 @@ void VBA::saveSettings()
|
||||||
regSetDwordValue("RFU", adapter);
|
regSetDwordValue("RFU", adapter);
|
||||||
regSetDwordValue("linkEnabled", linkenable);
|
regSetDwordValue("linkEnabled", linkenable);
|
||||||
regSetDwordValue("lastFullscreen", lastFullscreen);
|
regSetDwordValue("lastFullscreen", lastFullscreen);
|
||||||
|
regSetDwordValue("pauseWhenInactive", pauseWhenInactive);
|
||||||
|
|
||||||
#ifndef NO_OAL
|
#ifndef NO_OAL
|
||||||
regSetStringValue( "oalDevice", oalDevice );
|
regSetStringValue( "oalDevice", oalDevice );
|
||||||
|
|
Loading…
Reference in New Issue