SNES: Finished porting mode detection from MAME emulator