Previous 15994 Revisions Next

r2072 Sunday 23rd March, 2008 at 11:34:40 UTC by Nathan Woods
Added a machine_config* parameter to various MESS specific hooks
[src/emu]info.c
[src/mess]infomess.c infomess.h

src/emu/info.c
r2071r2072
1717#include "xmlfile.h"
1818#include "hash.h"
1919
20#ifdef MESS
21#include "infomess.h"
22#endif /* MESS */
23
2024/* MESS/MAME configuration */
2125#ifdef MESS
2226#define XML_ROOT "mess"
r2071r2072
2630#define XML_TOP "game"
2731#endif
2832
29#ifdef MESS
30void print_game_device(FILE* out, const game_driver* game);
31void print_game_ramoptions(FILE* out, const game_driver* game);
32#endif /* MESS */
3333
34
3534/*-------------------------------------------------
3635    print_game_switches - print the DIP switch
3736    settings for a game
r2071r2072
923922   print_game_switches(out, game, input);
924923   print_game_driver(out, game, config);
925924#ifdef MESS
926   print_game_device(out, game);
927   print_game_ramoptions(out, game);
928#endif
925   print_game_device(out, game, config);
926   print_game_ramoptions(out, game, config);
927#endif /* MESS */
929928
930929   /* close the topmost tag */
931930   fprintf(out, "\t</" XML_TOP ">\n");
src/mess/infomess.c
r2071r2072
2121 *************************************/
2222
2323
24void print_game_device(FILE* out, const game_driver* game)
24/*-------------------------------------------------
25    print_game_device - prints out all info on
26   MESS-specific devices
27-------------------------------------------------*/
28
29void print_game_device(FILE *out, const game_driver *game, const machine_config *config)
2530{
2631   const struct IODevice* devices;
2732   const char *name;
r2071r2072
7883
7984
8085
81void print_game_ramoptions(FILE* out, const game_driver* game)
86/*-------------------------------------------------
87    print_game_ramoptions - prints out all RAM
88   options for this system
89-------------------------------------------------*/
90
91void print_game_ramoptions(FILE *out, const game_driver *game, const machine_config *config)
8292{
8393   int i, count;
8494   UINT32 ram;
src/mess/infomess.h
r2071r2072
1010#define INFOMESS_H
1111
1212/* code used by print_mame_xml() */
13void print_game_device(FILE* out, const game_driver* game);
14void print_game_ramoptions(FILE* out, const game_driver* game);
13void print_game_device(FILE *out, const game_driver *game, const machine_config *config);
14void print_game_ramoptions(FILE *out, const game_driver *game, const machine_config *config);
1515
1616#endif /* INFOMESS_H */

Previous 15994 Revisions Next


© 1998-2018 The MESS Team