neogeo: remove path from progress bar.

This commit is contained in:
sorgelig
2019-09-09 01:14:15 +08:00
parent 84699a650c
commit a42d9745c8

View File

@@ -108,7 +108,11 @@ static void neogeo_osd_progress(const char* name, unsigned int progress)
char c = pchar[progress % PROGRESS_CHARS];
progress /= PROGRESS_CHARS;
strcpy(progress_buf, name);
const char* p = strrchr(name, '/');
if (p) p++;
else p = name;
strcpy(progress_buf, p);
char *buf = progress_buf + strlen(progress_buf);
*buf++ = ' ';