mirror of
https://github.com/TomHarte/CLK.git
synced 2024-12-23 05:29:23 +00:00
Fixed: rewind the file to check for 'EXTENDED' if 'MV - CPC' failed.
This commit is contained in:
parent
e9972aa0dd
commit
c839556a27
@ -16,6 +16,7 @@ CPCDSK::CPCDSK(const char *file_name) :
|
||||
Storage::FileHolder(file_name), is_extended_(false) {
|
||||
if(!check_signature("MV - CPC", 8)) {
|
||||
is_extended_ = true;
|
||||
fseek(file_, 0, SEEK_SET);
|
||||
if(!check_signature("EXTENDED", 8))
|
||||
throw ErrorNotCPCDSK;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user