mirror of
https://github.com/LTTLabsOSS/markbench-tests.git
synced 2026-01-08 05:33:52 -05:00
Updated steam getbuildid to be more flexible
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user