You've already forked Microtransactions64
mirror of
https://github.com/Print-and-Panic/Microtransactions64.git
synced 2026-01-21 10:17:19 -08:00
@@ -22,6 +22,7 @@ extern void __osPiRelAccess(void);
|
||||
enum Emulator gEmulator = EMU_CONSOLE;
|
||||
|
||||
u32 pj64_get_count_factor_asm(void); // defined in asm/pj64_get_count_factor_asm.s
|
||||
u32 emux_detect(void); // defined in asm/emux.s
|
||||
|
||||
static inline u32 check_count_factor() {
|
||||
const u32 saved = __osDisableInt();
|
||||
@@ -86,7 +87,7 @@ static u8 check_cache_emulation() {
|
||||
|
||||
void detect_emulator() {
|
||||
if ((u32)IO_READ(DPC_PIPEBUSY_REG) | (u32)IO_READ(DPC_TMEM_REG) | (u32)IO_READ(DPC_BUFBUSY_REG)) {
|
||||
gEmulator = EMU_CONSOLE;
|
||||
gEmulator = emux_detect() ? EMU_ARES : EMU_CONSOLE;
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user