diff --git a/src/device/postcard.c b/src/device/postcard.c index 15f396516..6f91c9891 100644 --- a/src/device/postcard.c +++ b/src/device/postcard.c @@ -29,13 +29,11 @@ #include <86box/postcard.h> #include "cpu.h" -#define POSTCARDS_NUM 4 -#define POSTCARD_MASK (POSTCARDS_NUM - 1) +uint8_t postcard_codes[POSTCARDS_NUM]; static uint16_t postcard_port; static uint8_t postcard_written[POSTCARDS_NUM]; static uint8_t postcard_ports_num = 1; -static uint8_t postcard_codes[POSTCARDS_NUM]; static uint8_t postcard_prev_codes[POSTCARDS_NUM]; #define UISTR_LEN 32 static char postcard_str[UISTR_LEN]; /* UI output string */ diff --git a/src/include/86box/86box.h b/src/include/86box/86box.h index 11dacef8c..5806f5844 100644 --- a/src/include/86box/86box.h +++ b/src/include/86box/86box.h @@ -38,6 +38,9 @@ /* Default language 0xFFFF = from system, 0x409 = en-US */ #define DEFAULT_LANGUAGE 0x0409 +#define POSTCARDS_NUM 4 +#define POSTCARD_MASK (POSTCARDS_NUM - 1) + #ifdef MIN # undef MIN #endif @@ -142,8 +145,6 @@ extern int confirm_exit; /* (C) enable exit confirmation */ extern int confirm_save; /* (C) enable save confirmation */ extern int enable_discord; /* (C) enable Discord integration */ -extern int is_pentium; /* TODO: Move back to cpu/cpu.h when it's figured out, - how to remove that hack from the ET4000/W32p. */ extern int fixed_size_x; extern int fixed_size_y; extern double mouse_sensitivity; /* (C) Mouse sensitivity scale */ @@ -207,7 +208,8 @@ extern double isa_timing; extern int io_delay; extern int framecountx; -extern volatile int cpu_thread_run; +extern volatile int cpu_thread_run; +extern uint8_t postcard_codes[POSTCARDS_NUM]; #ifdef __cplusplus }