From 0fd62f5d4f1374deb33c53dd65f0236c04639bf4 Mon Sep 17 00:00:00 2001 From: Nathan Woods Date: Sun, 23 Mar 2008 11:32:46 +0000 Subject: [PATCH] Added a machine_config* parameter to certain MESS specific hooks --- src/emu/info.c | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/src/emu/info.c b/src/emu/info.c index d8e15aa1bd9..3af6b415816 100644 --- a/src/emu/info.c +++ b/src/emu/info.c @@ -17,6 +17,10 @@ #include "xmlfile.h" #include "hash.h" +#ifdef MESS +#include "infomess.h" +#endif /* MESS */ + /* MESS/MAME configuration */ #ifdef MESS #define XML_ROOT "mess" @@ -26,11 +30,6 @@ #define XML_TOP "game" #endif -#ifdef MESS -void print_game_device(FILE* out, const game_driver* game); -void print_game_ramoptions(FILE* out, const game_driver* game); -#endif /* MESS */ - /*------------------------------------------------- print_game_switches - print the DIP switch @@ -923,9 +922,9 @@ static void print_game_info(FILE *out, const game_driver *game) print_game_switches(out, game, input); print_game_driver(out, game, config); #ifdef MESS - print_game_device(out, game); - print_game_ramoptions(out, game); -#endif + print_game_device(out, game, config); + print_game_ramoptions(out, game, config); +#endif /* MESS */ /* close the topmost tag */ fprintf(out, "\t\n");