[game-data-packager] 12/14: launcher: add support for launching a SMP/threaded engine
Simon McVittie
smcv at debian.org
Fri Oct 14 00:09:50 UTC 2016
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 5538590f997f357437e83569ffb1e9e14b944530
Author: Simon McVittie <smcv at debian.org>
Date: Wed Oct 12 11:35:20 2016 +0100
launcher: add support for launching a SMP/threaded engine
For feature parity with quake4 and etcw.
---
runtime/launcher.py | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/runtime/launcher.py b/runtime/launcher.py
index a22706a..eb76ade 100755
--- a/runtime/launcher.py
+++ b/runtime/launcher.py
@@ -188,6 +188,8 @@ class Launcher:
help='use the specified game engine, if supported')
parser.add_argument('--expansion', default=None,
help='expansion to launch')
+ parser.add_argument('--smp', default=False, action='store_true',
+ help='use a multi-threaded game engine, if supported')
parser.add_argument('arguments', nargs='*',
help='arguments for the launched game')
self.args = parser.parse_args(argv)
@@ -242,6 +244,9 @@ class Launcher:
else:
self.engines = []
+ if self.args.smp and 'smp_engine' in self.data:
+ self.engines.insert(0, self.data['smp_engine'])
+
self.engine = None
self.base_directories = list(map(expand,
--
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