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()