notaz.gp2x.de
/
pcsx_rearmed.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c0ee7ac
)
frontend/menu: clean up cht loader
author
notaz
<notasas@gmail.com>
Fri, 15 Mar 2013 00:14:58 +0000
(
02:14
+0200)
committer
notaz
<notasas@gmail.com>
Fri, 15 Mar 2013 00:19:21 +0000
(
02:19
+0200)
frontend/menu.c
patch
|
blob
|
blame
|
history
diff --git
a/frontend/menu.c
b/frontend/menu.c
index
46e4298
..
199020d
100644
(file)
--- a/
frontend/menu.c
+++ b/
frontend/menu.c
@@
-2080,12
+2080,12
@@
static int swap_cd_multidisk(void)
static void load_pcsx_cht(void)
{
static void load_pcsx_cht(void)
{
- const char *exts[] = { "cht", NULL };
+
static
const char *exts[] = { "cht", NULL };
const char *fname;
const char *fname;
- char
path[256
];
+ char
msg[64
];
- path[0] = 0;
-
fname = menu_loop_romsel(path, sizeof(path
), exts, NULL);
+ fname = menu_loop_romsel(last_selected_fname,
+
sizeof(last_selected_fname
), exts, NULL);
if (fname == NULL)
return;
if (fname == NULL)
return;
@@
-2095,8
+2095,8
@@
static void load_pcsx_cht(void)
if (NumCheats == 0 && NumCodes == 0)
menu_update_msg("failed to load cheats");
else {
if (NumCheats == 0 && NumCodes == 0)
menu_update_msg("failed to load cheats");
else {
- snprintf(
path, sizeof(path
), "%d cheat(s) loaded", NumCheats + NumCodes);
- menu_update_msg(
path
);
+ snprintf(
msg, sizeof(msg
), "%d cheat(s) loaded", NumCheats + NumCodes);
+ menu_update_msg(
msg
);
}
me_enable(e_menu_main, MA_MAIN_CHEATS, ready_to_go && NumCheats);
}
}
me_enable(e_menu_main, MA_MAIN_CHEATS, ready_to_go && NumCheats);
}