mirror of
https://github.com/simh/simh.git
synced 2026-05-03 14:38:45 +00:00
Corrected to properly leverage the new -N attach_unit switch
This commit is contained in:
@@ -1267,8 +1267,8 @@ static void attachCPM(UNIT *uptr) {
|
|||||||
if (uptr == &ptr_unit)
|
if (uptr == &ptr_unit)
|
||||||
sim_switches = SWMASK('R') | SWMASK('Q');
|
sim_switches = SWMASK('R') | SWMASK('Q');
|
||||||
else if (uptr == &ptp_unit)
|
else if (uptr == &ptp_unit)
|
||||||
sim_switches = SWMASK('W') | SWMASK('C') | SWMASK('Q');
|
sim_switches = SWMASK('W') | SWMASK('N') | SWMASK('Q');
|
||||||
/* 'C' option makes sure that file is properly truncated if it had existed before */
|
/* 'N' option makes sure that file is properly truncated if it had existed before */
|
||||||
sim_quiet = sim_switches & SWMASK ('Q'); /* -q means quiet */
|
sim_quiet = sim_switches & SWMASK ('Q'); /* -q means quiet */
|
||||||
lastCPMStatus = attach_unit(uptr, cpmCommandLine);
|
lastCPMStatus = attach_unit(uptr, cpmCommandLine);
|
||||||
if (lastCPMStatus != SCPE_OK) {
|
if (lastCPMStatus != SCPE_OK) {
|
||||||
|
|||||||
Reference in New Issue
Block a user