1
0
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:
Thomas Harte 2017-08-06 19:47:10 -04:00
parent e9972aa0dd
commit c839556a27

View File

@ -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;
}