def from_memory(mirror_path=None): """Load a map from Halo's memory. Changes immediately take effect in-game, but will be lost unless saved to disk. Parameters ---------- mirror_path : string, optional Location of the map on disk to open for mirroring changes. If None, changes made in memory are not saved and will be lost. """ if mirror_path is not None: raise NotImplementedError('Cannot mirror to disk yet.') return HaloMap(open_process('halo.exe'))
def setUp(self): self.ByteAccess = byteaccess.open_process('halo') self.index_header = 0x40440024 self.offset = 0x6A8154 # suitable scratch area I guess?