Skip to content

Commit

Permalink
fix: fix bug where offsets not treated as hex
Browse files Browse the repository at this point in the history
  • Loading branch information
alandtse committed Mar 28, 2023
1 parent d388ad6 commit 33e2d81
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions vr_address_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,11 +271,11 @@ async def load_database(
name = record["PublicSym32"]["Name"]
offset = record["PublicSym32"]["Offset"]
segment = record["PublicSym32"]["Segment"]
found_address = PDB_BASE.get("skyrim" if skyrim else "fallout", {}).get(
found_base = PDB_BASE.get("skyrim" if skyrim else "fallout", {}).get(
segment
)
if found_address:
offset_name[add_hex_strings(offset, found_address)] = name
if found_base:
offset_name[add_hex_strings(hex(offset), found_base)] = name
if debug:
print(f"{pdb_json} loaded with {len(offset_name)} entries")
except FileNotFoundError:
Expand Down

0 comments on commit 33e2d81

Please sign in to comment.