Many games have been ported from Windows to Mac, including Cyberpunk 2077, Diablo IV, Hogwarts Legacy, Sonic Omens, Elden Ring, and SpongeBob SquarePants: The Cosmic Shake.Games run with FPS limits due to the way graphics are rendered by Apple processors.Added to macOS Sonoma, the game mode is not activated, namely, it would allow resources to be allocated to increase the performance of games.
As it turned out, ported versions of games work not only with the beta version of macOS Sonoma, but also with macOS Ventura.Zavtracast shared a guide that walks you step by step on how to use the porting tool (using Diablo IV as an example).
1) Install Xcode 15 CLI Tools:
• Let’s go here https://developer.apple.com/download/applications/ and find XCode 15 beta, click View Downloads there.
• Find Command Line Tools for Xcode 15 beta, click View details, find and download Command Line_Tools_for_Xcode_15_beta.dmg, then install.
2) Install Game porting toolkit
• Go to https://developer.apple.com/download/all/?q=game%20porting%20toolkit, find Game porting toolkit beta, click on View details and download Game porting toolkit beta.dmg, then install it.Do not unmount dmgshki after installation!
3) Install and configure Homebrew
• Since the Game Porting Toolkit runs on the Rosetta 2 virtualization layer, you need to update it to the latest version, so write this command in the Terminal:
softwareupdate –install-rosetta
• Next you need to go to the x86_64 shell in the terminal and do the following steps from there:
arch -x86_64 zsh
• Install Homebrew in x86_64 version:
/bin/bash -c “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)”;
• After installation, let’s make sure that everything is filled in the right folder – /usr/local/bin/brew, if this is not the case, then you will need to use the instructions (appear at the end after installation) to transfer.Check with this command:
which brew
• Connect to the Apple Homebrew repository:
brew tap apple/apple http://github.com/apple/homebrew-apple
• Set the game-porting-toolkit formula.Keep in mind that the next command will download and install two fat projects for you, this can take up to an HOUR of time.Team:
brew -v install apple/apple/game-porting-toolkit
4) Set Wine prefix and install Game Porting Toolkit there
• Create a new Wine prefix called my-game-prefix, it will be in your main directory:
WINEPREFIX=~/my-game-prefix `brew –prefix game-porting-toolkit`/bin/wine64 winecfg
• The configurator of your “bottle” will appear, change the version of Windows to 10.
• Click Apply and then OK to exit winecfg.
• Copy the Game Porting Toolkit libraries inside your new bottle.Don’t forget that the dmg from the beginning of the instruction must be mounted on the system:
ditto /Volumes/Game Porting Toolkit-1.0/lib/ `brew –prefix game-porting-toolkit`/lib/
5) Install Battle.net and run D4
• Download the installer from here: https://www.blizzard.com/download/confirmation?platform=windows&locale=en_US&product…
• Copy it to our bottle:
cp ~/Downloads/Battle.net-Setup.exe ~/my-game-prefix/drive_c/users/crossover/Downloads/
• In order for Diablo IV to work, you need to update the version of the Windows build through the registry, three commands one after the other:
WINEPREFIX=~/my-game-prefix `brew –prefix game-porting-toolkit`/bin/wine64 reg add ‘HKEY_LOCAL_MACHINESoftwareMicrosoftWindows NTCurrentVersion’ /v CurrentBuild /t REG_SZ /d 19042 /f
WINEPREFIX=~/my-game-prefix `brew –prefix game-porting-toolkit`/bin/wine64 reg add ‘HKEY_LOCAL_MACHINESoftwareMicrosoftWindows NTCurrentVersion’ /v CurrentBuildNumber /t REG_SZ /d 19042 /f
WINEPREFIX=~/my-game-prefix `brew –prefix game-porting-toolkit`/bin/wineserver -k
• Run the Battle.net installer:
/Volumes/Game Porting Toolkit-1.0/gameportingtoolkit ~/my-game-prefix “C:userscrossoverDownloadsBattle.net-Setup.exe”
• Launch Battle.net itself:
/Volumes/Game Porting Toolkit-1.0/gameportingtoolkit ~/my-game-prefix “C:userscrossoverProgram Files (x86)Battle.netBattle.net.exe”
• In the same way, you can launch basically any game through the following command:
/Volumes/Game Porting Toolkit-1.0/gameportingtoolkit ~/my-game-prefix “C:userscrossoverProgram FilesMyGameMyGame.exe”
• If you don’t need a technical overlay, then:
/Volumes/Game Porting Toolkit-1.0/gameportingtoolkit-no-hud ~/my-game-prefix “C:userscrossoverProgram FilesMyGameMyGame.exe”