From 5f8b0c4dd518b26bf9e2b87589deb0bcb45dfbfe Mon Sep 17 00:00:00 2001 From: Viv Date: Sat, 3 Jun 2023 09:47:46 -0400 Subject: [PATCH] `main.py`: Use course ID (`m`) instead of name (`Oni`) --- tja2fumen/main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tja2fumen/main.py b/tja2fumen/main.py index ebc3228..3c4eb93 100644 --- a/tja2fumen/main.py +++ b/tja2fumen/main.py @@ -2,6 +2,7 @@ from tja2fumen.parsers import readFumen, parseTJA from tja2fumen.writers import writeFumen from tja2fumen.converters import convertTJAToFumen from tja2fumen.utils import checkMismatchedBytes +from tja2fumen.constants import COURSE_IDS tja2fumen_version = "v0.1" @@ -45,6 +46,6 @@ if __name__ == "__main__": fumen, convertedTJAs = main(fnameFumen=fnameFumen, fnameTJA=fnameTJA) for course, song in convertedTJAs.items(): - outputName = ".".join(fnameTJA.split('.')[0:-1]) + f"_{course}.bin" + outputName = ".".join(fnameTJA.split('.')[0:-1]) + f"_{COURSE_IDS[course]}.bin" outputFile = open(outputName, "wb") writeFumen(outputFile, song)