Fixed the param and sysver-check for nsvmGetSafeSystemVersion, and updated docs.

This commit is contained in:
yellows8 2019-09-26 17:21:54 -04:00
parent 075a743cfb
commit 653a1a6b9a
No known key found for this signature in database
GPG Key ID: 0AF90DA3F1E60E43
2 changed files with 3 additions and 3 deletions

View File

@ -165,7 +165,7 @@ Result nsvmInitialize(void);
void nsvmExit(void); void nsvmExit(void);
Result nsvmNeedsUpdateVulnerability(bool *out); Result nsvmNeedsUpdateVulnerability(bool *out);
Result nsvmGetSafeSystemVersion(u16 *out); Result nsvmGetSafeSystemVersion(NcmContentMetaKey *out); ///< [4.0.0+]
///@} ///@}

View File

@ -233,8 +233,8 @@ Result nsvmNeedsUpdateVulnerability(bool *out) {
return _nsCmdNoInOutBool(srv, out, 1200); return _nsCmdNoInOutBool(srv, out, 1200);
} }
Result nsvmGetSafeSystemVersion(u16 *out) { Result nsvmGetSafeSystemVersion(NcmContentMetaKey *out) {
if (hosversionBefore(3,0,0)) if (hosversionBefore(4,0,0))
return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer); return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer);
return serviceDispatchOut(&g_nsvmSrv, 1202, out); return serviceDispatchOut(&g_nsvmSrv, 1202, out);