libretro / fuse-libretro

A port of the Fuse Unix Spectrum Emulator to libretro
GNU General Public License v3.0
36 stars 47 forks source link

Fix a crash on core load #77

Closed justinweiss closed 4 years ago

justinweiss commented 4 years ago

When adding keys to the hash table, the core checks for -1 to end the loop, but that won't always match the -1 in the enum. Both ptr4->key and -1 should be the same type in order for the comparison to work.

This change allowed me to see the title screen of a game, but the game itself seemed stuck on the loading screen. I don't know enough about the core to know whether it's just slow, or whether there is something else missing. But it doesn't crash on launch anymore with this change, at least on 3DS.

This should fix #51.

gingerbeardman commented 4 years ago

Thanks for this!

Game probably looking for keyboard input on its menu screen.