diff options
author | Zach Hilman <zachhilman@gmail.com> | 2018-12-28 02:54:44 +0100 |
---|---|---|
committer | Zach Hilman <zachhilman@gmail.com> | 2019-04-25 14:07:57 +0200 |
commit | 1aa2b99a982e83022c9aae23c6a47eae119d21a4 (patch) | |
tree | 33f5c35625557c73998d48ca8f0d26dd0f986d84 /src/core/hle/service/mii/mii_manager.h | |
parent | mii: Implement IsUpdated command (IPC 0) (diff) | |
download | yuzu-1aa2b99a982e83022c9aae23c6a47eae119d21a4.tar yuzu-1aa2b99a982e83022c9aae23c6a47eae119d21a4.tar.gz yuzu-1aa2b99a982e83022c9aae23c6a47eae119d21a4.tar.bz2 yuzu-1aa2b99a982e83022c9aae23c6a47eae119d21a4.tar.lz yuzu-1aa2b99a982e83022c9aae23c6a47eae119d21a4.tar.xz yuzu-1aa2b99a982e83022c9aae23c6a47eae119d21a4.tar.zst yuzu-1aa2b99a982e83022c9aae23c6a47eae119d21a4.zip |
Diffstat (limited to 'src/core/hle/service/mii/mii_manager.h')
-rw-r--r-- | src/core/hle/service/mii/mii_manager.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/core/hle/service/mii/mii_manager.h b/src/core/hle/service/mii/mii_manager.h index bf955930d..38ad78a0d 100644 --- a/src/core/hle/service/mii/mii_manager.h +++ b/src/core/hle/service/mii/mii_manager.h @@ -27,6 +27,8 @@ enum class Source : u32 { Friend = 3, }; +std::ostream& operator<<(std::ostream& os, Source source); + struct MiiInfo { Common::UUID uuid; std::array<char16_t, 11> name; @@ -183,6 +185,8 @@ struct MiiStoreBitFields { }; }; static_assert(sizeof(MiiStoreBitFields) == 0x1C, "MiiStoreBitFields has incorrect size."); +static_assert(std::is_trivially_copyable_v<MiiStoreBitFields>, + "MiiStoreBitFields is not trivially copyable."); struct MiiStoreData { // This corresponds to the above structure MiiStoreBitFields. I did it like this because the @@ -229,6 +233,8 @@ public: bool CheckUpdatedFlag() const; void ResetUpdatedFlag(); + bool IsTestModeEnabled() const; + bool Empty() const; bool Full() const; @@ -248,6 +254,9 @@ public: bool Move(Common::UUID uuid, u32 new_index); bool AddOrReplace(const MiiStoreData& data); + bool DestroyFile(); + bool DeleteFile(); + private: void WriteToFile(); void ReadFromFile(); @@ -258,6 +267,7 @@ private: MiiDatabase database; bool updated_flag = false; + bool is_test_mode_enabled = false; }; }; // namespace Service::Mii |