This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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 |