diff --git a/CHANGELOG.md b/CHANGELOG.md index 683ff57e..28de3638 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # splat Release Notes +### 0.31.0 + +* Fix subsegments of auto `data` segments not being split. + ### 0.30.1 * Fix `create_config` not handling unsafe path characters. diff --git a/README.md b/README.md index 145b30ff..a1355c6a 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ The brackets corresponds to the optional dependencies to install while installin If you use a `requirements.txt` file in your repository, then you can add this library with the following line: ```txt -splat64[mips]>=0.30.1,<1.0.0 +splat64[mips]>=0.31.0,<1.0.0 ``` ### Optional dependencies diff --git a/pyproject.toml b/pyproject.toml index 6befcfb3..c4f52895 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [project] name = "splat64" # Should be synced with src/splat/__init__.py -version = "0.30.1" +version = "0.31.0" description = "A binary splitting tool to assist with decompilation and modding projects" readme = "README.md" license = {file = "LICENSE"} diff --git a/src/splat/__init__.py b/src/splat/__init__.py index b76b6ee6..b4c76da8 100644 --- a/src/splat/__init__.py +++ b/src/splat/__init__.py @@ -1,7 +1,7 @@ __package_name__ = __name__ # Should be synced with pyproject.toml -__version__ = "0.30.1" +__version__ = "0.31.0" __author__ = "ethteck" from . import util as util diff --git a/src/splat/segtypes/common/data.py b/src/splat/segtypes/common/data.py index ba252bd5..024bf41e 100644 --- a/src/splat/segtypes/common/data.py +++ b/src/splat/segtypes/common/data.py @@ -39,9 +39,6 @@ def scan(self, rom_bytes: bytes): self.disassemble_data(rom_bytes) def split(self, rom_bytes: bytes): - if self.is_auto_segment: - return - super().split(rom_bytes) if self.type.startswith(".") and not options.opts.disassemble_all: @@ -73,7 +70,7 @@ def should_scan(self) -> bool: return True def should_split(self) -> bool: - return not self.type.startswith(".") + return True def cache(self): return [CommonSegCodeSubsegment.cache(self), CommonSegGroup.cache(self)]