prepare asset ripping

This commit is contained in:
Prakxo
2023-03-13 11:58:42 +00:00
parent 7cd0fe6ec6
commit b3050638b2
5 changed files with 30 additions and 4 deletions
+2 -1
View File
@@ -13,4 +13,5 @@ dump/*
*.exe
*.dll
build.ninja
ac-decomp.code-workspace
ac-decomp.code-workspace
assets/
+7
View File
@@ -0,0 +1,7 @@
config/dol.yml:
nintendo_hi_0.aw:
addrs: [0x800c3140, 0x800cca40]
__Creator__.bin:
addrs: [0x800b05e8, 0x800b05f4]
__DateTime__.bin:
addrs: [0x800b05f4, 0x800b0608]
+2
View File
@@ -5,6 +5,8 @@ m_room_type/mRmTp_FtrItemNo2FtrIdx.c:
#m_skin_matrix.c:
# .text: [0x803f1528, 0x803f1bb4]
# .rodata: [0x80643310, 0x80643318]
sys_stacks.c:
.bss: [0x812F5670, 0x812F9670]
#zurumode/zerucheck_init.c:
# .text: [0x8040eb38, 0x8040EB50]
#zurumode/zerucheck_key_check.c:
+16
View File
@@ -11,6 +11,7 @@ import pickle
import re
from io import StringIO
from sys import executable as PYTHON, platform
from typing import List, Tuple
from ninja_syntax import Writer
@@ -251,9 +252,24 @@ class Asset:
for binary, bdat in c.load_from_yaml(yml_path).items()
for asset, adat in bdat.items()
}
def dump(self):
print(f"Ripping {self.path} from main.dol")
os.system(
f"{PYTHON} {c.PPCDIS}/assetrip.py {c.DOL_YML} 0x{self.start:x} {self.end:x} {c.ASSETS}/{self.path}")
assets = Asset.load(c.ASSETS_YML)
##############
# Rip Assets #
##############
for asset in assets.values():
Asset.dump(asset)
###########
# Sources #
###########
+3 -3
View File
@@ -4,6 +4,6 @@
#define PADMGR_STACK_SIZE 0x1000
#define GRAPH_STACK_SIZE 0x2000
extern u8 irqmgrStack [IRQMGR_STACK_SIZE];
extern u8 padmgrStack [PADMGR_STACK_SIZE];
extern u8 graphStack[GRAPH_STACK_SIZE];
u8 graphStack[GRAPH_STACK_SIZE];
u8 padmgrStack [PADMGR_STACK_SIZE];
u8 irqmgrStack [IRQMGR_STACK_SIZE];