more improvements
Marco Andronaco andronacomarco@gmail.com
Tue, 05 Jul 2022 23:25:32 +0200
4 files changed,
7 insertions(+),
1 deletions(-)
M
Constants.py
→
Constants.py
@@ -1,10 +1,12 @@
#!/usr/bin/python3 PATCH_VERSION = '1.1.1' -FINAL_ROM_NAME = f'Mother 1+2 [T+Ita{patch_version}].gba' +FINAL_ROM_NAME = f'Mother 1+2 [T+Ita{PATCH_VERSION}].gba' STATUS_START = "Benvenutə al patcher per Mother 1+2." +STATUS_PRESET = "Preset applicato." STATUS_MD5 = "MD5 verificato." +VAR_WINDOW_TITLE = "Mother 1+2 Patcher by Earthbound Café" VAR_FILEPICKER = "ROM giapponese di Mother 1+2" WARNING_TITLE = "Attenzione"
M
Functions.py
→
Functions.py
@@ -4,6 +4,8 @@ from tkinter.messagebox import showwarning
import Constants def check_rom(filename): + if filename == '': + return False with open(filename, 'rb') as f: file_hash = md5() while chunk := f.read(8192):
M
patcher.py
→
patcher.py
@@ -22,5 +22,6 @@ if(check_rom(filename)):
baserom = filename root = tk.Tk() + root.title(Constants.VAR_WINDOW_TITLE) app = PatcherApp(root, baserom) app.run()