mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-30 12:48:57 +00:00
windows: prefer os version from registry
this value is not modified by compatibility mode drop reporting service pack numbers. no longer used
This commit is contained in:
parent
10fd768898
commit
dff7f20f9d
7 changed files with 102 additions and 45 deletions
15
Source/Core/Common/WindowsRegistry.h
Normal file
15
Source/Core/Common/WindowsRegistry.h
Normal file
|
@ -0,0 +1,15 @@
|
|||
#pragma once
|
||||
|
||||
#include <Windows.h>
|
||||
|
||||
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);
|
||||
|
||||
OSVERSIONINFOW GetOSVersion();
|
||||
}; // namespace WindowsRegistry
|
Loading…
Add table
Add a link
Reference in a new issue