Treat MO5 as identifying a BASIC file.

This commit is contained in:
Thomas Harte committed 2026-04-01 09:27:01 -04:00
1 parent 4c275af437
commit 8eb0280529
2 files changed
+6 -3

No files matched your search

+5 -2
View File
@@ -31,9 +31,12 @@ Analyser::Static::TargetList Analyser::Static::Thomson::GetTargets(
if(first && first->checksum_valid()) {
target->media.tapes = media.tapes;
// Very coarse attempt at divining a loading command: check for the BAS or BAT file extension.
// Very coarse attempt at divining a loading command: check for the BAS, BAT or MO5 file extension.
if(!first->type && first->data.size() >= 11) {
if(first->data[8] == 'B' && first->data[9] == 'A') {
if(
(first->data[8] == 'B' && first->data[9] == 'A') ||
(first->data[8] == 'M' && first->data[9] == 'O')
) {
target->loading_command = "RUN\"\n";
} else {
target->loading_command = "LOADM\"\",,R\n";
@@ -70,7 +70,7 @@ Gw
<color key="backgroundColor" name="controlBackgroundColor" catalog="System" colorSpace="catalog"/>
<color key="gridColor" name="gridColor" catalog="System" colorSpace="catalog"/>
<tableColumns>
<tableColumn editable="NO" width="115.57878581174218" minWidth="40" maxWidth="1000" id="uZt-BZ-OdO">
<tableColumn editable="NO" width="115.5" minWidth="40" maxWidth="1000" id="uZt-BZ-OdO">
<tableHeaderCell key="headerCell" lineBreakMode="truncatingTail" borderStyle="border">
<color key="textColor" name="headerTextColor" catalog="System" colorSpace="catalog"/>
<color key="backgroundColor" name="headerColor" catalog="System" colorSpace="catalog"/>