From bb943741ca0e7a77de0bdeb24f08c46d6f9da4f7 Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Wed, 31 Oct 2018 12:08:08 -0700 Subject: [PATCH] Add size check --- source/main.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/source/main.c b/source/main.c index 42be53e..550da68 100644 --- a/source/main.c +++ b/source/main.c @@ -14,7 +14,6 @@ static u64 g_nroSize = 0; static NroHeader g_nroHeader; static bool g_isApplication = 0; - static NsApplicationControlData g_applicationControlData; static bool g_isAutomaticGameplayRecording = 0; @@ -78,7 +77,7 @@ void setupHbHeap(void) if (size==0) size = 0x2000000*16; - if (g_isAutomaticGameplayRecording) { + if (size > 0x6000000 && g_isAutomaticGameplayRecording) { size -= 0x6000000; }