diff options
| author | Craig Carnell <1188869+cscd98@users.noreply.github.com> | 2025-12-08 19:29:59 +0000 |
|---|---|---|
| committer | Craig Carnell <1188869+cscd98@users.noreply.github.com> | 2026-01-04 21:16:30 +0000 |
| commit | e4f6d9bad4b823dfd3d78d9a02ff7141cd1c076b (patch) | |
| tree | 0515cee3344cda3c2d306058ea902528c90c38a9 /Source/Core | |
| parent | fb2a46c4cfa2687cd0191c00efaa4ce9431ca639 (diff) | |
mingw: move ReadValue instantiations in cpp for compatibility
Diffstat (limited to 'Source/Core')
| -rw-r--r-- | Source/Core/Common/WindowsRegistry.cpp | 5 | ||||
| -rw-r--r-- | Source/Core/Common/WindowsRegistry.h | 2 |
2 files changed, 5 insertions, 2 deletions
diff --git a/Source/Core/Common/WindowsRegistry.cpp b/Source/Core/Common/WindowsRegistry.cpp index 2eb1ae9b9c..6067420669 100644 --- a/Source/Core/Common/WindowsRegistry.cpp +++ b/Source/Core/Common/WindowsRegistry.cpp @@ -46,6 +46,11 @@ bool ReadValue(std::string* value, const std::string& subkey, const std::string& return true; } +// These explicit instantiations are needed to prevent linker errors when calling +// ReadValue in WinUpdater/Platform.cpp (for u32) and ArmCPUDetect.cpp (for u64) +template bool ReadValue(u32* value, const std::string& subkey, const std::string& name); +template bool ReadValue(u64* value, const std::string& subkey, const std::string& name); + OSVERSIONINFOW GetOSVersion() { // PEB may have faked data if the binary is launched with "compatibility mode" enabled. diff --git a/Source/Core/Common/WindowsRegistry.h b/Source/Core/Common/WindowsRegistry.h index ef789a98ca..7dc3a52f91 100644 --- a/Source/Core/Common/WindowsRegistry.h +++ b/Source/Core/Common/WindowsRegistry.h @@ -9,8 +9,6 @@ namespace WindowsRegistry { template <typename T> bool ReadValue(T* value, const std::string& subkey, const std::string& name); -template bool ReadValue(u32* value, const std::string& subkey, const std::string& name); -template bool ReadValue(u64* value, const std::string& subkey, const std::string& name); template <> bool ReadValue(std::string* value, const std::string& subkey, const std::string& name); |
