summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/set
diff options
context:
space:
mode:
authorgerman77 <juangerman-13@hotmail.com>2024-01-27 22:37:35 +0100
committergerman77 <juangerman-13@hotmail.com>2024-01-28 16:32:54 +0100
commitb75401a2cb2f42a6251d057bfd4544f9a0b05c42 (patch)
tree2a8b540a13c60e0be84e261cfeab9ec1159f9193 /src/core/hle/service/set
parentservice: set: Implement more Qlaunch Settings (diff)
downloadyuzu-b75401a2cb2f42a6251d057bfd4544f9a0b05c42.tar
yuzu-b75401a2cb2f42a6251d057bfd4544f9a0b05c42.tar.gz
yuzu-b75401a2cb2f42a6251d057bfd4544f9a0b05c42.tar.bz2
yuzu-b75401a2cb2f42a6251d057bfd4544f9a0b05c42.tar.lz
yuzu-b75401a2cb2f42a6251d057bfd4544f9a0b05c42.tar.xz
yuzu-b75401a2cb2f42a6251d057bfd4544f9a0b05c42.tar.zst
yuzu-b75401a2cb2f42a6251d057bfd4544f9a0b05c42.zip
Diffstat (limited to 'src/core/hle/service/set')
-rw-r--r--src/core/hle/service/set/system_settings_server.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/service/set/system_settings_server.cpp b/src/core/hle/service/set/system_settings_server.cpp
index 2e2de31e0..24350a1e5 100644
--- a/src/core/hle/service/set/system_settings_server.cpp
+++ b/src/core/hle/service/set/system_settings_server.cpp
@@ -25,7 +25,7 @@
namespace Service::Set {
namespace {
-constexpr u32 SETTINGS_VERSION{1u};
+constexpr u32 SETTINGS_VERSION{2u};
constexpr auto SETTINGS_MAGIC = Common::MakeMagic('y', 'u', 'z', 'u', '_', 's', 'e', 't');
struct SettingsHeader {
u64 magic;
@@ -349,7 +349,7 @@ bool ISystemSettingsServer::LoadSettingsFile(std::filesystem::path& path, auto&&
}
SettingsHeader hdr{};
file.read(reinterpret_cast<char*>(&hdr), sizeof(hdr));
- return hdr.magic == SETTINGS_MAGIC && hdr.version == SETTINGS_VERSION;
+ return hdr.magic == SETTINGS_MAGIC && hdr.version >= SETTINGS_VERSION;
};
if (!exists || !file_size_ok) {