MCPcopy Create free account
hub / github.com/DaedalusX64/daedalus / Create

Method Create

Source/Utility/ROMFile.cpp:50–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48}
49
50ROMFile * 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
67ROMFile::ROMFile( const char * filename )
68: mHeaderMagic( 0 )

Callers

nothing calls this directly

Calls 1

FindExtensionFunction · 0.50

Tested by

no test coverage detected