Skip to content

Instantly share code, notes, and snippets.

@crabtw
Created January 1, 2016 08:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save crabtw/3d4fee3049e342554134 to your computer and use it in GitHub Desktop.
Save crabtw/3d4fee3049e342554134 to your computer and use it in GitHub Desktop.
Fix COIN key of gngeo 0.8
--- src/event.c.orig 2016-01-01 15:55:03.995071650 +0800
+++ src/event.c 2016-01-01 15:56:36.584921148 +0800
@@ -385,6 +385,11 @@
if (joy_state[1][GN_START])
memory.intern_start &= 0xFB;
+ if (joy_state[0][GN_SELECT_COIN])
+ memory.intern_start &= 0xFD;
+ if (joy_state[1][GN_SELECT_COIN])
+ memory.intern_start &= 0xF7;
+
/* Update P1 */
memory.intern_p1 = 0xFF;
if (joy_state[0][GN_UP] && (!joy_state[0][GN_DOWN]))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment