MCPcopy Create free account
hub / github.com/bfbbdecomp/bfbb / SIGetTypeAsync

Function SIGetTypeAsync

src/dolphin/src/si/SIBios.c:744–774  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

742}
743
744u32 SIGetTypeAsync(s32 chan, SITypeAndStatusCallback callback)
745{
746 BOOL enabled;
747 u32 type;
748
749 enabled = OSDisableInterrupts();
750 type = SIGetType(chan);
751 if (Type[chan] & SI_ERROR_BUSY)
752 {
753 int i;
754
755 for (i = 0; i < 4; ++i)
756 {
757 if (TypeCallback[chan][i] == callback)
758 {
759 break;
760 }
761 if (TypeCallback[chan][i] == 0)
762 {
763 TypeCallback[chan][i] = callback;
764 break;
765 }
766 }
767 }
768 else
769 {
770 callback(chan, type);
771 }
772 OSRestoreInterrupts(enabled);
773 return type;
774}
775
776char* SIGetTypeString(u32 type)
777{

Callers 2

DoResetFunction · 0.85
PADReadFunction · 0.85

Calls 3

OSDisableInterruptsFunction · 0.85
SIGetTypeFunction · 0.85
callbackClass · 0.50

Tested by

no test coverage detected