From 1160693c2ee6da716cb5d77dcbd6063677a5d63d Mon Sep 17 00:00:00 2001 From: ndeadly <24677491+ndeadly@users.noreply.github.com> Date: Tue, 25 Aug 2020 23:21:36 +0200 Subject: [PATCH] btdrv-mitm: reduce memory footprint --- btdrv-mitm/btdrv-mitm.json | 2 +- btdrv-mitm/source/main.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/btdrv-mitm/btdrv-mitm.json b/btdrv-mitm/btdrv-mitm.json index 6ce40b2..2718372 100644 --- a/btdrv-mitm/btdrv-mitm.json +++ b/btdrv-mitm/btdrv-mitm.json @@ -3,7 +3,7 @@ "title_id": "0x010000000000bd00", "title_id_range_min": "0x010000000000bd00", "title_id_range_max": "0x010000000000bd00", - "main_thread_stack_size": "0x10000", + "main_thread_stack_size": "0x4000", "main_thread_priority": 16, "default_cpu_id": 3, "process_category": 1, diff --git a/btdrv-mitm/source/main.cpp b/btdrv-mitm/source/main.cpp index 1dc665d..44e0465 100644 --- a/btdrv-mitm/source/main.cpp +++ b/btdrv-mitm/source/main.cpp @@ -28,7 +28,7 @@ extern "C" { u32 __nx_applet_type = AppletType_None; u32 __nx_fs_num_sessions = 1; - #define INNER_HEAP_SIZE 0x40000 + #define INNER_HEAP_SIZE 0x10000 size_t nx_inner_heap_size = INNER_HEAP_SIZE; char nx_inner_heap[INNER_HEAP_SIZE];