Support GBS version 2?

CQTexperiment
Christopher Snowhill 2016-08-04 18:54:57 -07:00
parent 92c089f785
commit 1dab2b6d27
2 changed files with 3 additions and 2 deletions

View File

@ -48,7 +48,7 @@ blargg_err_t Gbs_Core::load_( Data_Reader& in )
if ( !header_.valid_tag() )
return blargg_err_file_type;
if ( header_.vers != 1 )
if ( header_.vers < 1 || header_.vers > 2 )
set_warning( "Unknown file version" );
if ( header_.timer_mode & 0x78 )

View File

@ -55,7 +55,8 @@ const char* gme_identify_header( void const* header )
switch ( get_be32( header ) )
{
case BLARGG_4CHAR('Z','X','A','Y'): return "AY";
case BLARGG_4CHAR('G','B','S',0x01): return "GBS";
case BLARGG_4CHAR('G','B','S',0x01):
case BLARGG_4CHAR('G','B','S',0x02): return "GBS";
case BLARGG_4CHAR('G','Y','M','X'): return "GYM";
case BLARGG_4CHAR('H','E','S','M'): return "HES";
case BLARGG_4CHAR('K','S','C','C'):