1
0
mirror of https://github.com/TomHarte/CLK.git synced 2025-01-12 00:30:31 +00:00

Ensure all paths return a value.

This commit is contained in:
Thomas Harte 2025-01-08 22:30:32 -05:00
parent 5fb6e6780c
commit 0677987320

View File

@ -43,6 +43,7 @@ CommodoreTAP::Serialiser::Serialiser(const std::string &file_name) :
current_pulse_.length.clock_rate = static_cast<unsigned int>( current_pulse_.length.clock_rate = static_cast<unsigned int>(
[&] { [&] {
switch(platform_) { switch(platform_) {
default:
case Platform::Vic20: // It empirically seems like Vic-20 waves are counted with C64 timings? case Platform::Vic20: // It empirically seems like Vic-20 waves are counted with C64 timings?
case Platform::C64: return video_ == VideoStandard::PAL ? 985'248 : 1'022'727; case Platform::C64: return video_ == VideoStandard::PAL ? 985'248 : 1'022'727;
case Platform::C16: return video_ == VideoStandard::PAL ? 886'722 : 894'886; case Platform::C16: return video_ == VideoStandard::PAL ? 886'722 : 894'886;