1
0
mirror of https://github.com/simh/simh.git synced 2026-01-25 19:56:25 +00:00

CONSOLE: Add binary mode option when opening the LOG file.

This commit is contained in:
Mark Pizzolato
2020-11-01 09:47:22 -08:00
parent a02b87625c
commit ddcc280a17
2 changed files with 5 additions and 2 deletions

View File

@@ -2227,7 +2227,8 @@ cptr = get_glyph_nc (cptr, gbuf, 0); /* get file name */
if (*cptr != 0) /* now eol? */
return SCPE_2MARG;
sim_set_logoff (0, NULL); /* close cur log */
r = sim_open_logfile (gbuf, FALSE, &sim_log, &sim_log_ref); /* open log */
r = sim_open_logfile (gbuf, (sim_switches & SWMASK ('B')) == SWMASK ('B'),
&sim_log, &sim_log_ref); /* open log */
if (r != SCPE_OK) /* error? */
return r;
if ((!sim_quiet) && (!(sim_switches & SWMASK ('Q'))))