target-bsnes: Expose screensaver supression in UI

The setting already existed and could be changed by manually editing the
configuration file, but wasn't exposed in the UI. This commit adds the
corresponding check box.
This commit is contained in:
Sintendo 2020-11-08 12:29:45 +01:00
parent 7d6c133024
commit 47d94196f6
2 changed files with 4 additions and 0 deletions

View File

@ -23,6 +23,9 @@ auto EmulatorSettings::create() -> void {
nativeFileDialogs.setText("Use native file dialogs").setChecked(settings.general.nativeFileDialogs).onToggle([&] {
settings.general.nativeFileDialogs = nativeFileDialogs.checked();
});
screenSaver.setText("Allow screensaver during emulation").setChecked(settings.general.screenSaver).onToggle([&] {
settings.general.screenSaver = screenSaver.checked();
});
optionsSpacer.setColor({192, 192, 192});
fastForwardLabel.setText("Fast Forward").setFont(Font().setBold());

View File

@ -309,6 +309,7 @@ public:
CheckLabel autoSaveStateOnUnload{&autoStateLayout, Size{0, 0}};
CheckLabel autoLoadStateOnLoad{&autoStateLayout, Size{0, 0}};
CheckLabel nativeFileDialogs{this, Size{~0, 0}};
CheckLabel screenSaver{this, Size{~0, 0}};
Canvas optionsSpacer{this, Size{~0, 1}};
//
Label fastForwardLabel{this, Size{~0, 0}, 2};