1
0
mirror of https://github.com/simh/simh.git synced 2026-05-06 07:42:23 +00:00

SCP: Fix correctly loading simh.ini when user HOME not defined

This commit is contained in:
Tony Lawrence
2023-10-02 11:29:23 -04:00
committed by Mark Pizzolato
parent 1359a22cd2
commit a6ad4d0acb

2
scp.c
View File

@@ -3244,6 +3244,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? */