mirror of
https://github.com/PrimeDecomp/prime.git
synced 2025-08-11 18:59:07 +00:00
26 lines
380 B
C
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;
|
|
}
|