mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-15 23:08:51 +00:00
Only open file once when detecting blob type
This commit is contained in:
parent
3fdcbbdd92
commit
d1ea00ed88
9 changed files with 40 additions and 61 deletions
|
@ -14,7 +14,7 @@
|
|||
|
||||
namespace DiscIO
|
||||
{
|
||||
bool IsCISOBlob(const std::string& filename);
|
||||
static constexpr u32 CISO_MAGIC = 0x4F534943; // "CISO" (byteswapped to little endian)
|
||||
|
||||
static const u32 CISO_HEADER_SIZE = 0x8000;
|
||||
static const u32 CISO_MAP_SIZE = CISO_HEADER_SIZE - sizeof(u32) - sizeof(char) * 4;
|
||||
|
@ -22,7 +22,7 @@ static const u32 CISO_MAP_SIZE = CISO_HEADER_SIZE - sizeof(u32) - sizeof(char) *
|
|||
struct CISOHeader
|
||||
{
|
||||
// "CISO"
|
||||
char magic[4];
|
||||
u32 magic;
|
||||
|
||||
// little endian
|
||||
u32 block_size;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue