From 4090b0fac701734aadf462011f1844bf471ee5b1 Mon Sep 17 00:00:00 2001 From: Cacodemon345 Date: Wed, 25 Aug 2021 15:17:46 +0600 Subject: [PATCH] Change OpenAL include statement to be what CMake docs suggest Also WIP QEMU-like monitor. --- src/sound/openal.c | 6 +++--- src/unix/unix.c | 10 ++++++++++ 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/src/sound/openal.c b/src/sound/openal.c index f0d62b5b5..cf6ec9491 100644 --- a/src/sound/openal.c +++ b/src/sound/openal.c @@ -26,9 +26,9 @@ # undef ALC_API # define AL_LIBTYPE_STATIC # define ALC_LIBTYPE_STATIC -# include -# include -# include +# include "al.h" +# include "alc.h" +# include "alext.h" #include <86box/86box.h> #include <86box/sound.h> #include <86box/midi.h> diff --git a/src/unix/unix.c b/src/unix/unix.c index 41cfa9173..db0f03524 100644 --- a/src/unix/unix.c +++ b/src/unix/unix.c @@ -574,6 +574,16 @@ void mouse_poll() extern int real_sdl_w, real_sdl_h; static int exit_event = 0; void ui_sb_set_ready(int ready) {} + +void monitor_thread(void* param) +{ + if (isatty(fileno(stdin)) && isatty(fileno(stdout))) + { + printf("86Box monitor console.\n"); + + } +} + int main(int argc, char** argv) { SDL_Event event;