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:
Jake.Stine 2009-03-06 20:57:14 +00:00
parent 97cdf187e5
commit 954b7a5255
1 changed files with 10 additions and 1 deletions

View File

@ -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"