Previous 15994 Revisions Next

r2200 Tuesday 1st April, 2008 at 16:47:08 UTC by Firewave
And more Machine -> machine cleanups (MAME part already submitted to MAMEdev)
[src/emu]cheat.c
[src/mess]cheatms.c cheatms.h

src/emu/cheat.c
r2199r2200
14711471   searchListLength =      0;
14721472
14731473#ifdef MESS
1474   InitMessCheats();
1474   InitMessCheats(machine);
14751475#endif
14761476
14771477   /* ----- initialize flags ----- */
src/mess/cheatms.c
r2199r2200
1111#include "mess.h"
1212#include "image.h"
1313#include "cheatms.h"
14#include "deprecat.h"
1514
1615
1716/***************************************************************************
r2199r2200
2827    CODE
2928***************************************************************************/
3029
31static void BuildCRCTable(void)
30static void BuildCRCTable(running_machine *machine)
3231{
3332   int   listIdx;
3433   const device_config *img;
r2199r2200
3938   deviceCRCList = calloc(1, sizeof(UINT32));
4039   deviceCRCListLength = 1;
4140
42   for (img = image_device_first(Machine->config); img != NULL; img = image_device_next(img))
41   for (img = image_device_first(machine->config); img != NULL; img = image_device_next(img))
4342   {
4443      if (image_exists(img))
4544      {
r2199r2200
7170}
7271
7372
74void InitMessCheats(void)
73void InitMessCheats(running_machine *machine)
7574{
7675   deviceCRCList =         NULL;
7776   deviceCRCListLength =   0;
7877   thisGameCRC =         0;
7978
80   BuildCRCTable();
79   BuildCRCTable(machine);
8180}
8281
8382
src/mess/cheatms.h
r2199r2200
1111
1212extern UINT32            thisGameCRC;
1313
14void InitMessCheats(void);
14void InitMessCheats(running_machine *machine);
1515void StopMessCheats(void);
1616int MatchesCRCTable(UINT32 crc);
1717

Previous 15994 Revisions Next


© 1998-2018 The MESS Team