mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-22 22:05:38 +00:00
MemoryCardImage: Handle 128KB GME files
This commit is contained in:
parent
1ee5f737ed
commit
8bdeb8bdac
|
@ -516,6 +516,10 @@ bool MemoryCardImage::ImportCardGME(DataArray* data, const char* filename, std::
|
|||
static_assert(sizeof(GMEHeader) == 0xF40);
|
||||
#pragma pack(pop)
|
||||
|
||||
// some gme files are raw files in disguise...
|
||||
if (file_data.size() == DATA_SIZE)
|
||||
return ImportCardMCD(data, filename, std::move(file_data), error);
|
||||
|
||||
constexpr u32 MIN_SIZE = sizeof(GMEHeader) + BLOCK_SIZE;
|
||||
|
||||
if (file_data.size() < MIN_SIZE)
|
||||
|
|
Loading…
Reference in a new issue