Skip to content

Instantly share code, notes, and snippets.

View brunofunnie's full-sized avatar

Bruno Funnie brunofunnie

  • BC Software & Consuting
  • São Paulo
  • 03:30 (UTC -03:00)
  • LinkedIn in/bruoliveira
View GitHub Profile
@brunofunnie
brunofunnie / patch-corekeeper-macos.sh
Created August 27, 2026 09:00 — forked from MantasMikal/patch-corekeeper-macos.sh
Fix CoreKeeper saving on MacOS CrossOver/Wine
#!/bin/bash
set -euo pipefail
# Core Keeper Save Fix for Wine on macOS — CrossOver, Sikarugir, Kegworks, Whisky
# Patches StandaloneFilesystem.Write to bypass Wine-incompatible File.Replace/File.Move calls
# Usage: ./patch-corekeeper-macos.sh [--list] [--restore] [--game-dir DIR]
#
# The patch is a managed-assembly rewrite (Mono.Cecil, running natively on
# macOS) against a DLL inside the game's own install directory, so it does not
# care which Wine front-end runs the game. Only the hunt for the Windows