use hosversionBetween

This commit is contained in:
Michael Scire 2020-03-07 03:39:13 -08:00
parent 19240034a3
commit e05afee653

View File

@ -403,7 +403,7 @@ Result fsOpenSdCardDetectionEventNotifier(FsEventNotifier* out) {
} }
Result fsIsSignedSystemPartitionOnSdCardValid(bool *out) { Result fsIsSignedSystemPartitionOnSdCardValid(bool *out) {
if (hosversionBefore(4,0,0) || hosversionAtLeast(8,0,0)) if (!hosversionBetween(4, 8))
return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer); return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer);
return _fsCmdNoInOutBool(&g_fsSrv, out, 640); return _fsCmdNoInOutBool(&g_fsSrv, out, 640);