From cc0b70828bc5e929cafdff04e0c0933ff9d466c6 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Sun, 16 Oct 2016 22:15:24 -0400 Subject: [PATCH] Removed attempt at multiple-file logic, at least for the time being. Starting to wonder whether I actually need anything beyond a literal streaming of bytes? --- Storage/Tape/Formats/OricTAP.cpp | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/Storage/Tape/Formats/OricTAP.cpp b/Storage/Tape/Formats/OricTAP.cpp index 6857fd06a..f36a8cca6 100644 --- a/Storage/Tape/Formats/OricTAP.cpp +++ b/Storage/Tape/Formats/OricTAP.cpp @@ -106,19 +106,20 @@ Tape::Pulse OricTAP::virtual_get_next_pulse() case Data: next_byte = (uint8_t)fgetc(_file); - _phase_counter++; - if(_phase_counter == (_data_end_address - _data_start_address)) - { - _phase_counter = 0; - if((size_t)ftell(_file) == _file_length) - { - _next_phase = End; - } - else - { - _next_phase = LeadIn; - } - } + if(feof(_file)) _phase = End; +// _phase_counter++; +// if(_phase_counter == (_data_end_address - _data_start_address)+1) +// { +// _phase_counter = 0; +// if((size_t)ftell(_file) == _file_length) +// { +// _next_phase = End; +// } +// else +// { +// _next_phase = LeadIn; +// } +// } break; case End: