Adding an alias for fullscreen flag, removing patchFile setting from toml file

This commit is contained in:
Robyn Dressler 2024-10-11 18:15:35 -05:00
parent c1ce5d7780
commit bf84589d49

View File

@ -492,7 +492,6 @@ void load(const std::filesystem::path& path) {
}
isShowSplash = toml::find_or<bool>(general, "showSplash", true);
isAutoUpdate = toml::find_or<bool>(general, "autoUpdate", false);
patchFile = toml::find_or<std::string>(general, "patchFile", "");
backButtonBehavior = toml::find_or<std::string>(general, "backButtonBehavior", "left");
}
@ -582,7 +581,7 @@ void loadArgs(int& argc, char* argv[]) {
const std::string arg = argv[i];
if (arg == "-p") {
patchFile = argv[i + 1];
} else if (arg == "-f") {
} else if (arg == "-f" || arg == "--fullscreen") {
isFullscreen = true;
}
}
@ -620,7 +619,6 @@ void save(const std::filesystem::path& path) {
data["General"]["updateChannel"] = updateChannel;
data["General"]["showSplash"] = isShowSplash;
data["General"]["autoUpdate"] = isAutoUpdate;
data["General"]["patchFile"] = patchFile;
data["Input"]["cursorState"] = cursorState;
data["Input"]["cursorHideTimeout"] = cursorHideTimeout;
data["Input"]["backButtonBehavior"] = backButtonBehavior;