summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/set/appln_settings.h
diff options
context:
space:
mode:
authorKelebek1 <eeeedddccc@hotmail.co.uk>2023-11-26 08:36:08 +0100
committerKelebek1 <eeeedddccc@hotmail.co.uk>2023-12-16 07:01:54 +0100
commit4144c517a5df13b79f44d2e2e11b7ac6e06e276f (patch)
treeb582e8432382505550ef574ca8bbcd58b87747a3 /src/core/hle/service/set/appln_settings.h
parentMerge pull request #12354 from liamwhite/mackage-panager (diff)
downloadyuzu-4144c517a5df13b79f44d2e2e11b7ac6e06e276f.tar
yuzu-4144c517a5df13b79f44d2e2e11b7ac6e06e276f.tar.gz
yuzu-4144c517a5df13b79f44d2e2e11b7ac6e06e276f.tar.bz2
yuzu-4144c517a5df13b79f44d2e2e11b7ac6e06e276f.tar.lz
yuzu-4144c517a5df13b79f44d2e2e11b7ac6e06e276f.tar.xz
yuzu-4144c517a5df13b79f44d2e2e11b7ac6e06e276f.tar.zst
yuzu-4144c517a5df13b79f44d2e2e11b7ac6e06e276f.zip
Diffstat (limited to 'src/core/hle/service/set/appln_settings.h')
-rw-r--r--src/core/hle/service/set/appln_settings.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/src/core/hle/service/set/appln_settings.h b/src/core/hle/service/set/appln_settings.h
new file mode 100644
index 000000000..b07df0ee7
--- /dev/null
+++ b/src/core/hle/service/set/appln_settings.h
@@ -0,0 +1,35 @@
+// SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#pragma once
+
+#include <array>
+
+#include "common/common_types.h"
+
+namespace Service::Set {
+struct ApplnSettings {
+ std::array<u8, 0x10> reserved_000;
+
+ // nn::util::Uuid MiiAuthorId, copied from system settings 0x94B0
+ std::array<u8, 0x10> mii_author_id;
+
+ std::array<u8, 0x30> reserved_020;
+
+ // nn::settings::system::ServiceDiscoveryControlSettings
+ std::array<u8, 0x4> service_discovery_control_settings;
+
+ std::array<u8, 0x20> reserved_054;
+
+ bool in_repair_process_enable_flag;
+
+ std::array<u8, 0x3> pad_075;
+};
+static_assert(offsetof(ApplnSettings, mii_author_id) == 0x10);
+static_assert(offsetof(ApplnSettings, service_discovery_control_settings) == 0x50);
+static_assert(offsetof(ApplnSettings, in_repair_process_enable_flag) == 0x74);
+static_assert(sizeof(ApplnSettings) == 0x78, "ApplnSettings has the wrong size!");
+
+ApplnSettings DefaultApplnSettings();
+
+} // namespace Service::Set