prime/src/Dolphin/GBA/GBAGetProcessStatus.c
Phillip Stephens cb7e35b615 Match and link GBARead/Write
Former-commit-id: 55fac9eb379c519e9ed71f9ac14a0835d476cb43
2022-10-15 19:14:54 -07:00

26 lines
380 B
C

#include "dolphin/GBAPriv.h"
s32 GBAGetProcessStatus(s32 chan, u8* percentp) {
GBA* gba;
s32 ret;
BOOL enabled;
gba = &__GBA[chan];
enabled = OSDisableInterrupts();
if (gba->jboot_callback == NULL) {
if (gba->callback == NULL) {
ret = 0;
} else {
ret = 2;
}
} else {
ret = 2;
}
OSRestoreInterrupts(enabled);
return ret;
}