Update generate_ld.py

This commit is contained in:
Fazana
2021-12-10 09:45:11 +00:00
parent 68d16f15f1
commit 7645778097
+2 -5
View File
@@ -228,11 +228,8 @@ class GenerateLD:
files.sort(key = lambda x: (x[2], x[3])) # Sort tuples by RAM address and prioritize src files first.
return files
if os.path.exists('./dkr.ld'):
print("")
else:
if os.path.exists('./assets/' + VERSION + '/md5.txt'):
os.remove('./assets/' + VERSION + '/md5.txt')
if not os.path.exists('./dkr.ld') and os.path.exists('./assets/' + VERSION + '/md5.txt'):
os.remove('./assets/' + VERSION + '/md5.txt')
if os.path.exists('./assets/' + VERSION + '/md5.txt'):
with open('./assets/' + VERSION + '/md5.txt', "rt") as a_file: