X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Ffile.h;h=0bb4e6e8d84aab7baee86f314ef6ad277a364896;hb=ab4f660439ff855171f801e3fdfa3e9de69d991b;hp=08d0b2157f34b521bca39736a972400860d14573;hpb=786e438a8bcaf738b84ab79733015ea2b1f4bbb9;p=virtualjaguar diff --git a/src/file.h b/src/file.h index 08d0b21..0bb4e6e 100644 --- a/src/file.h +++ b/src/file.h @@ -15,12 +15,15 @@ extern "C" { enum FileType { FT_SOFTWARE=0, FT_EEPROM, FT_LABEL, FT_BOXART, FT_OVERLAY }; // JST = Jaguar Software Type -enum { JST_NONE = 0, JST_ROM, JST_ALPINE, JST_ABS_TYPE1, JST_ABS_TYPE2, JST_JAGSERVER }; +enum { JST_NONE = 0, JST_ROM, JST_ALPINE, JST_ABS_TYPE1, JST_ABS_TYPE2, JST_JAGSERVER, JST_WTFOMGBBQ }; uint32 JaguarLoadROM(uint8 * &rom, char * path); bool JaguarLoadFile(char * path); +bool AlpineLoadFile(char * path); uint32 GetFileFromZIP(const char * zipFile, FileType type, uint8 * &buffer); -uint32 ParseFileType(uint8 header1, uint8 header2, uint32 size); +uint32_t GetFileDBIdentityFromZIP(const char * zipFile); +bool FindFileInZIPWithCRC32(const char * zipFile, uint32 crc); +uint32 ParseFileType(uint8_t * buffer, uint32 size); bool HasUniversalHeader(uint8 * rom, uint32 romSize); #ifdef __cplusplus