1.1 --- a/src/loader.c Sun Jul 02 04:59:00 2006 +0000
1.2 +++ b/src/loader.c Sat Oct 06 09:03:24 2007 +0000
1.5 - * $Id: loader.c,v 1.14 2006-07-02 04:59:00 nkeynes Exp $
1.6 + * $Id: loader.c,v 1.15 2007-01-16 09:18:32 nkeynes Exp $
1.8 * File loading routines, mostly for loading demos without going through the
1.9 * whole procedure of making a CD image for them.
1.15 - if( st.st_size < 32768 ) {
1.16 - ERROR( "File '%s' too small to be a dreamcast image", filename );
1.23 if( read( fd, buf, 32 ) != 32 ) {
1.25 } else if( memcmp( buf, "PK\x03\x04", 4 ) == 0 ) {
1.26 /* ZIP file, aka SBI file */
1.27 WARN( "SBI files not supported yet" );
1.28 + } else if( memcmp( buf, DREAMCAST_SAVE_MAGIC, 16 ) == 0 ) {
1.30 + dreamcast_load_state( filename );
1.31 } else if( buf[0] == 0x7F && buf[1] == 'E' &&
1.32 buf[2] == 'L' && buf[3] == 'F' ) {