From ce3af63b7a1e39a133700709d176bf28a4341dbf Mon Sep 17 00:00:00 2001 From: Mc-muffin <8714476+Mc-muffin@users.noreply.github.com> Date: Sun, 1 Dec 2024 11:22:42 -0500 Subject: [PATCH] Battle Sub names can be plaintext too --- pythonlib/formats/rebirth/btlsub_to_hdr.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pythonlib/formats/rebirth/btlsub_to_hdr.py b/pythonlib/formats/rebirth/btlsub_to_hdr.py index e81de6c..3b21ce4 100644 --- a/pythonlib/formats/rebirth/btlsub_to_hdr.py +++ b/pythonlib/formats/rebirth/btlsub_to_hdr.py @@ -184,7 +184,10 @@ def text_to_cstr(text: str, is_name: bool = False) -> str: elif token == "\n": output += " NL " else: - output += f'"{token}"' + if is_name and token != "&": + output += f'NAME("{token}")' + else: + output += f'"{token}"' return output.strip()