mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06: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:
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
|
Reference in New Issue
Block a user