notaz.gp2x.de
/
picodrive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e865831
)
platform, include current dir in bios search path
author
kub
<derkub@gmail.com>
Wed, 10 Nov 2021 22:28:39 +0000
(23:28 +0100)
committer
kub
<derkub@gmail.com>
Wed, 10 Nov 2021 22:33:18 +0000
(23:33 +0100)
platform/common/emu.c
patch
|
blob
|
blame
|
history
diff --git
a/platform/common/emu.c
b/platform/common/emu.c
index
08ed27d
..
8cd5e74
100644
(file)
--- 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");
\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