rcmolina / MaxDuino

Unified firmware for tzxduino and casduino
https://www.va-de-retro.com/foros/viewtopic.php?t=5541&start=9999
88 stars 21 forks source link

Incorrect logic in checkForExt results in extension not recognised #12

Closed stripwax closed 2 years ago

stripwax commented 2 years ago

checkForExt incorrectly stops at the first "." symbol found nearest the start of the filename (rather than working backwards from the end of the filename, which is what TZXDuino does). As a result, checkForExt incorrectly fails to recognise a file named like "Tokimal_v1.0.tap" as a valid tap file, because it sees the "." and thinks the extension is "0.tap". Should be an easy fix.

rcmolina commented 2 years ago

Solved, search last dot first.