Exemple #1
0
 def __init__(self, romFileName=None, magic=None, plando=False):
     self.romFileName = romFileName
     self.race = None
     if romFileName == None:
         self.romFile = FakeROM()
     else:
         self.romFile = RealROM(romFileName)
     if magic is not None:
         from rom.race_mode import RaceModePatcher
         self.race = RaceModePatcher(self, magic, plando)
     # IPS_Patch objects list
     self.ipsPatches = []
     # loc name to alternate address. we still write to original
     # address to help the RomReader.
     self.altLocsAddresses = {}
     # specific fixes for area rando connections
     self.roomConnectionSpecific = {
         # fix scrolling sky when transitioning to west ocean
         0x93fe: self.patchWestOcean
     }
     self.doorConnectionSpecific = {
         # get out of kraid room: reload CRE
         0x91ce: self.forceRoomCRE,
         # get out of croc room: reload CRE
         0x93ea: self.forceRoomCRE
     }
 def __init__(self, dictROM, magic=None):
     super(RomLoaderDict, self).__init__()
     fakeROM = FakeROM(dictROM)
     self.romReader = RomReader(fakeROM, magic)