DragWx wrote: ↑Thu Oct 19, 2023 3:30 am
When a game is selected in the launcher, the launcher could directly modify the currently-running BASIC program at $801 to add a line 2 with the DOS command to switch directories, and a line 3 to LOAD the desired program file:
Giving this a little more thought, the launcher itself can perform the DOS commands along with simple error checking to make sure the target directory and target file actually exist. So, my original idea can be simplified such that only the LOAD line would need to be injected into the BASIC program.
Of course, if the launcher were itself a BASIC program, it can just branch to a LOAD statement, so my idea is only if the launcher weren't a BASIC program.
EDIT: To clarify, the purpose of my idea is to explore a way of getting BASIC to load and run a selected program from the launcher without needing to touch AUTOBOOT.X16.