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:
jbo_85 2009-07-27 01:57:21 +00:00
parent 4571763225
commit 27301c1155
1 changed files with 3 additions and 4 deletions

View File

@ -873,13 +873,11 @@ void VBA::updateThrottle( unsigned short throttle )
{
this->throttle = throttle;
if( throttle == 0 ) {
autoFrameSkip = false;
} else {
if( throttle ) {
Sm60FPS::K_fCpuSpeed = (float)throttle;
Sm60FPS::K_fTargetFps = 60.0f * Sm60FPS::K_fCpuSpeed / 100;
Sm60FPS::K_fDT = 1000.0f / Sm60FPS::K_fTargetFps;
autoFrameSkip = true;
autoFrameSkip = false;
frameSkip = 0;
systemFrameSkip = 0;
}
@ -2542,6 +2540,7 @@ void VBA::saveSettings()
regSetDwordValue("RFU", adapter);
regSetDwordValue("linkEnabled", linkenable);
regSetDwordValue("lastFullscreen", lastFullscreen);
regSetDwordValue("pauseWhenInactive", pauseWhenInactive);
#ifndef NO_OAL
regSetStringValue( "oalDevice", oalDevice );