From d7977308186db6fc21e98d90751af026d6b2a156 Mon Sep 17 00:00:00 2001 From: moist Date: Thu, 1 Feb 2024 17:55:40 -0500 Subject: [PATCH] input correction --- fix-savs.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fix-savs.py b/fix-savs.py index 1681e47..acb5dfb 100644 --- a/fix-savs.py +++ b/fix-savs.py @@ -10,9 +10,9 @@ from lib.paltypes import PALWORLD_CUSTOM_PROPERTIES, PALWORLD_TYPE_HINTS def main(sav_file: str, guid: str): - if sav_file[-4:] == ".sav": + if sav_file[-4:] == ".SAV": sav_file = sav_file[:-4] - if guid[-4:] == ".sav": + if guid[-4:] == ".SAV": guid = guid[:-4] convert_sav_to_json(filename=f"savs/{sav_file}.sav", output_path=f"./savs/{sav_file}.json") @@ -121,4 +121,4 @@ def confirm_prompt(question: str) -> bool: if __name__ == "__main__": a = sys.argv[1] b = sys.argv[2] - main(sav_file=a, guid=b) + main(sav_file=a.upper(), guid=b.upper())