aboutsummaryrefslogtreecommitdiff
path: root/gui
diff options
context:
space:
mode:
authorJohannes Schickel2014-06-05 03:30:32 +0200
committerJohannes Schickel2014-06-05 03:33:22 +0200
commiteac2f789fe7ec537f3d911587c89200ab4ed53a5 (patch)
tree7b772df4449a913696ba48f24f96fe5c7890753e /gui
parent81be074d38e23dcec5da353cfc0254b2fffe9aef (diff)
downloadscummvm-rg350-eac2f789fe7ec537f3d911587c89200ab4ed53a5.tar.gz
scummvm-rg350-eac2f789fe7ec537f3d911587c89200ab4ed53a5.tar.bz2
scummvm-rg350-eac2f789fe7ec537f3d911587c89200ab4ed53a5.zip
GUI: Use sorted file list in scummtheme.py.
This will (hopefully) reduce the amount of changes when recreating the themes because the order in which files will be processed is the same unless the sorting differs on systems...
Diffstat (limited to 'gui')
-rwxr-xr-xgui/themes/scummtheme.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/gui/themes/scummtheme.py b/gui/themes/scummtheme.py
index 524e91468e..94dc08f1ef 100755
--- a/gui/themes/scummtheme.py
+++ b/gui/themes/scummtheme.py
@@ -19,7 +19,9 @@ def buildTheme(themeName):
zf.write('THEMERC', './THEMERC')
- for filename in os.listdir('.'):
+ filenames = os.listdir('.')
+ filenames.sort()
+ for filename in filenames:
if os.path.isfile(filename) and not filename[0] == '.' and filename.endswith(THEME_FILE_EXTENSIONS):
zf.write(filename, './' + filename)
print (" Adding file: " + filename)
@@ -65,7 +67,9 @@ def buildDefTheme(themeName):
def_file.write(""" "<?xml version = '1.0'?>"\n""")
strlitcount = 24
- for filename in os.listdir(themeName):
+ filenames = os.listdir(themeName)
+ filenames.sort()
+ for filename in filenames:
filename = os.path.join(themeName, filename)
if os.path.isfile(filename) and filename.endswith(".stx"):
theme_file = open(filename, "r")