X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=common%2Fmenu.c;h=dff1b39ca6d19c5bf86f71bdfac26c47675efc83;hb=2f3ca01638b740bc8ca5530dac8f3e2d2e069cb1;hp=bd4eb70a774bb342eb44e452282c35b41ca020c4;hpb=5354c909ec807c4ad0dc238370b9e4984888f7b6;p=libpicofe.git diff --git a/common/menu.c b/common/menu.c index bd4eb70..dff1b39 100644 --- a/common/menu.c +++ b/common/menu.c @@ -22,8 +22,6 @@ #include #include -#define array_size(x) (sizeof(x) / sizeof(x[0])) - static char static_buff[64]; static char menu_error_msg[64] = { 0, }; static int menu_error_time = 0; @@ -602,7 +600,7 @@ static void load_progress_cb(int percent) plat_video_menu_end(); } -static void cdload_progress_cb(int percent) +static void cdload_progress_cb(const char *fname, int percent) { int ln, len = percent * g_screen_width / 100; unsigned short *dst = (unsigned short *)g_screen_ptr + g_screen_width * 10 * 2; @@ -610,7 +608,7 @@ static void cdload_progress_cb(int percent) memset(dst, 0xff, g_screen_width * (me_sfont_h - 2) * 2); smalltext_out16(1, 3 * me_sfont_h, "Processing CD image / MP3s", 0xffff); - smalltext_out16(1, 4 * me_sfont_h, rom_fname_loaded, 0xffff); + smalltext_out16(1, 4 * me_sfont_h, fname, 0xffff); dst += g_screen_width * me_sfont_h * 3; if (len > g_screen_width) @@ -647,7 +645,8 @@ void menu_romload_prepare(const char *rom_name) void menu_romload_end(void) { - PicoCartLoadProgressCB = PicoCDLoadProgressCB = NULL; + PicoCartLoadProgressCB = NULL; + PicoCDLoadProgressCB = NULL; smalltext_out16(1, (cdload_called ? 6 : 3) * me_sfont_h, "Starting emulation...", 0xffff); plat_video_menu_end();