--- BasiliskII/src/rom_patches.cpp 2004/11/15 23:27:43 1.24 +++ BasiliskII/src/rom_patches.cpp 2010/02/21 12:00:01 1.28 @@ -1,7 +1,7 @@ /* * rom_patches.cpp - ROM patches * - * Basilisk II (C) 1997-2004 Christian Bauer + * Basilisk II (C) Christian Bauer * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -40,7 +40,7 @@ // Global variables uint32 UniversalInfo; // ROM offset of UniversalInfo -uint32 PutScrapPatch; // Mac address of PutScrap() patch +uint32 PutScrapPatch = 0; // Mac address of PutScrap() patch uint32 GetScrapPatch = 0; // Mac address of GetScrap() patch uint32 ROMBreakpoint = 0; // ROM offset of breakpoint (0 = disabled, 0x2310 = CritError) bool PrintROMInfo = false; // Flag: print ROM information in PatchROM() @@ -184,7 +184,7 @@ static void list_rom_resources(void) // Mapping of Model IDs to Model names struct mac_desc { - char *name; + const char *name; int32 id; }; @@ -258,7 +258,7 @@ static void print_universal_info(uint32 uint16 rom85 = ReadMacInt16(info + 20); // Find model name - char *name = "unknown"; + const char *name = "unknown"; for (int i=0; MacDesc[i].id >= 0; i++) if (MacDesc[i].id == id + 6) { name = MacDesc[i].name;