mirror of
https://github.com/pmret/papermario.git
synced 2024-11-18 08:52:40 +01:00
625d7874c5
* Naming, shiftability fixes, etc * follows_vram fixes * more goods * tweesterz * agh * warnings * agh
23 lines
513 B
C
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
|