mirror of
https://github.com/ArchipelagoMW/Archipelago.git
synced 2026-09-24 20:24:37 -07:00
SM: cx_freeze fix (#1584)
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import itertools
|
||||
|
||||
from utils.utils import range_union
|
||||
from worlds.sm.variaRandomizer.utils.utils import range_union
|
||||
|
||||
# adapted from ips-util for python 3.2 (https://pypi.org/project/ips-util/)
|
||||
class IPS_Patch(object):
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import base64
|
||||
|
||||
from rom.ips import IPS_Patch
|
||||
from worlds.sm.variaRandomizer.rom.ips import IPS_Patch
|
||||
|
||||
def pc_to_snes(pcaddress):
|
||||
snesaddress=(((pcaddress<<1)&0x7F0000)|(pcaddress&0x7FFF)|0x8000)|0x800000
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
from logic.smbool import SMBool
|
||||
from worlds.sm.variaRandomizer.logic.smbool import SMBool
|
||||
|
||||
# layout patches added by randomizers
|
||||
class RomPatches:
|
||||
|
||||
@@ -1,14 +1,13 @@
|
||||
import os, random, re
|
||||
|
||||
from rando.Items import ItemManager
|
||||
from rom.ips import IPS_Patch
|
||||
from utils.doorsmanager import DoorsManager
|
||||
from graph.graph_utils import GraphUtils, getAccessPoint, locIdsByAreaAddresses
|
||||
from logic.logic import Logic
|
||||
from rom.rom import RealROM, snes_to_pc
|
||||
from patches.patchaccess import PatchAccess
|
||||
from utils.parameters import appDir
|
||||
import utils.log
|
||||
from worlds.sm.variaRandomizer.rando.Items import ItemManager
|
||||
from worlds.sm.variaRandomizer.rom.ips import IPS_Patch
|
||||
from worlds.sm.variaRandomizer.utils.doorsmanager import DoorsManager
|
||||
from worlds.sm.variaRandomizer.graph.graph_utils import GraphUtils, getAccessPoint, locIdsByAreaAddresses
|
||||
from worlds.sm.variaRandomizer.logic.logic import Logic
|
||||
from worlds.sm.variaRandomizer.rom.rom import RealROM, snes_to_pc, pc_to_snes
|
||||
from worlds.sm.variaRandomizer.patches.patchaccess import PatchAccess
|
||||
from worlds.sm.variaRandomizer.utils.parameters import appDir
|
||||
from worlds.sm.variaRandomizer.utils import log
|
||||
|
||||
def getWord(w):
|
||||
return (w & 0x00FF, (w & 0xFF00) >> 8)
|
||||
@@ -57,7 +56,7 @@ class RomPatcher:
|
||||
}
|
||||
|
||||
def __init__(self, romFileName=None, magic=None, plando=False, player=0):
|
||||
self.log = utils.log.get('RomPatcher')
|
||||
self.log = log.get('RomPatcher')
|
||||
self.romFileName = romFileName
|
||||
self.race = None
|
||||
self.romFile = RealROM(romFileName)
|
||||
|
||||
Reference in New Issue
Block a user