[game-data-packager] 06/12: runtime: Find unreal.missing-data.txt when running unreal-gold

Simon McVittie smcv at debian.org
Mon Jul 3 22:42:14 UTC 2017


This is an automated email from the git hooks/post-receive script.

smcv pushed a commit to branch master
in repository game-data-packager.

commit 6bef07d995565e81a4f611c8514692bf2eaf2622
Author: Simon McVittie <smcv at debian.org>
Date:   Mon Jul 3 11:07:08 2017 +0100

    runtime: Find unreal.missing-data.txt when running unreal-gold
---
 runtime/gdp_launcher_base.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/runtime/gdp_launcher_base.py b/runtime/gdp_launcher_base.py
index 107858e..490be3f 100755
--- a/runtime/gdp_launcher_base.py
+++ b/runtime/gdp_launcher_base.py
@@ -438,7 +438,9 @@ class Launcher:
         raise AssertionError('os.execve should never return')
 
     def load_text(self, filename, placeholder):
-        for f in ('%s.%s' % (self.id, filename), filename):
+        for f in ('%s.%s' % (self.id, filename),
+                '%s.%s' % (self.game, filename),
+                filename):
             try:
                 path = os.path.join(RUNTIME_SOURCE, f)
                 text = open(path).read()

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/game-data-packager.git



More information about the Pkg-games-commits mailing list