summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/uimain.c
diff options
context:
space:
mode:
author Scott Stone <tafoid@users.noreply.github.com>2012-03-03 23:19:45 +0000
committer Scott Stone <tafoid@users.noreply.github.com>2012-03-03 23:19:45 +0000
commitb89d7c94c7a2000cb896eb7fd0efa5cc012c672f (patch)
tree8adf184c464ad1ee490e08b128cd11e0a37e5899 /src/emu/uimain.c
parent84069ce9a03bdcd6034645b5109200fe9ff8ad83 (diff)
Added Driver display in both the game select UI as well as the gameinfo screens which should prove helpful. [Tafoid]
Diffstat (limited to 'src/emu/uimain.c')
-rw-r--r--src/emu/uimain.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/emu/uimain.c b/src/emu/uimain.c
index eaac7023d66..fad77703f4c 100644
--- a/src/emu/uimain.c
+++ b/src/emu/uimain.c
@@ -2631,7 +2631,7 @@ void ui_menu_select_game::custom_render(void *selectedref, float top, float bott
const game_driver *driver;
float width, maxwidth;
float x1, y1, x2, y2;
- char tempbuf[4][256];
+ char tempbuf[5][256];
rgb_t color;
int line;
@@ -2678,13 +2678,16 @@ void ui_menu_select_game::custom_render(void *selectedref, float top, float bott
/* next line is year, manufacturer */
sprintf(&tempbuf[1][0], "%s, %-.100s", driver->year, driver->manufacturer);
+ /* next line source path */
+ sprintf(&tempbuf[2][0], "Driver: %-.100s", strrchr(driver->source_file, '/')+1);
+
/* next line is overall driver status */
if (driver->flags & GAME_NOT_WORKING)
- strcpy(&tempbuf[2][0], "Overall: NOT WORKING");
+ strcpy(&tempbuf[3][0], "Overall: NOT WORKING");
else if (driver->flags & GAME_UNEMULATED_PROTECTION)
- strcpy(&tempbuf[2][0], "Overall: Unemulated Protection");
+ strcpy(&tempbuf[3][0], "Overall: Unemulated Protection");
else
- strcpy(&tempbuf[2][0], "Overall: Working");
+ strcpy(&tempbuf[3][0], "Overall: Working");
/* next line is graphics, sound status */
if (driver->flags & (GAME_IMPERFECT_GRAPHICS | GAME_WRONG_COLORS | GAME_IMPERFECT_COLORS))
@@ -2699,7 +2702,7 @@ void ui_menu_select_game::custom_render(void *selectedref, float top, float bott
else
soundstat = "OK";
- sprintf(&tempbuf[3][0], "Gfx: %s, Sound: %s", gfxstat, soundstat);
+ sprintf(&tempbuf[4][0], "Gfx: %s, Sound: %s", gfxstat, soundstat);
}
else
{