From 660cec98a00a9a86c1038bbf400976fc3bf180a2 Mon Sep 17 00:00:00 2001 From: Mips96 <57763469+Mips96@users.noreply.github.com> Date: Sun, 2 Oct 2022 14:49:50 -0400 Subject: [PATCH] Fixed duplicate file handling bug Also made a variable for version number --- main.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 8acd83b..93549d9 100644 --- a/main.py +++ b/main.py @@ -34,6 +34,8 @@ from time import sleep from datetime import datetime +versionNum = 1.12 + progFolder = getCurrFolder() sys.path.append(progFolder) @@ -1120,7 +1122,7 @@ def renamingProcess(self, root, file, isNoIntro, headerLength, crcToGameName, al i = 1 while True: duplicateName = dnStart+str(i)+")" - duplicatePath = path.join(root, duplicateName) + duplicatePath = path.join(root, duplicateName+currFileExt) if not path.exists(duplicatePath): break i += 1 @@ -2045,7 +2047,7 @@ def menu_viewHelp(self): showinfo("Help", "Hover over certain options for further details about them. You can also click the \"?\" button on some pages for more information.") def menu_viewAbout(self): - showinfo("About", "EzRO Rom Organizer v1.11\nhttps://github.com/Mips96/EzRO-gui\n\nQuestions? Bug reports? Feel free to leave an issue on the project GitHub!") + showinfo("About", "EzRO Rom Organizer v"+str(versionNum)+"\nhttps://github.com/Mips96/EzRO-gui\n\nQuestions? Bug reports? Feel free to leave an issue on the project GitHub!") def menu_viewExternalLibraries(self): showinfo("External Libraries", "ttkScrollableNotebook\nhttps://github.com/muhammeteminturgut/ttkScrollableNotebook\nLicensed under GPL-3.0")