Merge pull request #376 from negativeExponent/fix_famicom_expansion_crash

Fix SIGSEGV error when using Famicom expansion devices (port 5)
This commit is contained in:
hizzlekizzle
2020-07-25 07:47:40 -05:00
committed by GitHub

View File

@@ -125,7 +125,7 @@ typedef struct {
/* input data */
uint32_t JSReturn; /* player input data, 1 byte per player (1-4) */
uint32_t MouseData[MAX_PORTS][3]; /* nes mouse data */
uint32_t FamicomData; /* Famicom expansion port data */
uint32_t FamicomData[3]; /* Famicom expansion port data */
} NES_INPUT_T;
static NES_INPUT_T nes_input = { 0 };