Updates to no longer have the selected machine's data as a global variable.

Fixed the 'crash on unknown machine name in config' bug.
Fixed some issues with the ROM loader, PS/2 M50 still doesnt work.
Made the error message from dynld.c a DEBUG message.
Fixed some stuff in the VNC driver (pending changes in the VNC DLL.)
Cleaned up the MinGW Makefile, VC will follow.
Added screenshots code to the D2D renderer.
This commit is contained in:
waltje
2019-04-29 21:02:42 -05:00
parent e82c985f7a
commit bbab8fecd7
18 changed files with 418 additions and 376 deletions

View File

@@ -8,7 +8,7 @@
*
* Main emulator module where most things are controlled.
*
* Version: @(#)pc.c 1.0.71 2019/04/26
* Version: @(#)pc.c 1.0.72 2019/04/29
*
* Authors: Fred N. van Kempen, <decwiz@yahoo.com>
* Miran Grca, <mgrca8@gmail.com>
@@ -226,16 +226,20 @@ pclog_ex(const char *fmt, va_list ap)
}
}
vsprintf(temp, fmt, ap);
if (logdetect && !strcmp(logbuff, temp)) {
logseen++;
if (logdetect) {
vsprintf(temp, fmt, ap);
if (strcmp(logbuff, temp)) {
if (logseen)
fprintf(logfp, "*** %i repeats ***\n", logseen);
logseen = 0;
if (logdetect)
strcpy(logbuff, temp);
fprintf(logfp, temp);
} else
logseen++;
} else {
if (logseen)
fprintf(logfp, "*** %i repeats ***\n", logseen);
logseen = 0;
if (logdetect)
strcpy(logbuff, temp);
fprintf(logfp, temp, ap);
/* Not detecting duplicates, do not buffer. */
vfprintf(logfp, fmt, ap);
}
fflush(logfp);