From e994ebeb3f8afac6b16ae653f475a6b7a43082b2 Mon Sep 17 00:00:00 2001 From: kub Date: Wed, 10 Nov 2021 23:28:39 +0100 Subject: [PATCH] platform, include current dir in bios search path --- platform/common/emu.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/platform/common/emu.c b/platform/common/emu.c index 08ed27d8..8cd5e74c 100644 --- a/platform/common/emu.c +++ b/platform/common/emu.c @@ -210,6 +210,16 @@ static const char *find_bios(int *region, const char *cd_fname) strcat(static_buff, ".zip"); f = fopen(static_buff, "rb"); if (f) break; + + strcpy(static_buff, files[i]); + strcat(static_buff, ".bin"); + f = fopen(static_buff, "rb"); + if (f) break; + + static_buff[strlen(static_buff) - 4] = 0; + strcat(static_buff, ".zip"); + f = fopen(static_buff, "rb"); + if (f) break; } if (f) { -- 2.39.2