mirror of https://github.com/mgba-emu/mgba.git
Spring IRQs if we need to
This commit is contained in:
parent
3ca5e52de1
commit
9f425c53c8
|
@ -77,6 +77,11 @@ static void GBAProcessEvents(struct ARMBoard* board) {
|
|||
int32_t nextEvent = INT_MAX;
|
||||
int32_t testEvent;
|
||||
|
||||
if (gbaBoard->p->springIRQ) {
|
||||
ARMRaiseIRQ(&gbaBoard->p->cpu);
|
||||
gbaBoard->p->springIRQ = 0;
|
||||
}
|
||||
|
||||
testEvent = GBAVideoProcessEvents(&gbaBoard->p->video, cycles);
|
||||
if (testEvent < nextEvent) {
|
||||
nextEvent = testEvent;
|
||||
|
|
Loading…
Reference in New Issue