Skip to content

Instantly share code, notes, and snippets.

@tlentulen
tlentulen / patch_richpresence.py
Created July 25, 2026 20:58
cyberpunk2077-mac-gogrichpresence-fix
#!/usr/bin/env python3
"""
patch_richpresence.py v3 — Cyberpunk 2077 (macOS, GOG build)
Verified against the real libGameServicesGOG.dylib (80 KB, 34 exports, links
against @rpath/libGalaxy.dylib).
What the library actually does:
_SetRichPresence (0x1528) is a 5-instruction thunk that tail-calls