mirror of
https://github.com/switchbrew/libnx.git
synced 2025-07-05 10:52:15 +02:00
hosversion: Fix logic
This commit is contained in:
parent
848a5c3ad9
commit
fdc6d1a182
@ -30,6 +30,9 @@ bool hosversionAtLeast(u8 major, u8 minor, u8 micro)
|
|||||||
if (g_kernelLowerBound >= ver)
|
if (g_kernelLowerBound >= ver)
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
|
if (g_kernelUpperBound < ver)
|
||||||
|
return false;
|
||||||
|
|
||||||
fatalSimple(-1);
|
fatalSimple(-1);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -40,6 +43,9 @@ bool hosversionBefore(u8 major, u8 minor, u8 micro)
|
|||||||
if (g_hasHosVersion)
|
if (g_hasHosVersion)
|
||||||
return g_hosVersion < ver;
|
return g_hosVersion < ver;
|
||||||
|
|
||||||
|
if (g_kernelLowerBound >= ver)
|
||||||
|
return false;
|
||||||
|
|
||||||
if (g_kernelUpperBound < ver)
|
if (g_kernelUpperBound < ver)
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user