summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicEastvillage <nicoesterby@gmail.com>2021-10-02 14:20:05 +0200
committerNicEastvillage <nicoesterby@gmail.com>2021-10-02 14:20:05 +0200
commitcb219a9a08f97aec0fed0f018b37ae2813b985e6 (patch)
treedc9c69b76ec029198e23a82e27fb0910d9ab0c61
parent2ada26e595beff172bf79f56d66842451981933e (diff)
Add launcher preference option to setup manager context.setup_man_context_launcher
-rw-r--r--src/main/python/rlbot/setup_manager.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/python/rlbot/setup_manager.py b/src/main/python/rlbot/setup_manager.py
index c9fd333e..8ec8bd73 100644
--- a/src/main/python/rlbot/setup_manager.py
+++ b/src/main/python/rlbot/setup_manager.py
@@ -83,7 +83,7 @@ DEFAULT_LAUNCHER_PREFERENCE = RocketLeagueLauncherPreference(RocketLeagueLaunche
@contextmanager
-def setup_manager_context():
+def setup_manager_context(launcher_preference: RocketLeagueLauncherPreference = None):
"""
Creates a initialized context manager which shuts down at the end of the
`with` block.
@@ -94,7 +94,7 @@ def setup_manager_context():
... # ... Run match
"""
setup_manager = SetupManager()
- setup_manager.connect_to_game()
+ setup_manager.connect_to_game(launcher_preference)
try:
yield setup_manager
except Exception as e: