Made the hang prevention message go to LOG_ERROR instead of stdout

This commit is contained in:
MysterD 2023-10-28 00:21:18 -07:00
parent 139fcc1dd2
commit 857bb342b7
3 changed files with 5 additions and 8 deletions

View File

@ -12282,7 +12282,7 @@ MINOR_VERSION_NUMBER = 0
PATCH_VERSION_NUMBER = 0
--- @type integer
VERSION_NUMBER = 35
VERSION_NUMBER = 36
--- @type string
VERSION_REGION = "JP"
@ -12297,4 +12297,4 @@ VERSION_REGION = "SH"
VERSION_REGION = "US"
--- @type string
VERSION_TEXT = "beta"
VERSION_TEXT = "v"

View File

@ -2057,10 +2057,7 @@ static u8 prevent_hang(u32 hangPreventionActions[], u8* hangPreventionIndex) {
if (*hangPreventionIndex < MAX_HANG_PREVENTION) { return FALSE; }
// complain to console
printf("#######################################\n");
printf("# HANG PREVENTED #\n");
printf("# Send the error log to the developer #\n");
printf("#######################################\n");
LOG_ERROR("Action loop hang prevented");
return TRUE;
}

View File

@ -4283,8 +4283,8 @@ char gSmluaConstants[] = ""
"COOP_OBJ_FLAG_LUA = (1 << 1)\n"
"COOP_OBJ_FLAG_NON_SYNC = (1 << 2)\n"
"COOP_OBJ_FLAG_INITIALIZED = (1 << 3)\n"
"VERSION_TEXT = 'beta'\n"
"VERSION_NUMBER = 35\n"
"VERSION_TEXT = 'v'\n"
"VERSION_NUMBER = 36\n"
"MINOR_VERSION_NUMBER = 0\n"
"PATCH_VERSION_NUMBER = 0\n"
"VERSION_REGION = 'JP'\n"