mirror of
https://github.com/switchbrew/libnx.git
synced 2025-07-05 19:02:14 +02:00
version check
This commit is contained in:
parent
95395c62e3
commit
862c675713
@ -19,6 +19,9 @@ NX_GENERATE_SERVICE_GUARD_PARAMS(capmtp, (void* mem, size_t size, u32 max_folder
|
||||
Result _capmtpInitialize(void* mem, size_t size, u32 max_folders, u32 max_img, u32 max_vid, const uint_least16_t *other_name) {
|
||||
Result rc=0;
|
||||
|
||||
if (hosversionBefore(11,0,0))
|
||||
return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer);
|
||||
|
||||
rc = tmemCreateFromMemory(&g_tmem, mem, size, Perm_None);
|
||||
|
||||
if (R_SUCCEEDED(rc)) rc = smGetService(&g_capmtpRoot, "capmtp");
|
||||
|
Loading…
Reference in New Issue
Block a user