mirror of
https://github.com/Lime3DS/Lime3DS.git
synced 2025-03-28 00:24:15 +01:00
Make Increase/Decrease speed hotkeys change turbo key instead of frame_limit
This commit is contained in:
parent
4a761147d1
commit
af4a60c979
@ -2552,7 +2552,6 @@ void GMainWindow::ToggleEmulationSpeed() {
|
|||||||
turbo_mode_active = !turbo_mode_active;
|
turbo_mode_active = !turbo_mode_active;
|
||||||
|
|
||||||
if (turbo_mode_active) {
|
if (turbo_mode_active) {
|
||||||
initial_frame_limit = Settings::values.frame_limit.GetValue();
|
|
||||||
Settings::values.frame_limit.SetValue(UISettings::values.turbo_speed_slider.GetValue());
|
Settings::values.frame_limit.SetValue(UISettings::values.turbo_speed_slider.GetValue());
|
||||||
} else {
|
} else {
|
||||||
Settings::values.frame_limit.SetValue(initial_frame_limit);
|
Settings::values.frame_limit.SetValue(initial_frame_limit);
|
||||||
@ -2566,7 +2565,6 @@ void GMainWindow::ToggleEmulationSpeed() {
|
|||||||
void GMainWindow::AdjustSpeedLimit(bool increase) {
|
void GMainWindow::AdjustSpeedLimit(bool increase) {
|
||||||
const int SPEED_LIMIT_STEP = 5;
|
const int SPEED_LIMIT_STEP = 5;
|
||||||
|
|
||||||
if (turbo_mode_active) {
|
|
||||||
int turbo_speed = UISettings::values.turbo_speed_slider.GetValue();
|
int turbo_speed = UISettings::values.turbo_speed_slider.GetValue();
|
||||||
if (increase) {
|
if (increase) {
|
||||||
if (turbo_speed < 995) {
|
if (turbo_speed < 995) {
|
||||||
@ -2577,19 +2575,7 @@ void GMainWindow::AdjustSpeedLimit(bool increase) {
|
|||||||
UISettings::values.turbo_speed_slider.SetValue(turbo_speed - SPEED_LIMIT_STEP);
|
UISettings::values.turbo_speed_slider.SetValue(turbo_speed - SPEED_LIMIT_STEP);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Settings::values.frame_limit.SetValue(UISettings::values.turbo_speed_slider.GetValue());
|
|
||||||
} else {
|
|
||||||
int current_frame_limit = Settings::values.frame_limit.GetValue();
|
|
||||||
if (increase) {
|
|
||||||
if (current_frame_limit < 995) {
|
|
||||||
Settings::values.frame_limit.SetValue(current_frame_limit + SPEED_LIMIT_STEP);
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
if (current_frame_limit > SPEED_LIMIT_STEP) {
|
|
||||||
Settings::values.frame_limit.SetValue(current_frame_limit - SPEED_LIMIT_STEP);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
UpdateStatusBar();
|
UpdateStatusBar();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user