| 48 | } |
| 49 | |
| 50 | ROMFile * ROMFile::Create( const char * filename ) |
| 51 | { |
| 52 | const char * ext = IO::Path::FindExtension( filename ); |
| 53 | if (ext && _strcmpi(ext, ".zip") == 0) |
| 54 | { |
| 55 | #ifdef DAEDALUS_COMPRESSED_ROM_SUPPORT |
| 56 | return new ROMFileCompressed( filename ); |
| 57 | #else |
| 58 | return NULL; |
| 59 | #endif |
| 60 | } |
| 61 | else |
| 62 | { |
| 63 | return new ROMFileUncompressed( filename ); |
| 64 | } |
| 65 | } |
| 66 | |
| 67 | ROMFile::ROMFile( const char * filename ) |
| 68 | : mHeaderMagic( 0 ) |
nothing calls this directly
no test coverage detected