From 3aafbf3971502e70f9ff672c3c820137d8f1ce6f Mon Sep 17 00:00:00 2001 From: cadmic Date: Sun, 5 Jan 2025 22:45:12 -0800 Subject: Match remaining IDO files for iQue (#2394) --- src/boot/driverominit.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/boot') diff --git a/src/boot/driverominit.c b/src/boot/driverominit.c index 7d1441cdd..5ed69abe0 100644 --- a/src/boot/driverominit.c +++ b/src/boot/driverominit.c @@ -3,7 +3,14 @@ OSPiHandle __DriveRomHandle; OSPiHandle* osDriveRomInit(void) { +#if PLATFORM_IQUE && defined(NON_MATCHING) + // On iQue, the compiled output of this file is patched so that the + // `!first` check is always taken. For non-matching builds, we edit the + // source code instead. + static u32 first = false; +#else static u32 first = true; +#endif register s32 status; register u32 value; register u32 prevInt; -- cgit v1.2.3