mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-02-16 12:05:38 +00:00
Added an option to upscale the video frame rate to 60 FPS.
This commit is contained in:
parent
c91662befa
commit
425d4b0937
|
@ -1034,6 +1034,19 @@ void GuiMenu::openOtherOptions()
|
||||||
});
|
});
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// Whether to upscale the video frame rate to 60 FPS.
|
||||||
|
auto video_upscale_frame_rate = std::make_shared<SwitchComponent>(mWindow);
|
||||||
|
video_upscale_frame_rate->setState(Settings::getInstance()->getBool("VideoUpscaleFrameRate"));
|
||||||
|
s->addWithLabel("UPSCALE VIDEO FRAME RATE TO 60 FPS (FFMPEG)", video_upscale_frame_rate);
|
||||||
|
s->addSaveFunc([video_upscale_frame_rate, s] {
|
||||||
|
if (video_upscale_frame_rate->getState() !=
|
||||||
|
Settings::getInstance()->getBool("VideoUpscaleFrameRate")) {
|
||||||
|
Settings::getInstance()->
|
||||||
|
setBool("VideoUpscaleFrameRate", video_upscale_frame_rate->getState());
|
||||||
|
s->setNeedsSaving();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
// Allow overriding of the launch command per game (the option to disable this is
|
// Allow overriding of the launch command per game (the option to disable this is
|
||||||
// intended primarily for testing purposes).
|
// intended primarily for testing purposes).
|
||||||
auto launchcommand_override = std::make_shared<SwitchComponent>(mWindow);
|
auto launchcommand_override = std::make_shared<SwitchComponent>(mWindow);
|
||||||
|
|
|
@ -254,6 +254,7 @@ void Settings::setDefaults()
|
||||||
"/usr/pkg/lib/libretro"; // NetBSD
|
"/usr/pkg/lib/libretro"; // NetBSD
|
||||||
mStringMap["EmulatorCorePath"] = { emulatorCorePath, emulatorCorePath };
|
mStringMap["EmulatorCorePath"] = { emulatorCorePath, emulatorCorePath };
|
||||||
#endif
|
#endif
|
||||||
|
mBoolMap["VideoUpscaleFrameRate"] = { false, false };
|
||||||
mBoolMap["LaunchCommandOverride"] = { true, true };
|
mBoolMap["LaunchCommandOverride"] = { true, true };
|
||||||
mBoolMap["ShowHiddenFiles"] = { true, true };
|
mBoolMap["ShowHiddenFiles"] = { true, true };
|
||||||
mBoolMap["ShowHiddenGames"] = { true, true };
|
mBoolMap["ShowHiddenGames"] = { true, true };
|
||||||
|
|
Loading…
Reference in a new issue