src/mess/cheatms.c
| r2199 | r2200 | |
| 11 | 11 | #include "mess.h" |
| 12 | 12 | #include "image.h" |
| 13 | 13 | #include "cheatms.h" |
| 14 | | #include "deprecat.h" |
| 15 | 14 | |
| 16 | 15 | |
| 17 | 16 | /*************************************************************************** |
| r2199 | r2200 | |
| 28 | 27 | CODE |
| 29 | 28 | ***************************************************************************/ |
| 30 | 29 | |
| 31 | | static void BuildCRCTable(void) |
| 30 | static void BuildCRCTable(running_machine *machine) |
| 32 | 31 | { |
| 33 | 32 | int listIdx; |
| 34 | 33 | const device_config *img; |
| r2199 | r2200 | |
| 39 | 38 | deviceCRCList = calloc(1, sizeof(UINT32)); |
| 40 | 39 | deviceCRCListLength = 1; |
| 41 | 40 | |
| 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)) |
| 43 | 42 | { |
| 44 | 43 | if (image_exists(img)) |
| 45 | 44 | { |
| r2199 | r2200 | |
| 71 | 70 | } |
| 72 | 71 | |
| 73 | 72 | |
| 74 | | void InitMessCheats(void) |
| 73 | void InitMessCheats(running_machine *machine) |
| 75 | 74 | { |
| 76 | 75 | deviceCRCList = NULL; |
| 77 | 76 | deviceCRCListLength = 0; |
| 78 | 77 | thisGameCRC = 0; |
| 79 | 78 | |
| 80 | | BuildCRCTable(); |
| 79 | BuildCRCTable(machine); |
| 81 | 80 | } |
| 82 | 81 | |
| 83 | 82 | |