Restore previous drive if .COM not found
@@ -513,6 +513,7 @@ uint8 _ccp_ext(void) {
_RamWrite(CmdFCB, 0x00); // look on current drive user 0
found = !_ccp_bdos(F_OPEN, CmdFCB); // and try again
if (!found) {
+ _RamWrite(CmdFCB, drive); // restore previous drive
_ccp_bdos(F_USERNUM, curUser); // restore to previous user
}
}
@@ -543,6 +544,7 @@ uint8 _ccp_ext(void) {
_RamWrite(CmdFCB, 0x00); // look on current drive user 0
found = !_ccp_bdos(F_OPEN, CmdFCB); // and try again
if (!found) {
+ _RamWrite(CmdFCB, drive); // restore previous drive
_ccp_bdos(F_USERNUM, curUser); // restore to previous user
}
}
