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

Function SIGetResponse

src/dolphin/src/si/SIBios.c:524–540  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

522}
523
524BOOL SIGetResponse(s32 chan, void* data)
525{
526 BOOL rc;
527 BOOL enabled;
528
529 enabled = OSDisableInterrupts();
530 SIGetResponseRaw(chan);
531 rc = InputBufferValid[chan];
532 InputBufferValid[chan] = FALSE;
533 if (rc)
534 {
535 ((u32*)data)[0] = InputBuffer[chan][0];
536 ((u32*)data)[1] = InputBuffer[chan][1];
537 }
538 OSRestoreInterrupts(enabled);
539 return rc;
540}
541
542static void AlarmHandler(OSAlarm* alarm, OSContext* context)
543{

Callers 2

PADEnableFunction · 0.85
PADReadFunction · 0.85

Calls 2

OSDisableInterruptsFunction · 0.85
SIGetResponseRawFunction · 0.85

Tested by

no test coverage detected