diff options
| author | cadmic <cadmic24@gmail.com> | 2025-01-05 22:45:12 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-01-06 01:45:12 -0500 |
| commit | 3aafbf3971502e70f9ff672c3c820137d8f1ce6f (patch) | |
| tree | 5a6acc8d7aacf5afe4d3bf9172e18cec3be62dd2 /src | |
| parent | bd606ba03850a2baf29690818a6d1f9e9ef1bfc2 (diff) | |
Match remaining IDO files for iQue (#2394)
Diffstat (limited to 'src')
| -rw-r--r-- | src/boot/driverominit.c | 7 | ||||
| -rw-r--r-- | src/code/z_skelanime.c | 2 |
2 files changed, 8 insertions, 1 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; diff --git a/src/code/z_skelanime.c b/src/code/z_skelanime.c index a953bdb21..d21981510 100644 --- a/src/code/z_skelanime.c +++ b/src/code/z_skelanime.c @@ -849,7 +849,7 @@ AnimTask* AnimTaskQueue_NewTask(AnimTaskQueue* animTaskQueue, s32 type) { return task; } -#if PLATFORM_N64 +#if !PLATFORM_GC #define LINK_ANIMATION_OFFSET(addr, offset) \ (((uintptr_t)_link_animetionSegmentRomStart) + SEGMENT_OFFSET(addr) + (offset)) #else |
