Merge pull request #9 from Swizzy/master

(MSVC) Compile fixes
This commit is contained in:
Twinaphex
2015-01-04 16:59:47 +01:00
2 changed files with 4 additions and 3 deletions

View File

@@ -289,6 +289,7 @@ void FCEUSS_Load_Mem(void)
uint8 header[16]; uint8 header[16];
int stateversion; int stateversion;
int x;
memstream_read(mem, header, 16); memstream_read(mem, header, 16);
@@ -300,7 +301,7 @@ void FCEUSS_Load_Mem(void)
else else
stateversion = header[3] * 100; stateversion = header[3] * 100;
int x = ReadStateChunks(mem, *(uint32*)(header + 4)); x = ReadStateChunks(mem, *(uint32*)(header + 4));
if (stateversion < 9500) if (stateversion < 9500)
X.IRQlow=0; 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) void retro_cheat_set(unsigned index, bool enabled, const char *code)
{ {
char name[256]; char name[256];
sprintf(name, "N/A");
uint16 a; uint16 a;
uint8 v; uint8 v;
int c; int c;
int type = 1; int type = 1;
sprintf(name, "N/A");
if (FCEUI_DecodeGG(code, &a, &v, &c)) if (FCEUI_DecodeGG(code, &a, &v, &c))
goto input_cheat; goto input_cheat;