From fe0bd03febab7f39efc51bf3e984f6771cd78896 Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Wed, 27 May 2020 03:51:11 -0700 Subject: [PATCH] strat: use 1 fewer fs session at runtime (and match official ncm usage) --- stratosphere/boot/source/boot_main.cpp | 1 + stratosphere/ncm/source/ncm_main.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/stratosphere/boot/source/boot_main.cpp b/stratosphere/boot/source/boot_main.cpp index 50a7b7a2e..07e6edc3c 100644 --- a/stratosphere/boot/source/boot_main.cpp +++ b/stratosphere/boot/source/boot_main.cpp @@ -35,6 +35,7 @@ extern "C" { extern u32 __start__; u32 __nx_applet_type = AppletType_None; + u32 __nx_fs_num_sessions = 1; /* TODO: Evaluate to what extent this can be reduced further. */ #define INNER_HEAP_SIZE 0x20000 diff --git a/stratosphere/ncm/source/ncm_main.cpp b/stratosphere/ncm/source/ncm_main.cpp index 8d16556c1..d9ed098ea 100644 --- a/stratosphere/ncm/source/ncm_main.cpp +++ b/stratosphere/ncm/source/ncm_main.cpp @@ -19,6 +19,7 @@ extern "C" { extern u32 __start__; u32 __nx_applet_type = AppletType_None; + u32 __nx_fs_num_sessions = 2; #define INNER_HEAP_SIZE 0x8000 size_t nx_inner_heap_size = INNER_HEAP_SIZE;