Ensure a few static variables are initialized properly.

This commit is contained in:
harry 2023-02-18 16:24:28 -05:00
parent e9f97f520a
commit 6b73e91c38
2 changed files with 5 additions and 5 deletions

View File

@ -21,11 +21,11 @@
#include "mapinc.h"
#include "../ines.h"
static uint8 latche, latcheinit, bus_conflict;
static uint16 addrreg0, addrreg1;
static uint8 latche=0, latcheinit=0, bus_conflict=0;
static uint16 addrreg0=0, addrreg1=0;
static uint8 *WRAM = NULL;
static uint32 WRAMSIZE;
static void (*WSync)(void);
static uint32 WRAMSIZE=0;
static void (*WSync)(void) = nullptr;
static DECLFW(LatchWrite) {
// FCEU_printf("bs %04x %02x\n",A,V);

View File

@ -1429,7 +1429,7 @@ int CheckTimelines(MovieData& stateMovie, MovieData& currMovie)
}
static bool load_successful;
static bool load_successful = false;
bool FCEUMOV_ReadState(EMUFILE* is, uint32 size)
{