Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: gta v trying to init steamapi for non-steam entries #134

Merged
merged 1 commit into from
Sep 20, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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")
Loading