appln_settings.h 1.0 KB

1234567891011121314151617181920212223242526272829303132333435
  1. // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project
  2. // SPDX-License-Identifier: GPL-2.0-or-later
  3. #pragma once
  4. #include <array>
  5. #include "common/common_types.h"
  6. namespace Service::Set {
  7. struct ApplnSettings {
  8. std::array<u8, 0x10> reserved_000;
  9. // nn::util::Uuid MiiAuthorId, copied from system settings 0x94B0
  10. std::array<u8, 0x10> mii_author_id;
  11. std::array<u8, 0x30> reserved_020;
  12. // nn::settings::system::ServiceDiscoveryControlSettings
  13. std::array<u8, 0x4> service_discovery_control_settings;
  14. std::array<u8, 0x20> reserved_054;
  15. bool in_repair_process_enable_flag;
  16. std::array<u8, 0x3> pad_075;
  17. };
  18. static_assert(offsetof(ApplnSettings, mii_author_id) == 0x10);
  19. static_assert(offsetof(ApplnSettings, service_discovery_control_settings) == 0x50);
  20. static_assert(offsetof(ApplnSettings, in_repair_process_enable_flag) == 0x74);
  21. static_assert(sizeof(ApplnSettings) == 0x78, "ApplnSettings has the wrong size!");
  22. ApplnSettings DefaultApplnSettings();
  23. } // namespace Service::Set