From f6f3a910397afb769f84d1332014c4eda1fedebe Mon Sep 17 00:00:00 2001 From: David Guillen Fandos Date: Mon, 22 Mar 2021 21:45:52 +0100 Subject: Adding Normmatt's BIOS as a built-in BIOS Add options to select whether to boot from BIOS (default is no, as it is now) and whether to use the original bios or the builtin one (default is auto, which tries to use the official but falls back to the builtin if not found). --- main.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'main.h') diff --git a/main.h b/main.h index dbb839f..bdb29e3 100644 --- a/main.h +++ b/main.h @@ -64,6 +64,19 @@ typedef enum fixed_interval_frameskip } frameskip_type; +typedef enum +{ + auto_detect = 0, + builtin_bios, + official_bios +} bios_type; + +typedef enum +{ + boot_game = 0, + boot_bios +} boot_mode; + extern u32 cpu_ticks; extern u32 execute_cycles; extern u32 global_cycles_per_instruction; @@ -98,6 +111,7 @@ u32 file_length(FILE *fp); extern u32 num_skipped_frames; extern int dynarec_enable; +extern boot_mode selected_boot_mode; void change_ext(const char *src, char *buffer, const char *extension); -- cgit v1.2.3