From a7ac61b196bb5e460dcb1a035299192dbd7c15f5 Mon Sep 17 00:00:00 2001 From: ColdWindScholar <3590361911@qq.com> Date: Tue, 6 Feb 2024 13:59:47 +0800 Subject: [PATCH] [Update] Fix ROM Unpack --- run.py | 1 + 1 file changed, 1 insertion(+) diff --git a/run.py b/run.py index a283173..dcb5449 100644 --- a/run.py +++ b/run.py @@ -213,6 +213,7 @@ def __init__(self): json2 = json_edit(os.path.join(extract_path, 'bin', 'settings.json')).read() for i in self.settings.keys(): json2[i] = self.settings.get(i, json2.get(i, '')) + json2['version'] = data.get('version', settings.version) self.settings = json2 shutil.copytree(os.path.join(extract_path, 'bin'), os.path.join(LOCALDIR, 'bin2'), dirs_exist_ok=True)