platform, include current dir in bios search path
authorkub <derkub@gmail.com>
Wed, 10 Nov 2021 22:28:39 +0000 (23:28 +0100)
committerkub <derkub@gmail.com>
Wed, 10 Nov 2021 22:33:18 +0000 (23:33 +0100)
platform/common/emu.c

index 08ed27d..8cd5e74 100644 (file)
@@ -210,6 +210,16 @@ static const char *find_bios(int *region, const char *cd_fname)
                strcat(static_buff, ".zip");\r
                f = fopen(static_buff, "rb");\r
                if (f) break;\r
+\r
+               strcpy(static_buff, files[i]);\r
+               strcat(static_buff, ".bin");\r
+               f = fopen(static_buff, "rb");\r
+               if (f) break;\r
+\r
+               static_buff[strlen(static_buff) - 4] = 0;\r
+               strcat(static_buff, ".zip");\r
+               f = fopen(static_buff, "rb");\r
+               if (f) break;\r
        }\r
 \r
        if (f) {\r