(MSVC) Compile fixes

This commit is contained in:
Swizzy
2015-01-04 16:57:59 +01:00
parent b10d6d4600
commit 88b79b82f4
2 changed files with 4 additions and 3 deletions

View File

@@ -289,7 +289,8 @@ void FCEUSS_Load_Mem(void)
uint8 header[16];
int stateversion;
int x;
memstream_read(mem, header, 16);
if (memcmp(header,"FCS",3) != 0)
@@ -300,7 +301,7 @@ void FCEUSS_Load_Mem(void)
else
stateversion = header[3] * 100;
int x = ReadStateChunks(mem, *(uint32*)(header + 4));
x = ReadStateChunks(mem, *(uint32*)(header + 4));
if (stateversion < 9500)
X.IRQlow=0;

View File

@@ -804,11 +804,11 @@ void retro_cheat_reset(void)
void retro_cheat_set(unsigned index, bool enabled, const char *code)
{
char name[256];
sprintf(name, "N/A");
uint16 a;
uint8 v;
int c;
int type = 1;
sprintf(name, "N/A");
if (FCEUI_DecodeGG(code, &a, &v, &c))
goto input_cheat;