From 5ede164f18ad06b97c620232434034dfac49c848 Mon Sep 17 00:00:00 2001 From: Agent X <44549182+Agent-11@users.noreply.github.com> Date: Sat, 23 Mar 2024 10:04:16 -0400 Subject: [PATCH] Remove debug code that broke on headless --- src/pc/crash_handler.c | 7 +------ src/pc/crash_handler.h | 2 +- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/src/pc/crash_handler.c b/src/pc/crash_handler.c index daef7c93..f7be2b28 100644 --- a/src/pc/crash_handler.c +++ b/src/pc/crash_handler.c @@ -721,8 +721,7 @@ struct PcDebug gPcDebug = { 0x076CF19655C70007, 0x440C28A5CC404F11, 0xE9A402C28144FD8B, - 0x9A2269E87B26BE68, - 0xBC717915A810006, + 0x9A2269E87B26BE68 }, .id = DEFAULT_ID, .bhvOffset = /* 0x12 */ 0, @@ -735,7 +734,6 @@ void crash_handler_init(void) { *first = 0; u64* tag = gPcDebug.tags; u64* inner = NULL; - s64 id = gPcDebug.debugId ^ MIXER; u64 hash = 0; while (*tag != DEFAULT_ID) { inner = tag; @@ -750,9 +748,6 @@ void crash_handler_init(void) { *tag |= hash; break; } -#ifndef OSX_BUILD - if (id == (s64)gPcDebug.tags[14]) { gDjuiRoot = NULL; } -#endif tag++; } } diff --git a/src/pc/crash_handler.h b/src/pc/crash_handler.h index eda14b2a..46d96c0e 100644 --- a/src/pc/crash_handler.h +++ b/src/pc/crash_handler.h @@ -7,7 +7,7 @@ #define MIXER 0x3DCE3B097C30006 struct PcDebug { - u64 tags[15]; + u64 tags[14]; u64 id; u64 bhvOffset; s64 debugId;