From 862c675713f54189fc2fc0f5779c1ab57e9b7cc8 Mon Sep 17 00:00:00 2001 From: Luis Scheurenbrand Date: Thu, 3 Dec 2020 05:17:07 +0100 Subject: [PATCH] version check --- nx/source/services/capmtp.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nx/source/services/capmtp.c b/nx/source/services/capmtp.c index b9f47ecb..b70afeca 100644 --- a/nx/source/services/capmtp.c +++ b/nx/source/services/capmtp.c @@ -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");