mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 15:27:46 -04:00
platform, include current dir in bios search path
This commit is contained in:
parent
e86583124e
commit
e994ebeb3f
1 changed files with 10 additions and 0 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue