mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-21 21:55: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
|
||||
|
||||
// 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
|
||||
// intended primarily for testing purposes).
|
||||
auto launchcommand_override = std::make_shared<SwitchComponent>(mWindow);
|
||||
|
|
|
@ -254,6 +254,7 @@ void Settings::setDefaults()
|
|||
"/usr/pkg/lib/libretro"; // NetBSD
|
||||
mStringMap["EmulatorCorePath"] = { emulatorCorePath, emulatorCorePath };
|
||||
#endif
|
||||
mBoolMap["VideoUpscaleFrameRate"] = { false, false };
|
||||
mBoolMap["LaunchCommandOverride"] = { true, true };
|
||||
mBoolMap["ShowHiddenFiles"] = { true, true };
|
||||
mBoolMap["ShowHiddenGames"] = { true, true };
|
||||
|
|
Loading…
Reference in a new issue