platform, include current dir in bios search path

This commit is contained in:
kub 2021-11-10 23:28:39 +01:00
parent e86583124e
commit e994ebeb3f

View file

@ -210,6 +210,16 @@ static const char *find_bios(int *region, const char *cd_fname)
strcat(static_buff, ".zip"); strcat(static_buff, ".zip");
f = fopen(static_buff, "rb"); f = fopen(static_buff, "rb");
if (f) break; 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) { if (f) {