From 7e9103435b062594e73dbce43aae88b8459431fb Mon Sep 17 00:00:00 2001 From: Mc-muffin <8714476+Mc-muffin@users.noreply.github.com> Date: Sat, 7 Dec 2024 19:04:55 -0500 Subject: [PATCH] Add missing fmv dummy sub --- pythonlib/formats/rebirth/fmv_to_hdr.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pythonlib/formats/rebirth/fmv_to_hdr.py b/pythonlib/formats/rebirth/fmv_to_hdr.py index 2ef356c..d7ba13a 100644 --- a/pythonlib/formats/rebirth/fmv_to_hdr.py +++ b/pythonlib/formats/rebirth/fmv_to_hdr.py @@ -7,7 +7,11 @@ def subs_to_lines(subs: list[srt.SrtSub], name: str) -> list[str]: content = list() inner_content = list() - content.append(f"const fmv_sub fmv_{name}[{len(subs) * 2}] = {{") + content.append(f"const fmv_sub fmv_{name}[{(len(subs) * 2) + 1}] = {{") + inner_content.append("{") + inner_content.append(" TS_TO_FRAMES(0, 0, 0),") + inner_content.append(" (char*)NULL") + inner_content.append("},") for sub in subs: start = sub.start start_text = f"TS_TO_FRAMES({start.minutes}, {start.seconds}, {start.milis})"