notaz.gp2x.de
/
pcsx_rearmed.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cdrcimg: support .bz/.znx/eboot formats
[pcsx_rearmed.git]
/
frontend
/
main.c
diff --git
a/frontend/main.c
b/frontend/main.c
index
37c9ba3
..
9f24540
100644
(file)
--- a/
frontend/main.c
+++ b/
frontend/main.c
@@
-64,14
+64,12
@@
void set_cd_image(const char *fname)
{
const char *ext = NULL;
{
const char *ext = NULL;
- if (fname != NULL) {
- int len = strlen(fname);
- ext = fname;
- if (len > 2)
- ext = fname + len - 2;
- }
+ if (fname != NULL)
+ ext = strrchr(fname, '.');
- if (ext && strcasecmp(ext, ".z") == 0) {
+ if (ext && (
+ strcasecmp(ext, ".z") == 0 || strcasecmp(ext, ".bz") == 0 ||
+ strcasecmp(ext, ".znx") == 0 || strcasecmp(ext, ".pbp") == 0)) {
SetIsoFile(NULL);
cdrcimg_set_fname(fname);
strcpy(Config.Cdr, "builtin_cdrcimg");
SetIsoFile(NULL);
cdrcimg_set_fname(fname);
strcpy(Config.Cdr, "builtin_cdrcimg");