diff --git a/Storage/Tape/Formats/CAS.cpp b/Storage/Tape/Formats/CAS.cpp index 0d9dec328..2de796495 100644 --- a/Storage/Tape/Formats/CAS.cpp +++ b/Storage/Tape/Formats/CAS.cpp @@ -60,7 +60,7 @@ namespace { } CAS::CAS(const std::string &file_name) { - Storage::FileHolder file(file_name); + Storage::FileHolder file(file_name, FileHolder::FileMode::Read); enum class Mode { Seeking, diff --git a/Storage/Tape/Formats/CSW.cpp b/Storage/Tape/Formats/CSW.cpp index 4b6e04721..40f8ba700 100644 --- a/Storage/Tape/Formats/CSW.cpp +++ b/Storage/Tape/Formats/CSW.cpp @@ -16,7 +16,7 @@ using namespace Storage::Tape; CSW::CSW(const std::string &file_name) : source_data_pointer_(0) { - Storage::FileHolder file(file_name); + Storage::FileHolder file(file_name, FileHolder::FileMode::Read); if(file.stats().st_size < 0x20) throw ErrorNotCSW; // Check signature. diff --git a/Storage/Tape/Formats/CommodoreTAP.cpp b/Storage/Tape/Formats/CommodoreTAP.cpp index 40fd30658..c9049bb6c 100644 --- a/Storage/Tape/Formats/CommodoreTAP.cpp +++ b/Storage/Tape/Formats/CommodoreTAP.cpp @@ -13,7 +13,7 @@ using namespace Storage::Tape; CommodoreTAP::CommodoreTAP(const std::string &file_name) : - file_(file_name) + file_(file_name, FileHolder::FileMode::Read) { if(!file_.check_signature("C64-TAPE-RAW")) throw ErrorNotCommodoreTAP; diff --git a/Storage/Tape/Formats/OricTAP.cpp b/Storage/Tape/Formats/OricTAP.cpp index 9b13dc1b1..0a6441483 100644 --- a/Storage/Tape/Formats/OricTAP.cpp +++ b/Storage/Tape/Formats/OricTAP.cpp @@ -13,7 +13,7 @@ using namespace Storage::Tape; OricTAP::OricTAP(const std::string &file_name) : - file_(file_name) + file_(file_name, FileHolder::FileMode::Read) { // Check for a sequence of at least three 0x16s followed by a 0x24. while(true) { diff --git a/Storage/Tape/Formats/TZX.cpp b/Storage/Tape/Formats/TZX.cpp index 230194425..2a41bf362 100644 --- a/Storage/Tape/Formats/TZX.cpp +++ b/Storage/Tape/Formats/TZX.cpp @@ -22,7 +22,7 @@ Log::Logger logger; } TZX::TZX(const std::string &file_name) : - file_(file_name), + file_(file_name, FileHolder::FileMode::Read), current_level_(false) { // Check for signature followed by a 0x1a diff --git a/Storage/Tape/Formats/TapePRG.cpp b/Storage/Tape/Formats/TapePRG.cpp index f18162ba0..48f335acb 100644 --- a/Storage/Tape/Formats/TapePRG.cpp +++ b/Storage/Tape/Formats/TapePRG.cpp @@ -49,7 +49,7 @@ using namespace Storage::Tape; PRG::PRG(const std::string &file_name) : - file_(file_name) + file_(file_name, FileHolder::FileMode::Read) { // There's really no way to validate other than that if this file is larger than 64kb, // of if load address + length > 65536 then it's broken. diff --git a/Storage/Tape/Formats/ZX80O81P.cpp b/Storage/Tape/Formats/ZX80O81P.cpp index e10b1b74e..16145727f 100644 --- a/Storage/Tape/Formats/ZX80O81P.cpp +++ b/Storage/Tape/Formats/ZX80O81P.cpp @@ -12,7 +12,7 @@ using namespace Storage::Tape; ZX80O81P::ZX80O81P(const std::string &file_name) { - Storage::FileHolder file(file_name); + Storage::FileHolder file(file_name, FileHolder::FileMode::Read); // Grab the actual file contents data_.resize(size_t(file.stats().st_size));