aboutsummaryrefslogtreecommitdiff
path: root/src/fake86/main.c
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2021-02-27 12:13:50 -0500
committerJoseph Hunkeler <jhunkeler@gmail.com>2021-02-27 12:13:50 -0500
commit50d83a1ff55b7b06efa86ebd344e7b0f4808b980 (patch)
tree73e5ab45283d23f2f189fe88e2bb20f0207047c3 /src/fake86/main.c
parentd49887486c772592c0e8ecc158c1cc3efb3f7709 (diff)
downloadfake86-master.tar.gz
Quick and dirty fixups to make it buildableHEADmaster
Diffstat (limited to 'src/fake86/main.c')
-rwxr-xr-xsrc/fake86/main.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/fake86/main.c b/src/fake86/main.c
index 78b3c43..0cd550f 100755
--- a/src/fake86/main.c
+++ b/src/fake86/main.c
@@ -28,6 +28,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <memory.h>
+#include <unistd.h>
#include "mutex.h"
#ifdef _WIN32
CRITICAL_SECTION screenmutex;
@@ -47,18 +48,18 @@ extern void reset86();
extern void exec86 (uint32_t execloops);
extern uint8_t initscreen (uint8_t *ver);
extern void VideoThread();
-extern doscrmodechange();
+extern int doscrmodechange();
extern void handleinput();
#ifdef CPU_ADDR_MODE_CACHE
extern uint64_t cached_access_count, uncached_access_count;
#endif
-extern uint8_t scrmodechange, doaudio;
+extern uint8_t verbose, scrmodechange, doaudio;
extern uint64_t totalexec, totalframes;
uint64_t starttick, endtick, lasttick;
-uint8_t *biosfile = NULL, verbose = 0, cgaonly = 0, useconsole = 0;
+uint8_t *biosfile = NULL, cgaonly = 0, useconsole = 0;
uint32_t speed = 0;
@@ -102,6 +103,7 @@ uint32_t loadbios (uint8_t *filename) {
binfile = fopen (filename, "rb");
if (binfile == NULL) {
+ fprintf(stderr, "Unable to load %s\n", filename);
return (0);
}