mirror of
https://github.com/ACreTeam/ac-decomp
synced 2026-05-23 06:34:18 -04:00
prepare asset ripping
This commit is contained in:
+2
-1
@@ -13,4 +13,5 @@ dump/*
|
||||
*.exe
|
||||
*.dll
|
||||
build.ninja
|
||||
ac-decomp.code-workspace
|
||||
ac-decomp.code-workspace
|
||||
assets/
|
||||
@@ -0,0 +1,7 @@
|
||||
config/dol.yml:
|
||||
nintendo_hi_0.aw:
|
||||
addrs: [0x800c3140, 0x800cca40]
|
||||
__Creator__.bin:
|
||||
addrs: [0x800b05e8, 0x800b05f4]
|
||||
__DateTime__.bin:
|
||||
addrs: [0x800b05f4, 0x800b0608]
|
||||
@@ -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:
|
||||
|
||||
@@ -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
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user