mirror of
https://github.com/holub/mame
synced 2025-05-15 02:18:16 +03:00
Added Driver display in both the game select UI as well as the gameinfo screens which should prove helpful. [Tafoid]
This commit is contained in:
parent
84069ce9a0
commit
b89d7c94c7
@ -23,7 +23,6 @@
|
|||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
CONSTANTS
|
CONSTANTS
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
@ -1021,7 +1020,7 @@ astring &game_info_astring(running_machine &machine, astring &string)
|
|||||||
int found_sound = FALSE;
|
int found_sound = FALSE;
|
||||||
|
|
||||||
/* print description, manufacturer, and CPU: */
|
/* print description, manufacturer, and CPU: */
|
||||||
string.printf("%s\n%s %s\n\nCPU:\n", machine.system().description, machine.system().year, machine.system().manufacturer);
|
string.printf("%s\n%s %s\nDriver: %s\n\nCPU:\n", machine.system().description, machine.system().year, machine.system().manufacturer, strrchr(machine.system().source_file, '/')+1);
|
||||||
|
|
||||||
/* loop over all CPUs */
|
/* loop over all CPUs */
|
||||||
execute_interface_iterator execiter(machine.root_device());
|
execute_interface_iterator execiter(machine.root_device());
|
||||||
|
@ -2631,7 +2631,7 @@ void ui_menu_select_game::custom_render(void *selectedref, float top, float bott
|
|||||||
const game_driver *driver;
|
const game_driver *driver;
|
||||||
float width, maxwidth;
|
float width, maxwidth;
|
||||||
float x1, y1, x2, y2;
|
float x1, y1, x2, y2;
|
||||||
char tempbuf[4][256];
|
char tempbuf[5][256];
|
||||||
rgb_t color;
|
rgb_t color;
|
||||||
int line;
|
int line;
|
||||||
|
|
||||||
@ -2678,13 +2678,16 @@ void ui_menu_select_game::custom_render(void *selectedref, float top, float bott
|
|||||||
/* next line is year, manufacturer */
|
/* next line is year, manufacturer */
|
||||||
sprintf(&tempbuf[1][0], "%s, %-.100s", driver->year, driver->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 */
|
/* next line is overall driver status */
|
||||||
if (driver->flags & GAME_NOT_WORKING)
|
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)
|
else if (driver->flags & GAME_UNEMULATED_PROTECTION)
|
||||||
strcpy(&tempbuf[2][0], "Overall: Unemulated Protection");
|
strcpy(&tempbuf[3][0], "Overall: Unemulated Protection");
|
||||||
else
|
else
|
||||||
strcpy(&tempbuf[2][0], "Overall: Working");
|
strcpy(&tempbuf[3][0], "Overall: Working");
|
||||||
|
|
||||||
/* next line is graphics, sound status */
|
/* next line is graphics, sound status */
|
||||||
if (driver->flags & (GAME_IMPERFECT_GRAPHICS | GAME_WRONG_COLORS | GAME_IMPERFECT_COLORS))
|
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
|
else
|
||||||
soundstat = "OK";
|
soundstat = "OK";
|
||||||
|
|
||||||
sprintf(&tempbuf[3][0], "Gfx: %s, Sound: %s", gfxstat, soundstat);
|
sprintf(&tempbuf[4][0], "Gfx: %s, Sound: %s", gfxstat, soundstat);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user