Skip to content

Commit

Permalink
Fixed duplicate file handling bug
Browse files Browse the repository at this point in the history
Also made a variable for version number
  • Loading branch information
Mode8fx committed Oct 2, 2022
1 parent 31202c9 commit 660cec9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@
from time import sleep
from datetime import datetime

versionNum = 1.12

progFolder = getCurrFolder()
sys.path.append(progFolder)

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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")
Expand Down

0 comments on commit 660cec9

Please sign in to comment.