[*] Dumbdumb moment
This commit is contained in:
parent
77c74f886b
commit
5bafce075a
@ -27,7 +27,9 @@ namespace Aurora::SWInfo
|
|||||||
static bool IsWindowsVersionOrGreater(AuUInt8 major, AuUInt8 minor, AuUInt16 sp)
|
static bool IsWindowsVersionOrGreater(AuUInt8 major, AuUInt8 minor, AuUInt16 sp)
|
||||||
{
|
{
|
||||||
auto &info = GetPlatformInfo();
|
auto &info = GetPlatformInfo();
|
||||||
return info.ePlatform == Build::EPlatform::ePlatformWin32 && info.uKernelMajor >= major && info.uKernelMinor >= minor && info.uUserlandMinor >= sp;
|
return info.ePlatform == Build::EPlatform::ePlatformWin32 &&
|
||||||
|
(info.uKernelMajor > major || (info.uKernelMajor == major && info.uKernelMinor >= minor)) &&
|
||||||
|
((info.uKernelMajor == major && info.uKernelMinor == minor) ? info.uUserlandMinor >= sp : true);
|
||||||
}
|
}
|
||||||
|
|
||||||
AUKN_SYM bool IsWindowsXPOrGreater()
|
AUKN_SYM bool IsWindowsXPOrGreater()
|
||||||
|
Loading…
Reference in New Issue
Block a user