SHA256
1
0
forked from pool/doxygen
doxygen/res2cc_sort_resources.diff

16 lines
619 B
Diff

--- src/res2cc_cmd.py_orig 2016-05-10 21:51:52.000000000 +0200
+++ src/res2cc_cmd.py 2017-01-23 23:54:53.499507342 +0100
@@ -98,10 +98,11 @@
directory = sys.argv[1]
files = []
for dirName, subdirList, fileList in walk(directory):
- for fname in sorted(fileList):
+ for fname in fileList:
subdir = dirName[len(directory)+1:] if dirName.startswith(directory) else dirName
if subdir:
files.append(File.factory(directory,subdir,fname))
+ files.sort(key=lambda f: f.subdir + "/" + f.fileName)
outputFile = open(sys.argv[2],"w")
print("#include \"resourcemgr.h\"\n",file=outputFile)
for f in files: