summaryrefslogtreecommitdiff
path: root/src/boot
diff options
context:
space:
mode:
authorcadmic <cadmic24@gmail.com>2025-01-05 22:45:12 -0800
committerGitHub <noreply@github.com>2025-01-06 01:45:12 -0500
commit3aafbf3971502e70f9ff672c3c820137d8f1ce6f (patch)
tree5a6acc8d7aacf5afe4d3bf9172e18cec3be62dd2 /src/boot
parentbd606ba03850a2baf29690818a6d1f9e9ef1bfc2 (diff)
Match remaining IDO files for iQue (#2394)
Diffstat (limited to 'src/boot')
-rw-r--r--src/boot/driverominit.c7
1 files changed, 7 insertions, 0 deletions
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;