Skip to content

Commit

Permalink
fix: gta v trying to init steamapi for non-steam entries
Browse files Browse the repository at this point in the history
  • Loading branch information
imLinguin committed Sep 20, 2024
1 parent cb9b6c8 commit 9a155e2
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 9a155e2

Please sign in to comment.