mirror of
https://github.com/simh/simh.git
synced 2026-03-01 09:31:16 +00:00
SCP: Add simulator binary name in a SIM_BIN_NAME environment variable
This commit is contained in:
4
scp.c
4
scp.c
@@ -2006,8 +2006,12 @@ else if (*argv[0]) { /* sim name arg? */
|
||||
if (np == NULL)
|
||||
np = strrchr (nbuf, ']'); /* VMS path separator */
|
||||
if (np != NULL) {
|
||||
char *sim_bin_name = np; /* Save name pointer */
|
||||
|
||||
*np = '"';
|
||||
stat = do_cmd (-1, np) & ~SCPE_NOMESSAGE; /* proc default cmd file */
|
||||
np[strlen (np) - 4] = '\0'; /* strip .ini" */
|
||||
setenv ("SIM_BIN_NAME", sim_bin_name+1, 1); /* Publish simulator binary name */
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user