From dfa3d387bda965752dbaa27b0b30152f9eaf4190 Mon Sep 17 00:00:00 2001 From: cathery Date: Thu, 28 May 2020 14:53:19 +0300 Subject: [PATCH] Update libnx, libstrat, reduce FS sessions --- README.md | 2 +- source/Sysmodule/source/main.cpp | 5 +++++ source/libstratosphere | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 51eb65f..68e8307 100644 --- a/README.md +++ b/README.md @@ -45,7 +45,7 @@ Instead, clone the repository **recursively** using any git client you have. (Gi Like all other switch projects, you need to have [devkitA64](https://switchbrew.org/wiki/Setting_up_Development_Environment) set up on your system. -This project uses libnx version **3.2.0**. +This project uses libnx version **3.3.0**. If you have **Visual Studio Code**, you can open the project as a folder and run the build tasks from inside the program. It also has Intellisense configured for switch development, if you have DEVKITPRO correctly defined in your environment variables. Handy! diff --git a/source/Sysmodule/source/main.cpp b/source/Sysmodule/source/main.cpp index 15da785..272ec8c 100644 --- a/source/Sysmodule/source/main.cpp +++ b/source/Sysmodule/source/main.cpp @@ -12,7 +12,12 @@ // libnx fake heap initialization extern "C" { + // We aren't an applet, so disable applet functionality. u32 __nx_applet_type = AppletType_None; + // We are a sysmodule, so don't use more FS sessions than needed. + u32 __nx_fs_num_sessions = 1; + // We don't need to reserve memory for fsdev, so don't use it. + u32 __nx_fsdev_direntry_cache_size = 1; #define INNER_HEAP_SIZE 0x40'000 size_t nx_inner_heap_size = INNER_HEAP_SIZE; diff --git a/source/libstratosphere b/source/libstratosphere index bbbe679..797dfa7 160000 --- a/source/libstratosphere +++ b/source/libstratosphere @@ -1 +1 @@ -Subproject commit bbbe67937ae515a577c131608626b37c77af57a7 +Subproject commit 797dfa782e85173652d017de38066f9a5c88622a