mirror of
https://github.com/switchbrew/libnx.git
synced 2025-08-05 16:09:24 +02:00
Fixed the param and sysver-check for nsvmGetSafeSystemVersion, and updated docs.
This commit is contained in:
parent
075a743cfb
commit
653a1a6b9a
@ -165,7 +165,7 @@ Result nsvmInitialize(void);
|
||||
void nsvmExit(void);
|
||||
|
||||
Result nsvmNeedsUpdateVulnerability(bool *out);
|
||||
Result nsvmGetSafeSystemVersion(u16 *out);
|
||||
Result nsvmGetSafeSystemVersion(NcmContentMetaKey *out); ///< [4.0.0+]
|
||||
|
||||
///@}
|
||||
|
||||
|
@ -233,8 +233,8 @@ Result nsvmNeedsUpdateVulnerability(bool *out) {
|
||||
return _nsCmdNoInOutBool(srv, out, 1200);
|
||||
}
|
||||
|
||||
Result nsvmGetSafeSystemVersion(u16 *out) {
|
||||
if (hosversionBefore(3,0,0))
|
||||
Result nsvmGetSafeSystemVersion(NcmContentMetaKey *out) {
|
||||
if (hosversionBefore(4,0,0))
|
||||
return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer);
|
||||
|
||||
return serviceDispatchOut(&g_nsvmSrv, 1202, out);
|
||||
|
Loading…
Reference in New Issue
Block a user