Updated steam getbuildid to be more flexible

This commit is contained in:
J-Doiron
2024-12-23 17:25:20 -08:00
parent c8219dd0dc
commit 4ccdfd7ee6
2 changed files with 2 additions and 2 deletions

View File

@@ -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:

View File

@@ -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