1
0
mirror of https://github.com/Escartem/AnimeWwise.git synced 2026-06-09 18:40:35 +08:00

update hsr to 4.2

This commit is contained in:
Escartem
2026-04-24 22:44:24 -04:00
parent b99b5dcf79
commit 448122b8c3
3 changed files with 7 additions and 3 deletions

View File

@@ -48,7 +48,11 @@ class Mapper:
print(f"> Loading mapping for {infos['game']} v{infos['version']}, this may take a few seconds...")
# sectors
int24 = lambda: int.from_bytes(reader.ReadBytes(3), "big")
def int24():
val = int.from_bytes(reader.ReadBytes(3), "big")
if val == 0:
int.from_bytes(reader.ReadBytes(4), "big")
return val
sectors = {
# offset | size