shonumi / gbe-plus

DMG/GBC/GBA emulator and experimental NDS emulator.
GNU General Public License v2.0
501 stars 79 forks source link

[Request] New TV Remote Implementation #160

Open citrongames opened 5 months ago

citrongames commented 5 months ago

GBC game "Doraemon Memories - Nobita no Omoide Daibouken" uses special tv remote to unlock its levels (ドラえもんのテレビリモコン or ドラえコン or in english Doracon). Normal TV Remote doesnt work. How it should work - you start game, choose phone booth on level screen and select signal icon, game will wait for your input.

shonumi commented 5 months ago

Thanks for the issue report. I had no idea this game used infrared, so I would have never known about it unless you brought up!

I took a look at the game's code, and it seems like it wants the GBC to receive actual, valid IR signals from a TV remote. Currently, GBE+ sends out 32 ON/OFF signals of different, randomized lengths. It works for a number of games that just want any kind of IR input, but not for Doracon, evidently.

If I had to guess, the game is probably trying to validate the NEC protocol. It shouldn't be too hard for GBE+ to emulate that. It's essentially still a bunch of ON/OFF signals, just with specific timings and something like 24-bits of data encoded. I could get working on it soon, taking a break from the Campho Advance development.