mrehkopf / sd2snes

SD card based multi-purpose cartridge for the SNES
http://sd2snes.de
GNU General Public License v2.0
594 stars 114 forks source link

Detecting IGRs double reset in pair mode #45

Closed borti4938 closed 9 years ago

borti4938 commented 10 years ago

In pair mode the SuperCIC doesn't translate a double reset into a long reset. Hence, it has to be detected by the sd2snes. Detecting double reset is not a problem. The normal reset (combination L+R+Sel+Start) becomes a problem as a game resets while combination is pressed and hence the reset is retriggered if the games turn on automatic joypad read...

Some ideas from #44 :

mrehkopf commented 10 years ago

IIRC I was ultimately going to implement this using an interrupt hook which will be required for sd2snes-side WRAM cheats and IGR functionality anyway. The sd2snes itself would then detect the keypress combination and act accordingly. But that's still some way to go.

borti4938 commented 10 years ago

tested the version, where sd2snes pulls and releases the reset line once a short reset was detected. works reliable with all games I tested so far :) See commit a5ead0a