Skip to content

Commit

Permalink
fixed a bug with FE8 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
henry-alakazhang committed Oct 16, 2016
1 parent f630cd7 commit 1c40e88
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions fe8.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ def __init__(self, file):
# self.CLASS_TABLE_INDIRECT = 0x17DB0

self.TEXT_TABLE_INDIRECT = 0x00A2A0
self.file.seek(self.TEXT_TABLE_INDIRECT)
self.TEXT_TABLE = int.from_bytes(self.file.read(4), byteorder='little', signed=False) - 0x8000000
# self.dynamicLoadTables()

self.CHAR_TO_HEX = {
Expand Down
2 changes: 1 addition & 1 deletion rom.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ def getTextTable(self):
try:
return self.TEXT_TABLE
except:
self.TEXT_TABLE = readBytes(4, TEXT_TABLE_INDIRECT) - 0x8000000
self.TEXT_TABLE = self.readBytes(4, TEXT_TABLE_INDIRECT) - 0x8000000
return self.TEXT_TABLE

def getHexFromChar(self, name):
Expand Down

0 comments on commit 1c40e88

Please sign in to comment.