We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a12a5bc commit e1705d1Copy full SHA for e1705d1
1 file changed
libogc/system.c
@@ -446,14 +446,14 @@ static void __RSWHandler(u32 irq, void* ctx)
446
do {
447
now = gettime();
448
if(diff_usec(hold_down,now)>=100) break;
449
- } while(!(_piReg[0]&0x10000));
+ } while(!SYS_ResetButtonDown());
450
451
- if(_piReg[0]&0x10000) {
+ if(SYS_ResetButtonDown()){
452
__MaskIrq(IRQMASK(IRQ_PI_RSW));
453
-
454
if(__RSWCallback) {
455
__RSWCallback(irq, ctx);
456
}
+ __UnmaskIrq(IRQMASK(IRQ_PI_RSW));
457
458
_piReg[0] = 2;
459
0 commit comments