From: kub Date: Wed, 10 Nov 2021 22:28:39 +0000 (+0100) Subject: platform, include current dir in bios search path X-Git-Tag: v2.00~421 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e994ebeb3f8afac6b16ae653f475a6b7a43082b2;p=picodrive.git platform, include current dir in bios search path --- 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) {