improve compatibility even more. i have learned my lesson, all future stuff will be versioned. i thought it was a pain, but listening to people cry about their broken savestates is an even bigger pain.
This commit is contained in:
parent
4702c15820
commit
6a1ff20e07
|
@ -3250,9 +3250,15 @@ bool gpu_loadstate(std::istream* is, int size)
|
|||
//sigh.. shouldve used a new version number
|
||||
if(size == 256*192*2*2)
|
||||
version = 0;
|
||||
else if(size== 0x30024)
|
||||
{
|
||||
read32le(&version,is);
|
||||
version = 1;
|
||||
}
|
||||
else
|
||||
if(read32le(&version,is) != 1) return false;
|
||||
|
||||
|
||||
if(version<0||version>1) return false;
|
||||
|
||||
is->read((char*)GPU_screen,sizeof(GPU_screen));
|
||||
|
|
Loading…
Reference in New Issue