Skip to content

Commit

Permalink
Now support GBS version 2?
Browse files Browse the repository at this point in the history
  • Loading branch information
kode54 committed Aug 5, 2016
1 parent fb78c3b commit b757c4a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gme/Gbs_Core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 )
Expand Down
3 changes: 2 additions & 1 deletion gme/gme.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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'):
Expand Down

0 comments on commit b757c4a

Please sign in to comment.