all repos — m12-patcher @ 268b79594cfe9d4559134b38a2cbd9686440eaac

more improvements
Marco Andronaco andronacomarco@gmail.com
Tue, 05 Jul 2022 23:25:32 +0200
commit

268b79594cfe9d4559134b38a2cbd9686440eaac

parent

95fbc6f39894be2461591d9423a3260fbec726b2

4 files changed, 7 insertions(+), 1 deletions(-)

jump to
M Constants.pyConstants.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.pyFunctions.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 Gui.pyGui.py

@@ -69,6 +69,7 @@ self.browse_path.set(fn)

def on_change_preset(self, option): new_vars = Constants.PRESETS[option] + self.set_progress(0, Constants.STATUS_PRESET) for key in new_vars.keys(): getattr(self, key).set(new_vars[key])
M patcher.pypatcher.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()