PIC rewrite, proper SMRAM API, complete SiS 471 rewrite and addition of 40x, 460, and 461, changes to mem.c/h, disabled Voodoo memory dumping on exit, bumped SDL Hardware scale quality to 2, bumped IDE/ATAPI drives to ATA-6, finally bumped emulator version to 3.0, redid the bus type ID's to allow for planned ATAPI hard disks, made SST flash set its high mappings to the correct address if the CPU is 16-bit, and added the SiS 401 AMI 486 Clone, AOpen Vi15G, and the Soyo 4SA2 (486 with SiS 496/497 that can boot from CD-ROM), assorted 286+ protected mode fixes (for slightly more accuracy), and fixes to 808x emulation (MS Word 1.0 and 1.10 for DOS now work correctly from floppy).
This commit is contained in:
18
src/pc.c
18
src/pc.c
@@ -197,6 +197,9 @@ pclog_ex(const char *fmt, va_list ap)
|
||||
#ifndef RELEASE_BUILD
|
||||
char temp[1024];
|
||||
|
||||
if (strcmp(fmt, "") == 0)
|
||||
return;
|
||||
|
||||
if (stdlog == NULL) {
|
||||
if (log_path[0] != L'\0') {
|
||||
stdlog = plat_fopen(log_path, L"w");
|
||||
@@ -276,7 +279,6 @@ fatal(const char *fmt, ...)
|
||||
|
||||
config_save();
|
||||
|
||||
dumppic();
|
||||
#ifdef ENABLE_808X_LOG
|
||||
dumpregs(1);
|
||||
#endif
|
||||
@@ -686,6 +688,9 @@ pc_reset_hard_close(void)
|
||||
{
|
||||
ui_sb_set_ready(0);
|
||||
|
||||
/* Close all the memory mappings. */
|
||||
mem_close();
|
||||
|
||||
network_timer_stop();
|
||||
|
||||
/* Turn off timer processing to avoid potential segmentation faults. */
|
||||
@@ -868,6 +873,12 @@ pc_close(thread_t *ptr)
|
||||
|
||||
plat_mouse_capture(0);
|
||||
|
||||
/* Close all the memory mappings. */
|
||||
mem_close();
|
||||
|
||||
network_timer_stop();
|
||||
|
||||
/* Turn off timer processing to avoid potential segmentation faults. */
|
||||
timer_close();
|
||||
|
||||
lpt_devices_close();
|
||||
@@ -875,10 +886,9 @@ pc_close(thread_t *ptr)
|
||||
for (i=0; i<FDD_NUM; i++)
|
||||
fdd_close(i);
|
||||
|
||||
if (dump_on_exit)
|
||||
dumppic();
|
||||
#ifdef ENABLE_808X_LOG
|
||||
dumpregs(0);
|
||||
if (dump_on_exit)
|
||||
dumpregs(0);
|
||||
#endif
|
||||
|
||||
video_close();
|
||||
|
||||
Reference in New Issue
Block a user