mirror of
https://github.com/pmret/papermario.git
synced 2024-11-09 12:32:38 +01:00
41417f4d70
* splat disasm update * a little * splat jtbl robustness * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "150dcdebfd" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "150dcdebfd" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * some rodata stuff * git subrepo pull tools/splat subrepo: subdir: "tools/splat" merged: "21bf3a381c" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "21bf3a381c" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * progress * All area rodata migrated
19 lines
488 B
Python
Executable File
19 lines
488 B
Python
Executable File
#!/usr/bin/python3
|
|
|
|
def qc(words_string):
|
|
words = words_string.split(",")
|
|
byte_array = b""
|
|
for word in words:
|
|
data = word.strip()[2:]
|
|
byte_array += bytearray.fromhex(data)
|
|
strings = byte_array.split(b"\0")
|
|
|
|
idx = 0
|
|
for string in strings:
|
|
if len(string) > 0:
|
|
dec = string.decode("ascii")
|
|
print(f"static char* N(exit_str_{idx}) = \"{dec}\";")
|
|
idx += 1
|
|
|
|
qc("0x6D61635F, 0x30310000, 0x00000000, 0x00000000")
|