diff --git a/changelog.txt b/changelog.txt index 62dea3c0..d9fe6e57 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,5 +1,6 @@ ---version 2.0.4 yet to be released--- +08-nov-2008 - zeromus - big endian wasnt compiling. fix issues. 02-nov-2008 - shinydoofy - added --fcmconvert for SDL 02-nov-2008 - zeromus - emulua - add rom.readbyte and rom.readbytesigned diff --git a/src/state.cpp b/src/state.cpp index 4fef6f58..61e84ef4 100644 --- a/src/state.cpp +++ b/src/state.cpp @@ -91,6 +91,8 @@ SFORMAT SFCPUC[]={ { 0 } }; +void foo(uint8* test) { (void)test; } + static int SubWrite(std::ostream* os, SFORMAT *sf) { uint32 acc=0; @@ -118,7 +120,7 @@ static int SubWrite(std::ostream* os, SFORMAT *sf) #ifndef LSB_FIRST if(sf->s&RLSB) - FlipByteOrder(sf->v,sf->s&(~FCEUSTATE_FLAGS)); + FlipByteOrder((uint8*)sf->v,sf->s&(~FCEUSTATE_FLAGS)); #endif if(sf->s&FCEUSTATE_INDIRECT) @@ -129,7 +131,7 @@ static int SubWrite(std::ostream* os, SFORMAT *sf) //Now restore the original byte order. #ifndef LSB_FIRST if(sf->s&RLSB) - FlipByteOrder(sf->v,sf->s&(~FCEUSTATE_FLAGS)); + FlipByteOrder((uint8*)sf->v,sf->s&(~FCEUSTATE_FLAGS)); #endif } sf++; @@ -197,7 +199,7 @@ static bool ReadStateChunk(std::istream* is, SFORMAT *sf, int size) #ifndef LSB_FIRST if(tmp->s&RLSB) - FlipByteOrder(tmp->v,tmp->s&(~FCEUSTATE_FLAGS)); + FlipByteOrder((uint8*)tmp->v,tmp->s&(~FCEUSTATE_FLAGS)); #endif } else