splat64 0.35.0__py3-none-any.whl → 0.35.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
splat/__init__.py CHANGED
@@ -1,7 +1,7 @@
1
1
  __package_name__ = __name__
2
2
 
3
3
  # Should be synced with pyproject.toml
4
- __version__ = "0.35.0"
4
+ __version__ = "0.35.1"
5
5
  __author__ = "ethteck"
6
6
 
7
7
  from . import util as util
@@ -122,20 +122,26 @@ def write_assembly_inc_files():
122
122
  options.opts.asm_jtbl_label_macro != ""
123
123
  and options.opts.asm_jtbl_label_macro != options.opts.asm_function_macro
124
124
  ):
125
- jlabel_macro_labelsinc = f"""
125
+ jlabel_macro_macroinc = f"""
126
126
  # A label referenced by a jumptable.
127
127
  .macro {options.opts.asm_jtbl_label_macro} label, visibility=global
128
+ .\\visibility \\label
129
+ .type \\label, @function
128
130
  \\label:
129
131
  .endm
130
132
  """
131
- jlabel_macro_macroinc = f"""
133
+ if options.opts.migrate_rodata_to_functions:
134
+ jlabel_macro_labelsinc = f"""
132
135
  # A label referenced by a jumptable.
133
136
  .macro {options.opts.asm_jtbl_label_macro} label, visibility=global
134
- .\\visibility \\label
135
- .type \\label, @function
136
137
  \\label:
137
138
  .endm
138
139
  """
140
+ else:
141
+ # If the user doesn't migrate rodata, like jumptables, to functions
142
+ # then the user will need jlabels to be global instead of local,
143
+ # so we just reuse the definition from macro.inc
144
+ jlabel_macro_labelsinc = jlabel_macro_macroinc
139
145
 
140
146
  data_macros = ""
141
147
  if (
@@ -186,6 +192,9 @@ def write_assembly_inc_files():
186
192
  if options.opts.compiler.uses_include_asm:
187
193
  # File used by original assembler
188
194
  preamble = "# This file is used by the original compiler/assembler.\n# Defines the expected assembly macros.\n"
195
+
196
+ if options.opts.platform == "psx":
197
+ preamble += '\n.include "gte_macros.inc"\n'
189
198
  _write("include/labels.inc", f"{preamble}\n{labels_inc}")
190
199
 
191
200
  if options.opts.platform in {"n64", "psx"}:
@@ -275,7 +284,7 @@ def write_assembly_inc_files():
275
284
  .set $fs5f, $f31
276
285
  """
277
286
  elif options.opts.platform == "psx":
278
- gas += '\ninclude "gte_macros.inc"\n'
287
+ gas += '\n.include "gte_macros.inc"\n'
279
288
  write_gte_macros()
280
289
 
281
290
  if options.opts.generated_macro_inc_content is not None:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: splat64
3
- Version: 0.35.0
3
+ Version: 0.35.1
4
4
  Summary: A binary splitting tool to assist with decompilation and modding projects
5
5
  Project-URL: Repository, https://github.com/ethteck/splat
6
6
  Project-URL: Issues, https://github.com/ethteck/splat/issues
@@ -76,7 +76,7 @@ The brackets corresponds to the optional dependencies to install while installin
76
76
  If you use a `requirements.txt` file in your repository, then you can add this library with the following line:
77
77
 
78
78
  ```txt
79
- splat64[mips]>=0.35.0,<1.0.0
79
+ splat64[mips]>=0.35.1,<1.0.0
80
80
  ```
81
81
 
82
82
  ### Optional dependencies
@@ -1,4 +1,4 @@
1
- splat/__init__.py,sha256=tcpQ8WekepdS0S7Aj4YCScLZqmoGaESYrKYng4wJRPI,291
1
+ splat/__init__.py,sha256=EqcKb5RaJAqZuKezUzsW4SkiCT7ysMS7MCKmP1MfPU0,291
2
2
  splat/__main__.py,sha256=T333dHDgr-2HYYhtARnYMEjdECnYiNIKfcXDD99o22A,732
3
3
  splat/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
4
  splat/disassembler/__init__.py,sha256=IubLMnm_F5cZ7WUPBfk1VJ7vdj6i1if5GG6RBvEoBEA,226
@@ -80,7 +80,7 @@ splat/util/cache_handler.py,sha256=N0SggmvYwh0k-0fngHXoHG1CosC2rCsnlCTDsG8z5aE,1
80
80
  splat/util/color.py,sha256=FSmy0dAQJ9FzRBc99Yt4kBEyB62MC_YiVkqoWgPMsRU,371
81
81
  splat/util/compiler.py,sha256=uXShMm49380ENecSFlsi75LWI45yakWkExZX8NT5pOU,1778
82
82
  splat/util/conf.py,sha256=aM6O2QikosjL95pCxI2FcCxrwDsLP8T8sRf2Uev_Pac,3236
83
- splat/util/file_presets.py,sha256=6GLLNUQ_Gpi7tZUYdtfU-3pVcjkAJeByMtFZRmDqjEg,16735
83
+ splat/util/file_presets.py,sha256=LGNOz2Mvbt8UndNOglGKqVzGi06c_HPWJb1I8wt6PGo,17184
84
84
  splat/util/log.py,sha256=aJA1rg8IirJu1wGzjNuATHvepYvD3k5CtEyMasyJWxI,1193
85
85
  splat/util/options.py,sha256=KqNjeB2mSwuB09H3uylfZ9PU7GlCZDYhkhfCLAGYSQE,30005
86
86
  splat/util/palettes.py,sha256=d3KoZnwt-zunI9eNwb3txysXg4DY3xnF0O5aQRxM4so,2920
@@ -95,8 +95,8 @@ splat/util/n64/find_code_length.py,sha256=uUoPoUORAjsAvH8oGqwnGvw6j8I_NnSrZtA-x9
95
95
  splat/util/n64/rominfo.py,sha256=s13r4pDPH9Mc43ZGpomPnLZPWchhbv0kIjDoM0B3Ong,16963
96
96
  splat/util/psx/__init__.py,sha256=kCCaR-KB1mNlIcXB4OuuSQ2zVLbWg_SnIZIUeyjeBBI,39
97
97
  splat/util/psx/psxexeinfo.py,sha256=MrxY28nes0uzpFmCz0o9JFbF8s1eQRQNOpC_82wsMVI,5725
98
- splat64-0.35.0.dist-info/METADATA,sha256=C9xglffpmD6eI4pgKFqTAa_g8zhMnORj-N7puPU62RU,3830
99
- splat64-0.35.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
100
- splat64-0.35.0.dist-info/entry_points.txt,sha256=O7Xy-qNOHcI87-OQrWJ-OhRDws74SuwVb_4rtnp0eLo,52
101
- splat64-0.35.0.dist-info/licenses/LICENSE,sha256=97VMVzjG8yQvsf8NG2M9IFSbh7R8cifJnc6QK1cZqj8,1070
102
- splat64-0.35.0.dist-info/RECORD,,
98
+ splat64-0.35.1.dist-info/METADATA,sha256=vi5oDgh5LujnaB0jDM5ql_MwxpdBKSsRZ7Ig02wEaY0,3830
99
+ splat64-0.35.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
100
+ splat64-0.35.1.dist-info/entry_points.txt,sha256=O7Xy-qNOHcI87-OQrWJ-OhRDws74SuwVb_4rtnp0eLo,52
101
+ splat64-0.35.1.dist-info/licenses/LICENSE,sha256=97VMVzjG8yQvsf8NG2M9IFSbh7R8cifJnc6QK1cZqj8,1070
102
+ splat64-0.35.1.dist-info/RECORD,,