Fix/display mode default (#2516)

* fix: move fullscreen config options to GUI section of variable declarations

* fix:[#2514] set display mode default to windowed
This commit is contained in:
jarred wilson 2025-02-23 14:07:06 -06:00 committed by GitHub
parent 02f9d03f57
commit f1c70ce53c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -31,10 +31,7 @@ std::filesystem::path find_fs_path_or(const basic_value<TC>& v, const K& ky,
namespace Config {
static bool isHDRAllowed = false;
static bool isNeo = false;
static bool isFullscreen = false;
static std::string fullscreenMode = "Fullscreen (Borderless)";
static bool playBGM = false;
static bool isTrophyPopupDisabled = false;
static int BGMvolume = 50;
@ -102,6 +99,9 @@ std::vector<std::string> m_recent_files;
std::string emulator_language = "en_US";
static int backgroundImageOpacity = 50;
static bool showBackgroundImage = true;
static bool isFullscreen = false;
static std::string fullscreenMode = "Windowed";
static bool isHDRAllowed = false;
// Language
u32 m_language = 1; // english
@ -740,8 +740,7 @@ void load(const std::filesystem::path& path) {
shouldPatchShaders = toml::find_or<bool>(gpu, "patchShaders", true);
vblankDivider = toml::find_or<int>(gpu, "vblankDivider", 1);
isFullscreen = toml::find_or<bool>(gpu, "Fullscreen", false);
fullscreenMode =
toml::find_or<std::string>(gpu, "FullscreenMode", "Fullscreen (Borderless)");
fullscreenMode = toml::find_or<std::string>(gpu, "FullscreenMode", "Windowed");
isHDRAllowed = toml::find_or<bool>(gpu, "allowHDR", false);
}