Fix EWRAM_INIT in tests and add a default state to test runner main loop

This commit is contained in:
Hedara 2025-09-06 16:56:48 +02:00 committed by Philipp AUER
parent c5fff74ec4
commit 912f553cf7
2 changed files with 6 additions and 0 deletions

View File

@ -19,6 +19,7 @@ SECTIONS {
{
__ewram_start = .;
*(.ewram*)
. = ALIGN(4);
__ewram_end = .;
} > EWRAM

View File

@ -446,6 +446,11 @@ top:
case STATE_EXIT:
MgbaExit_(gTestRunnerState.exitCode);
break;
default:
MgbaOpen_();
Test_MgbaPrintf("\e[31mInvalid TestRunner state, exiting\e[0m");
gTestRunnerState.exitCode = 1;
gTestRunnerState.state = STATE_EXIT;
}
if (gMain.callback2 == CB2_TestRunner)