1
0
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:
Tony Lawrence 2023-10-02 11:29:23 -04:00 committed by Paul Koning
parent cc97971dc9
commit c3f55fc692

2
scp.c
View File

@ -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? */