Merge pull request #12184 from Kelebek1/system_settings

Make system settings persistent across boots
This commit is contained in:
liamwhite 2023-12-16 11:47:52 -05:00 committed by GitHub
commit a093f3d47a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 1616 additions and 405 deletions

View file

@ -123,6 +123,12 @@ namespace Common {
return u32(a) | u32(b) << 8 | u32(c) << 16 | u32(d) << 24;
}
[[nodiscard]] constexpr u64 MakeMagic(char a, char b, char c, char d, char e, char f, char g,
char h) {
return u64(a) << 0 | u64(b) << 8 | u64(c) << 16 | u64(d) << 24 | u64(e) << 32 | u64(f) << 40 |
u64(g) << 48 | u64(h) << 56;
}
// std::size() does not support zero-size C arrays. We're fixing that.
template <class C>
constexpr auto Size(const C& c) -> decltype(c.size()) {