merge fixes

This commit is contained in:
georgemoralis 2024-12-27 23:21:43 +02:00
parent 2015252435
commit 942791c763
2 changed files with 3 additions and 2 deletions

View File

@ -676,7 +676,7 @@ void load(const std::filesystem::path& path) {
m_language = toml::find_or<int>(settings, "consoleLanguage", 1);
}
if (data.contains("Keys")) {
const toml::value& keys = data.at("keys");
trophyKey = toml::find_or<std::string>(keys, "TrophyKey", "");
@ -741,7 +741,7 @@ void save(const std::filesystem::path& path) {
data["Audio"]["backend"] = audioBackend;
data["Debug"]["DebugDump"] = isDebugDump;
data["Debug"]["CollectShader"] = isShaderDebug;
data["Keys"]["TrophyKey"] = trophyKey;
std::vector<std::string> install_dirs;

View File

@ -13,6 +13,7 @@ enum HideCursorState : s16 { Never, Idle, Always };
void load(const std::filesystem::path& path);
void save(const std::filesystem::path& path);
void saveMainWindow(const std::filesystem::path& path);
std::string getTrophyKey();
void setTrophyKey(std::string key);