Skip to content

Commit

Permalink
Merge pull request Open-Wine-Components#134 from Open-Wine-Components…
Browse files Browse the repository at this point in the history
…/fix/non-steam-gtav

fix: gta v trying to init steamapi for non-steam entries
  • Loading branch information
R1kaB3rN authored Sep 20, 2024
2 parents 275d229 + 9a155e2 commit d64db86
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions gamefixes-steam/271590.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
"""Game fix for GTAV"""

import os
from protonfixes import util


def main() -> None:
"""Game fix for GTAV"""
# Set SteamGameId so that non-steam versions can pick up steam-specific fixes in proton's wine code
util.set_environment('SteamGameId', '271590')
# Rockstar reads SteamAppId and tries to init Steam API
# We want to avoid this when running from Epic for example
game_id = os.environ.get("UMU_ID")
if game_id and not game_id.isnumeric():
util.del_environment("SteamAppId")

0 comments on commit d64db86

Please sign in to comment.