diff options
| author | 2023-11-26 07:36:08 +0000 | |
|---|---|---|
| committer | 2023-12-16 06:01:54 +0000 | |
| commit | 4144c517a5df13b79f44d2e2e11b7ac6e06e276f (patch) | |
| tree | b582e8432382505550ef574ca8bbcd58b87747a3 /src/common/common_funcs.h | |
| parent | Merge pull request #12354 from liamwhite/mackage-panager (diff) | |
| download | yuzu-4144c517a5df13b79f44d2e2e11b7ac6e06e276f.tar.gz yuzu-4144c517a5df13b79f44d2e2e11b7ac6e06e276f.tar.xz yuzu-4144c517a5df13b79f44d2e2e11b7ac6e06e276f.zip | |
Make system settings persistent across boots
Diffstat (limited to '')
| -rw-r--r-- | src/common/common_funcs.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/common/common_funcs.h b/src/common/common_funcs.h index 47d028d48..ba3081efb 100644 --- a/src/common/common_funcs.h +++ b/src/common/common_funcs.h | |||
| @@ -123,6 +123,12 @@ namespace Common { | |||
| 123 | return u32(a) | u32(b) << 8 | u32(c) << 16 | u32(d) << 24; | 123 | return u32(a) | u32(b) << 8 | u32(c) << 16 | u32(d) << 24; |
| 124 | } | 124 | } |
| 125 | 125 | ||
| 126 | [[nodiscard]] constexpr u64 MakeMagic(char a, char b, char c, char d, char e, char f, char g, | ||
| 127 | char h) { | ||
| 128 | return u64(a) << 0 | u64(b) << 8 | u64(c) << 16 | u64(d) << 24 | u64(e) << 32 | u64(f) << 40 | | ||
| 129 | u64(g) << 48 | u64(h) << 56; | ||
| 130 | } | ||
| 131 | |||
| 126 | // std::size() does not support zero-size C arrays. We're fixing that. | 132 | // std::size() does not support zero-size C arrays. We're fixing that. |
| 127 | template <class C> | 133 | template <class C> |
| 128 | constexpr auto Size(const C& c) -> decltype(c.size()) { | 134 | constexpr auto Size(const C& c) -> decltype(c.size()) { |