Move the EMU8000 ROM path to a macro

This commit is contained in:
Alexander Babikov
2024-03-01 19:29:09 +05:00
parent d77fc47408
commit f9ae162e5d
3 changed files with 4 additions and 2 deletions

View File

@@ -406,6 +406,8 @@ void emu8k_close(emu8k_t *emu8k);
void emu8k_update(emu8k_t *emu8k); void emu8k_update(emu8k_t *emu8k);
#define EMU8K_ROM_PATH "roms/sound/creative/awe32.raw"
/* /*
Section E - Introduction to the EMU8000 Chip Section E - Introduction to the EMU8000 Chip

View File

@@ -2172,7 +2172,7 @@ emu8k_init(emu8k_t *emu8k, uint16_t emu_addr, int onboard_ram)
int c; int c;
double out; double out;
fp = rom_fopen("roms/sound/creative/awe32.raw", "rb"); fp = rom_fopen(EMU8K_ROM_PATH, "rb");
if (!fp) if (!fp)
fatal("AWE32.RAW not found\n"); fatal("AWE32.RAW not found\n");

View File

@@ -2509,7 +2509,7 @@ sb_16_compat_init(const device_t *info)
static int static int
sb_awe32_available(void) sb_awe32_available(void)
{ {
return rom_present("roms/sound/creative/awe32.raw"); return rom_present(EMU8K_ROM_PATH);
} }
static int static int