11 commandController,
"throttle",
12 "controls speed throttling", true,
Setting::DONT_SAVE))
14 commandController,
"fullspeedwhenloading",
15 "sets openMSX to full speed when the MSX is loading", false))
16 , loading(0), throttle(true)
18 throttleSetting->attach(*
this);
19 fullSpeedLoadingSetting->attach(*
this);
24 throttleSetting->detach(*
this);
25 fullSpeedLoadingSetting->detach(*
this);
28 void ThrottleManager::updateStatus()
30 bool newThrottle = throttleSetting->getValue() &&
31 (!loading || !fullSpeedLoadingSetting->getValue());
32 if (throttle != newThrottle) {
33 throttle = newThrottle;
43 void ThrottleManager::indicateLoadingState(
bool state)
54 void ThrottleManager::update(
const Setting& )
63 : throttleManager(throttleManager_)
75 if (isLoading != newState) {
77 throttleManager.indicateLoadingState(isLoading);