mirror of https://github.com/PCSX2/pcsx2.git
Buged my last commit (as usual). This one fixes savestate support. :)
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@702 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
parent
97cdf187e5
commit
954b7a5255
|
@ -197,7 +197,16 @@ gzLoadingState::gzLoadingState( const string& filename ) :
|
|||
|
||||
gzread( m_file, &m_version, 4 );
|
||||
|
||||
if( m_version < g_SaveVersion )
|
||||
if( (m_version >> 16) != (g_SaveVersion >> 16) )
|
||||
{
|
||||
Console::Error(
|
||||
"Savestate load aborted:\n"
|
||||
"\tUnknown or invalid savestate identifier, either from a (very!) old version of\n"
|
||||
"\tPcsx2, or the file is corrupted"
|
||||
);
|
||||
throw Exception::UnsupportedStateVersion( m_version );
|
||||
}
|
||||
else if( m_version > g_SaveVersion )
|
||||
{
|
||||
Console::Error(
|
||||
"Savestate load aborted:\n"
|
||||
|
|
Loading…
Reference in New Issue