Merge branch 'data' of github.com:nanaian/papermario into data

This commit is contained in:
Alex Bates 2021-02-06 04:37:55 +00:00
commit e2f532016f
3 changed files with 11 additions and 4 deletions

View File

@ -6,7 +6,7 @@
[subrepo]
remote = https://github.com/ethteck/splat.git
branch = master
commit = 6898b0a98bc8f64e3076b97f789c63ca1058ea2d
commit = 733546feac9b29b100553aca1bc9916e1c211f5b
parent = f8a344e713fbe1244ae4f28cf9329179c46123b1
method = merge
cmdver = 0.4.3

View File

@ -23,4 +23,11 @@ Internally, there's a new Symbol class which stores information about a symbol a
**data example**: `gSomeDataVar = 0x80024233; // type:data size:0x100`
As always, feel free to reach out to me with any questions, suggestions, or feedback.
As always, feel free to reach out to me with any questions, suggestions, or feedback.
## 0.6.1: `assets_dir` option
This release adds a new `assets_dir` option in `splat.yaml`s that allows you to override the default `img`, `bin`, and other directories that segments output to.
Want to interdisperse split assets with your sourcecode? `assets_dir: src`!
Want to have all assets live in a single directory? `assets_dir: assets`!

View File

@ -3,7 +3,7 @@
import argparse
from util.n64 import rominfo
from util.n64 import find_code_length
from segtypes.code import N64SegCode
from segtypes.n64.code import N64SegCode
parser = argparse.ArgumentParser(description="Create a splat config from a rom (currently only n64 .z64 roms supported)")
parser.add_argument("rom", help="path to a .z64 rom")
@ -23,7 +23,7 @@ options:
with open(rom_path, "rb") as f:
fbytes = f.read()
first_section_end = find_code_length.run(fbytes, 0x1000, rom.entry_point)
segments = \