diff --git a/forzamotorsport/forzams.py b/forzamotorsport/forzams.py index a755755..a9a58e2 100644 --- a/forzamotorsport/forzams.py +++ b/forzamotorsport/forzams.py @@ -44,7 +44,7 @@ def run_benchmark() -> tuple[float]: setup_start_time = time.time() am = ArtifactManager(LOG_DIRECTORY) - time.sleep(40) + time.sleep(50) # Make sure the game started correctly if kerasService.wait_for_word(word="play", timeout=30, interval=1) is None: diff --git a/harness_utils/steam.py b/harness_utils/steam.py index ece087d..592abca 100644 --- a/harness_utils/steam.py +++ b/harness_utils/steam.py @@ -83,7 +83,7 @@ def exec_steam_game(game_id: int, steam_path=None, game_params=None) -> Popen: def get_build_id(game_id: int) -> str: """Gets the build ID of a game from the Steam installation directory""" - game_folder = Path(get_steamapps_common_path()) / "../" / f"appmanifest_{game_id}.acf" + game_folder = Path(get_app_install_location(game_id)) / "../" / "../" / f"appmanifest_{game_id}.acf" if not game_folder.exists(): logging.warning("Game folder not found when looking for game version") return None