def readFromRom(self, rom): for (cat, items) in self.ENTRY_LOCS: catDict = {} for (desc, loc, size) in items: catDict[desc] = SmbModule.readText(rom, loc, size) self._data[cat] = catDict updateProgress(self._pct)
def writeToRom(self, rom): for (cat, items) in self.ENTRY_LOCS: catDict = self._data[cat] for (desc, loc, size) in items: SmbModule.writeText(rom, loc, catDict[desc], size) updateProgress(self._pct)