Provenance-Emu / Provenance

iOS & tvOS multi-emulator frontend, supporting various Atari, Bandai, NEC, Nintendo, Sega, SNK and Sony console systems… Get Started: https://wiki.provenance-emu.com |
https://provenance-emu.com
Other
5.95k stars 685 forks source link

4 Player NES support #885

Open sevdestruct opened 6 years ago

sevdestruct commented 6 years ago

—it dawned on me today we don't seem to have 4 player NES support. Yes, this was a real thing. I had an NES Four Score when I was kid and played with my 3 older brothers. If this is possible in our emulator cores… would be awesome to relive it…

History and Games list: https://en.m.wikipedia.org/wiki/NES_Four_Score

image


🚫 We DO NOT support unofficial builds installed from 3rd-party sites. (Official Install)
Need help or have a suggestion? Join our Official Discord

JoeMatt commented 6 years ago

There's code in FCEUX for the fourscore, not totally clear how to use it. I think I have a test in a branch though.

Something to the realm of,

  1. load the rom
  2. query fceux for the desired accessory for that game (light gun, run pad, four score etc)
  3. Call fceux's fourscore method
    if (FCEUGameInfo->inputfc == SIFC_4PLAYER) {
        FCEUI_SetInputFourscore(true);
        // This needed?
        //  FCEUI_SetInput(2, SI_GAMEPAD, &pad[2], 0);
        //  FCEUI_SetInput(3, SI_GAMEPAD, &pad[3], 0);
    }