From e2a1db533fee2be3ecaca18be3253c547b2fbd31 Mon Sep 17 00:00:00 2001 From: Bashar Astifan Date: Wed, 16 Aug 2023 02:35:54 +0400 Subject: [PATCH] Cleanup unnecessary preprocessors `DoesVersionMatchWindows` will return true by default for UWP when `greater` is true. --- Common/OSVersion.cpp | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/Common/OSVersion.cpp b/Common/OSVersion.cpp index dd7aa077fb..ba35239cb7 100644 --- a/Common/OSVersion.cpp +++ b/Common/OSVersion.cpp @@ -128,21 +128,13 @@ bool DoesVersionMatchWindows(WindowsReleaseInfo release) { } bool IsVistaOrHigher() { -#if PPSSPP_PLATFORM(UWP) - return true; -#else // Vista is 6.0 return DoesVersionMatchWindows(6, 0, 0, 0, true); -#endif } bool IsWin7OrHigher() { -#if PPSSPP_PLATFORM(UWP) - return true; -#else // Win7 is 6.1 - return DoesVersionMatchWindows(6, 0, 0, 0, true); -#endif + return DoesVersionMatchWindows(6, 1, 0, 0, true); } std::string GetWindowsVersion() {