mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-08-22 05:49:01 -04:00
Merge pull request #611 from TwilitRealm/26-05-01-heap-crash-log
Improve heap crash logging
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user