1 |
|
/* |
2 |
|
* rom_patches.cpp - ROM patches |
3 |
|
* |
4 |
< |
* Basilisk II (C) 1997-2004 Christian Bauer |
4 |
> |
* Basilisk II (C) Christian Bauer |
5 |
|
* |
6 |
|
* This program is free software; you can redistribute it and/or modify |
7 |
|
* it under the terms of the GNU General Public License as published by |
40 |
|
|
41 |
|
// Global variables |
42 |
|
uint32 UniversalInfo; // ROM offset of UniversalInfo |
43 |
< |
uint32 PutScrapPatch; // Mac address of PutScrap() patch |
43 |
> |
uint32 PutScrapPatch = 0; // Mac address of PutScrap() patch |
44 |
|
uint32 GetScrapPatch = 0; // Mac address of GetScrap() patch |
45 |
|
uint32 ROMBreakpoint = 0; // ROM offset of breakpoint (0 = disabled, 0x2310 = CritError) |
46 |
|
bool PrintROMInfo = false; // Flag: print ROM information in PatchROM() |
184 |
|
|
185 |
|
// Mapping of Model IDs to Model names |
186 |
|
struct mac_desc { |
187 |
< |
char *name; |
187 |
> |
const char *name; |
188 |
|
int32 id; |
189 |
|
}; |
190 |
|
|
258 |
|
uint16 rom85 = ReadMacInt16(info + 20); |
259 |
|
|
260 |
|
// Find model name |
261 |
< |
char *name = "unknown"; |
261 |
> |
const char *name = "unknown"; |
262 |
|
for (int i=0; MacDesc[i].id >= 0; i++) |
263 |
|
if (MacDesc[i].id == id + 6) { |
264 |
|
name = MacDesc[i].name; |