papermario/src/create_audio_system_obfuscated.c
Ethan Roseman 625d7874c5
Shiftability, naming of things (#930)
* Naming, shiftability fixes, etc

* follows_vram fixes

* more goods

* tweesterz

* agh

* warnings

* agh
2023-02-02 20:23:17 +09:00

23 lines
513 B
C

#include "common.h"
extern u8 obfuscated_create_audio_system[];
#ifdef SHIFT
void create_audio_system(void);
void create_audio_system_obfuscated(void) {
create_audio_system();
}
#else
void create_audio_system_obfuscated(void) {
u32 t0 = 0xAC29007B;
u32 t1 = 0xB00006A8;
void (*create_audio_system)(void) = (void (*)(void)) obfuscated_create_audio_system;
while (IO_READ(PI_STATUS_REG) & 3);
t0 -= IO_READ(t1 - 0x1C8);
create_audio_system += t0;
create_audio_system();
}
#endif