mirror of
https://github.com/dborth/fceugx.git
synced 2025-01-10 07:39:39 +01:00
24 lines
560 B
C
24 lines
560 B
C
|
/*****************************************************************************
|
||
|
* 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 )
|
||
|
{
|
||
|
|
||
|
/*** All Xeno GC Homebrew Boot have id GBLPGL ***/
|
||
|
if ( memcmp( buffer, "GBLPGL", 6 ) )
|
||
|
return 0;
|
||
|
|
||
|
if ( memcmp( &buffer[0x20], "GAMECUBE \"EL TORITO\" BOOTLOADER", 31 ) )
|
||
|
return 0;
|
||
|
|
||
|
return 1;
|
||
|
}
|
||
|
|