summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/set/setting_formats/private_settings.h
diff options
context:
space:
mode:
authorliamwhite <liamwhite@users.noreply.github.com>2024-01-19 03:18:37 +0100
committerGitHub <noreply@github.com>2024-01-19 03:18:37 +0100
commita560b9f5a26bdc49814930a0bec91d0ad6545942 (patch)
tree5abfe9ae81e69dadc10461771a3e3aa0b7540b26 /src/core/hle/service/set/setting_formats/private_settings.h
parentMerge pull request #12683 from german77/amiibo-dump (diff)
parentservice: set: Implement stubbed functions (diff)
downloadyuzu-a560b9f5a26bdc49814930a0bec91d0ad6545942.tar
yuzu-a560b9f5a26bdc49814930a0bec91d0ad6545942.tar.gz
yuzu-a560b9f5a26bdc49814930a0bec91d0ad6545942.tar.bz2
yuzu-a560b9f5a26bdc49814930a0bec91d0ad6545942.tar.lz
yuzu-a560b9f5a26bdc49814930a0bec91d0ad6545942.tar.xz
yuzu-a560b9f5a26bdc49814930a0bec91d0ad6545942.tar.zst
yuzu-a560b9f5a26bdc49814930a0bec91d0ad6545942.zip
Diffstat (limited to '')
-rw-r--r--src/core/hle/service/set/setting_formats/private_settings.h39
1 files changed, 39 insertions, 0 deletions
diff --git a/src/core/hle/service/set/setting_formats/private_settings.h b/src/core/hle/service/set/setting_formats/private_settings.h
new file mode 100644
index 000000000..6c40f62e1
--- /dev/null
+++ b/src/core/hle/service/set/setting_formats/private_settings.h
@@ -0,0 +1,39 @@
+// SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#pragma once
+
+#include <array>
+
+#include "common/common_types.h"
+#include "common/uuid.h"
+#include "core/hle/service/set/settings_types.h"
+#include "core/hle/service/time/clock_types.h"
+
+namespace Service::Set {
+
+struct PrivateSettings {
+ INSERT_PADDING_BYTES(0x10); // Reserved
+
+ InitialLaunchSettings initial_launch_settings;
+ INSERT_PADDING_BYTES(0x20); // Reserved
+
+ Common::UUID external_clock_source_id;
+ s64 shutdown_rtc_value;
+ s64 external_steady_clock_internal_offset;
+ INSERT_PADDING_BYTES(0x60); // Reserved
+
+ // nn::settings::system::PlatformRegion
+ s32 platform_region;
+ INSERT_PADDING_BYTES(0x4); // Reserved
+};
+static_assert(offsetof(PrivateSettings, initial_launch_settings) == 0x10);
+static_assert(offsetof(PrivateSettings, external_clock_source_id) == 0x50);
+static_assert(offsetof(PrivateSettings, shutdown_rtc_value) == 0x60);
+static_assert(offsetof(PrivateSettings, external_steady_clock_internal_offset) == 0x68);
+static_assert(offsetof(PrivateSettings, platform_region) == 0xD0);
+static_assert(sizeof(PrivateSettings) == 0xD8, "PrivateSettings has the wrong size!");
+
+PrivateSettings DefaultPrivateSettings();
+
+} // namespace Service::Set