]> Shamusworld >> Repos - virtualjaguar/blob - src/file.h
Removed some cruft and nonstandard int/uint types, added M series BIOS.
[virtualjaguar] / src / file.h
1 //
2 // FILE.H
3 //
4 // File support
5 //
6
7 #ifndef __FILE_H__
8 #define __FILE_H__
9
10 #include <stdint.h>
11
12 #ifdef __cplusplus
13 extern "C" {
14 #endif
15
16 enum FileType { FT_SOFTWARE=0, FT_EEPROM, FT_LABEL, FT_BOXART, FT_OVERLAY };
17 // JST = Jaguar Software Type
18 enum { JST_NONE = 0, JST_ROM, JST_ALPINE, JST_ABS_TYPE1, JST_ABS_TYPE2, JST_JAGSERVER, JST_WTFOMGBBQ };
19
20 uint32_t JaguarLoadROM(uint8_t * &rom, char * path);
21 bool JaguarLoadFile(char * path);
22 bool AlpineLoadFile(char * path);
23 uint32_t GetFileFromZIP(const char * zipFile, FileType type, uint8_t * &buffer);
24 uint32_t GetFileDBIdentityFromZIP(const char * zipFile);
25 bool FindFileInZIPWithCRC32(const char * zipFile, uint32_t crc);
26 uint32_t ParseFileType(uint8_t * buffer, uint32_t size);
27 bool HasUniversalHeader(uint8_t * rom, uint32_t romSize);
28
29 #ifdef __cplusplus
30 }
31 #endif
32
33 #endif  // __FILE_H__