2008-04-03 03:58:35 +00:00
|
|
|
/*****************************************************************************
|
|
|
|
* Gamecube XenoGC Identifier
|
|
|
|
*
|
|
|
|
* Functions to determine if the DVD is in fact a XenoGC boot disc
|
|
|
|
*****************************************************************************/
|
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <string.h>
|
|
|
|
|
|
|
|
int IsXenoGCImage( char *buffer )
|
|
|
|
{
|
|
|
|
|
2008-04-05 13:11:16 +00:00
|
|
|
/*** All Xeno GC Homebrew Boot have id GBLPGL ***/
|
|
|
|
if ( memcmp( buffer, "GBLPGL", 6 ) )
|
|
|
|
return 0;
|
2008-04-03 03:58:35 +00:00
|
|
|
|
2008-04-05 13:11:16 +00:00
|
|
|
if ( memcmp( &buffer[0x20], "GAMECUBE \"EL TORITO\" BOOTLOADER", 31 ) )
|
|
|
|
return 0;
|
2008-04-03 03:58:35 +00:00
|
|
|
|
2008-04-05 13:11:16 +00:00
|
|
|
return 1;
|
2008-04-03 03:58:35 +00:00
|
|
|
}
|
|
|
|
|