1
// Copyright 2013 Dolphin Emulator Project
2
// Licensed under GPLv2
3
// Refer to the license.txt file included.
14
bool IsCISOBlob(const char* filename);
16
static const u32 CISO_HEADER_SIZE = 0x8000;
17
static const u32 CISO_MAP_SIZE = CISO_HEADER_SIZE - sizeof(u32) - sizeof(char) * 4;
27
// 0=unused, 1=used, others=invalid
28
u8 map[CISO_MAP_SIZE];
31
class CISOFileReader : public IBlobReader
34
static CISOFileReader* Create(const char* filename);
36
u64 GetDataSize() const;
37
u64 GetRawSize() const;
38
bool Read(u64 offset, u64 nbytes, u8* out_ptr);
41
CISOFileReader(std::FILE* file);
44
static const MapType UNUSED_BLOCK_ID = -1;
49
MapType m_ciso_map[CISO_MAP_SIZE];
54
#endif // _FILE_BLOB_H