notaz.gp2x.de
/
libpicofe.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cue support wip
[libpicofe.git]
/
gp2x
/
menu.c
diff --git
a/gp2x/menu.c
b/gp2x/menu.c
index
919fdb9
..
af7397e
100644
(file)
--- a/
gp2x/menu.c
+++ b/
gp2x/menu.c
@@
-200,7
+200,7
@@
void menu_romload_end(void)
static unsigned short file2color(const char *fname)
\r
{
\r
const char *ext = fname + strlen(fname) - 3;
\r
static unsigned short file2color(const char *fname)
\r
{
\r
const char *ext = fname + strlen(fname) - 3;
\r
- static const char *rom_exts[] = { "zip", "bin", "smd", "gen", "iso", "cso" };
\r
+ static const char *rom_exts[] = { "zip", "bin", "smd", "gen", "iso", "cso"
, "cue"
};
\r
static const char *other_exts[] = { "gmv", "pat" };
\r
int i;
\r
\r
static const char *other_exts[] = { "gmv", "pat" };
\r
int i;
\r
\r
@@
-256,7
+256,7
@@
static int scandir_cmp(const void *p1, const void *p2)
\r
static char *filter_exts[] = {
\r
".mp3", ".MP3", ".srm", ".brm", "s.gz", ".mds", "bcfg", ".txt", ".htm", "html",
\r
\r
static char *filter_exts[] = {
\r
".mp3", ".MP3", ".srm", ".brm", "s.gz", ".mds", "bcfg", ".txt", ".htm", "html",
\r
- ".jpg", ".gpe"
, ".cue"
\r
+ ".jpg", ".gpe"
\r
};
\r
\r
static int scandir_filter(const struct dirent *ent)
\r
};
\r
\r
static int scandir_filter(const struct dirent *ent)
\r
@@
-1724,10
+1724,11
@@
int menu_loop_tray(void)
case 0: // select image
\r
selfname = romsel_loop(curr_path);
\r
if (selfname) {
\r
case 0: // select image
\r
selfname = romsel_loop(curr_path);
\r
if (selfname) {
\r
- int ret = -1, cd_type;
\r
+ int ret = -1;
\r
+ cd_img_type cd_type;
\r
cd_type = emu_cdCheck(NULL);
\r
cd_type = emu_cdCheck(NULL);
\r
- if (cd_type
> 0
)
\r
- ret = Insert_CD(romFileName, cd_type
== 2
);
\r
+ if (cd_type
!= CIT_NOT_CD
)
\r
+ ret = Insert_CD(romFileName, cd_type);
\r
if (ret != 0) {
\r
sprintf(menuErrorMsg, "Load failed, invalid CD image?");
\r
printf("%s\n", menuErrorMsg);
\r
if (ret != 0) {
\r
sprintf(menuErrorMsg, "Load failed, invalid CD image?");
\r
printf("%s\n", menuErrorMsg);
\r