Skip to content

Commit

Permalink
-minor cleanup
Browse files Browse the repository at this point in the history
-bump sysmodule heap
-shrink sysmodule stack
  • Loading branch information
HookedBehemoth committed Jun 12, 2020
1 parent 28c4c18 commit 67ed475
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion overlay/source/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class OverlayTest : public tsl::Overlay {
virtual void initServices() override {
Result rc = tuneInitialize();

if (rc == MAKERESULT(Module_Libnx, LibnxError_NotFound)) {
if (R_VALUE(rc) == MAKERESULT(Module_Libnx, LibnxError_NotFound)) {
u64 pid = 0;
const NcmProgramLocation programLocation{
.program_id = 0x4200000000000000,
Expand All @@ -33,9 +33,11 @@ class OverlayTest : public tsl::Overlay {
svcSleepThread(100'000'000);
rc = tuneInitialize();
}

if (R_FAILED(rc)) {
this->msg = "Something went wrong:";
this->fail = rc;
return;
}

u32 api;
Expand Down
2 changes: 1 addition & 1 deletion sys-tune/source/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ extern "C" {
u32 __nx_applet_type = AppletType_None;
u32 __nx_fs_num_sessions = 1;

#define INNER_HEAP_SIZE 0x50000
#define INNER_HEAP_SIZE 0x60000
size_t nx_inner_heap_size = INNER_HEAP_SIZE;
char nx_inner_heap[INNER_HEAP_SIZE];

Expand Down
2 changes: 1 addition & 1 deletion sys-tune/sys-tune.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"title_id": "0x4200000000000000",
"title_id_range_min": "0x4200000000000000",
"title_id_range_max": "0x4200000000000000",
"main_thread_stack_size": "0x00002000",
"main_thread_stack_size": "0x00001000",
"main_thread_priority": 48,
"default_cpu_id": 3,
"process_category": 0,
Expand Down

0 comments on commit 67ed475

Please sign in to comment.