From 0a29471e63626b1ad21cee9a770856a86455dbfe Mon Sep 17 00:00:00 2001 From: Anghelo Carvajal Date: Mon, 2 Dec 2024 16:32:24 -0300 Subject: [PATCH] Tag `PSYQ` as a compiler that uses `j` instructions as branches (#430) * Tag `PSYQ` as a compiler that uses `j` instructions as branches * bump --- CHANGELOG.md | 5 +++++ README.md | 2 +- pyproject.toml | 2 +- src/splat/__init__.py | 2 +- src/splat/util/compiler.py | 5 ++++- 5 files changed, 12 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 28de3638..b1158801 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # splat Release Notes +### 0.31.1 + +* Tag `PSYQ` as a compiler that uses `j` instructions as branches. + * Fixes incorrect detection of non existing functions under the mentioned compiler. + ### 0.31.0 * Fix subsegments of auto `data` segments not being split. diff --git a/README.md b/README.md index a1355c6a..6449297b 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.31.0,<1.0.0 +splat64[mips]>=0.31.1,<1.0.0 ``` ### Optional dependencies diff --git a/pyproject.toml b/pyproject.toml index c4f52895..76c3a93b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [project] name = "splat64" # Should be synced with src/splat/__init__.py -version = "0.31.0" +version = "0.31.1" 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 b4c76da8..357171d7 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.31.0" +__version__ = "0.31.1" __author__ = "ethteck" from . import util as util diff --git a/src/splat/util/compiler.py b/src/splat/util/compiler.py index 95246f46..22cdb9c2 100644 --- a/src/splat/util/compiler.py +++ b/src/splat/util/compiler.py @@ -48,7 +48,10 @@ class Compiler: ) # PS1 -PSYQ = Compiler("PSYQ") +PSYQ = Compiler( + "PSYQ", + j_as_branch=True, +) # PS2 MWCCPS2 = Compiler("MWCCPS2")