Merge pull request #611 from TwilitRealm/26-05-01-heap-crash-log

Improve heap crash logging
This commit is contained in:
TakaRikka
2026-05-01 22:19:33 -07:00
committed by GitHub
5 changed files with 105 additions and 7 deletions
+2 -1
View File
@@ -2041,11 +2041,12 @@ static void drawItem3D() {
int mDoGph_Painter() {
ZoneScoped;
// Diagnostic: log windowNum to track game state machine progress
static bool sDiagLoggedWindow = false;
if (!sDiagLoggedWindow) {
int wn = dComIfGp_getWindowNum();
DuskLog.debug("mDoGph_Painter: windowNum={}", wn);
// DuskLog.debug("mDoGph_Painter: windowNum={}", wn);
if (wn != 0) sDiagLoggedWindow = true;
}
+2
View File
@@ -753,9 +753,11 @@ void myGXVerifyCallback(GXWarningLevel param_1, u32 param_2, const char* param_3
#endif
int mDoMch_Create() {
#if !TARGET_PC // We want crash logs.
if (mDoMain::developmentMode == 0 || !(OSGetConsoleType() & 0x10000000)) {
OSReportDisable();
}
#endif
JKRHeap::setDefaultDebugFill(mDoMch::mDebugFill);
#if DEBUG