mirror of
https://github.com/open-simh/simh.git
synced 2026-01-14 07:40:35 +00:00
SCP: Fix correctly loading simh.ini when user HOME not defined
This commit is contained in:
parent
cc97971dc9
commit
c3f55fc692
2
scp.c
2
scp.c
@ -2932,6 +2932,8 @@ if (docmdp) {
|
||||
snprintf(nbuf, sizeof (nbuf), "\"%s%s%ssimh.ini\"", cptr2 ? cptr2 : "", cptr, strchr (cptr, '/') ? "/" : "\\");
|
||||
stat = docmdp->action (-1, nbuf); /* simh.ini proc cmd file */
|
||||
}
|
||||
else
|
||||
stat = SCPE_OPENERR;
|
||||
if (SCPE_BARE_STATUS(stat) == SCPE_OPENERR)
|
||||
stat = docmdp->action (-1, "simh.ini"); /* simh.ini proc cmd file */
|
||||
if (*cbuf) /* cmd file arg? */
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user