<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.applegamingwiki.com/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Andytizer</id>
	<title>AppleGamingWiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://www.applegamingwiki.com/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Andytizer"/>
	<link rel="alternate" type="text/html" href="https://www.applegamingwiki.com/wiki/Special:Contributions/Andytizer"/>
	<updated>2026-04-05T15:55:26Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.35.7</generator>
	<entry>
		<id>https://www.applegamingwiki.com/w/index.php?title=Horizon_Forbidden_West&amp;diff=9666</id>
		<title>Horizon Forbidden West</title>
		<link rel="alternate" type="text/html" href="https://www.applegamingwiki.com/w/index.php?title=Horizon_Forbidden_West&amp;diff=9666"/>
		<updated>2024-09-28T16:21:36Z</updated>

		<summary type="html">&lt;p&gt;Andytizer: /* Instructions */ Updated with PCGW file link&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Infobox game&lt;br /&gt;
|cover        = Horizon_Forbidden_West_cover.png&lt;br /&gt;
|developers   = &lt;br /&gt;
{{Infobox game/row/developer|Guerrilla}}&lt;br /&gt;
|publishers   = &lt;br /&gt;
{{Infobox game/row/publisher|PlayStation PC LLC}}&lt;br /&gt;
|engines      = &lt;br /&gt;
{{Infobox game/row/engine|Decima}}&lt;br /&gt;
|release dates= &lt;br /&gt;
{{Infobox game/row/date|PS4, PS5|February 18, 2022}}&lt;br /&gt;
{{Infobox game/row/date|Windows|March 21, 2024}}&lt;br /&gt;
|reception    =&lt;br /&gt;
{{Infobox game/row/reception|Metacritic|horizon-forbidden-west-complete-edition|89}}&lt;br /&gt;
{{Infobox game/row/reception|Opencritic|12361/horizon-forbidden-west|88}}&lt;br /&gt;
{{Infobox game/row/reception|IGDB|horizon-forbidden-west|86}}&lt;br /&gt;
|taxonomy     =&lt;br /&gt;
{{Infobox game/row/taxonomy/monetization      | | ref= One-time game purchase}}&lt;br /&gt;
{{Infobox game/row/taxonomy/microtransactions | | ref= }}&lt;br /&gt;
{{Infobox game/row/taxonomy/modes             | Singleplayer}}&lt;br /&gt;
{{Infobox game/row/taxonomy/pacing            | Real-time }}&lt;br /&gt;
{{Infobox game/row/taxonomy/perspectives      | Third-person }}&lt;br /&gt;
{{Infobox game/row/taxonomy/controls          | Direct control }}&lt;br /&gt;
{{Infobox game/row/taxonomy/genres            | Action, ARPG, Open world}}&lt;br /&gt;
{{Infobox game/row/taxonomy/sports            | }}&lt;br /&gt;
{{Infobox game/row/taxonomy/vehicles          | Robot}}&lt;br /&gt;
{{Infobox game/row/taxonomy/art styles        | Realistic}}&lt;br /&gt;
{{Infobox game/row/taxonomy/themes            | Post-apocalyptic, Sci-fi}}&lt;br /&gt;
{{Infobox game/row/taxonomy/series            | Horizon}}&lt;br /&gt;
|steam appid  = 1151640&lt;br /&gt;
|gogcom id    = &lt;br /&gt;
|gogcom id side = &lt;br /&gt;
|official site= https://www.playstation.com/en-us/horizon/&lt;br /&gt;
|hltb         =&lt;br /&gt;
|igdb         = &lt;br /&gt;
|strategywiki = &lt;br /&gt;
|mobygames    = &lt;br /&gt;
|wikipedia    =&lt;br /&gt;
|winehq       = &lt;br /&gt;
|license      = &lt;br /&gt;
|pcgamingwiki =&lt;br /&gt;
|codeweavers  =&lt;br /&gt;
|asg          =&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
{{Compatibility/macOS&lt;br /&gt;
|native               = na&lt;br /&gt;
|native notes         = &lt;br /&gt;
|rosetta 2            = na&lt;br /&gt;
|rosetta 2 notes      = &lt;br /&gt;
|ios-ipados app       = na&lt;br /&gt;
|ios-ipados app notes = &lt;br /&gt;
|crossover            = menu&lt;br /&gt;
|crossover notes      = F16C instructions error. Update: Runs after patch&lt;br /&gt;
&amp;lt;ref&amp;gt;{{Refdevice&lt;br /&gt;
|user=loginlogin2&lt;br /&gt;
|date=2024-06-14&lt;br /&gt;
|device=MacBook M1 Pro 16&amp;quot; 2021 16 GB RAM&lt;br /&gt;
|os=macOS Sequoia&lt;br /&gt;
|method=Crossover 24-GPTK-2&lt;br /&gt;
|version=&lt;br /&gt;
|resolution=1728x1117&lt;br /&gt;
|settings=Very High&lt;br /&gt;
|framerate= 25-30&lt;br /&gt;
|controller=&lt;br /&gt;
|comment=&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/ref&amp;gt;&lt;br /&gt;
|windows 10 arm       = na&lt;br /&gt;
|wine                 = na&lt;br /&gt;
|wine notes           = &lt;br /&gt;
|parallels            = na&lt;br /&gt;
|parallels notes      = &lt;br /&gt;
|windows 10 arm       = na&lt;br /&gt;
|windows 10 arm notes = &lt;br /&gt;
|linux arm            = na&lt;br /&gt;
|linux arm notes      = &lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==Gameplay videos==&lt;br /&gt;
&lt;br /&gt;
===Instructions===&lt;br /&gt;
&lt;br /&gt;
{{Fixbox|description=F16C instructions fix|fix=&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
Patch for 1.5.80 game version - [https://community.pcgamingwiki.com/files/file/3114-horizon-forbidden-west-f16c-instructions-fix/ HorizonForbiddenWest_1.5.80_F16Patch]&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
{{References}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Games]]&lt;/div&gt;</summary>
		<author><name>Andytizer</name></author>
	</entry>
	<entry>
		<id>https://www.applegamingwiki.com/w/index.php?title=Ghost_of_Tsushima_Director%27s_Cut&amp;diff=9665</id>
		<title>Ghost of Tsushima Director's Cut</title>
		<link rel="alternate" type="text/html" href="https://www.applegamingwiki.com/w/index.php?title=Ghost_of_Tsushima_Director%27s_Cut&amp;diff=9665"/>
		<updated>2024-09-28T16:21:02Z</updated>

		<summary type="html">&lt;p&gt;Andytizer: /* F16C instructions fix */ updated with PCGW file link&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Infobox game&lt;br /&gt;
|cover        = Ghost_of_Tsushima_Director's_Cut_cover.jpg&lt;br /&gt;
|developers   = &lt;br /&gt;
{{Infobox game/row/developer|Sucker Punch Productions}}&lt;br /&gt;
{{Infobox game/row/porter|Nixxes Software|Windows}}&lt;br /&gt;
|publishers   = &lt;br /&gt;
{{Infobox game/row/publisher|PlayStation PC}}&lt;br /&gt;
|engines      = &lt;br /&gt;
|release dates=&lt;br /&gt;
{{Infobox game/row/date|PlayStation|August 20, 2021}}&lt;br /&gt;
{{Infobox game/row/date|PC|May 16, 2024}}&lt;br /&gt;
|reception    = &lt;br /&gt;
{{Infobox game/row/reception|Metacritic|ghost-of-tsushima-directors-cut|88}}&lt;br /&gt;
{{Infobox game/row/reception|OpenCritic|9592/ghost-of-tsushima|84}}&lt;br /&gt;
{{Infobox game/row/reception|IGDB|ghost-of-tsushima-directors-cut|92}}&lt;br /&gt;
|taxonomy     =&lt;br /&gt;
{{Infobox game/row/taxonomy/series            | }}&lt;br /&gt;
|steam appid  = 2215430&lt;br /&gt;
|steam appid side = &lt;br /&gt;
|gogcom id    = &lt;br /&gt;
|gogcom id side = &lt;br /&gt;
|official site= https://www.playstation.com/en-us/games/ghost-of-tsushima/pc&lt;br /&gt;
|hltb         = 51225&lt;br /&gt;
|igdb         = ghost-of-tsushima-directors-cut&lt;br /&gt;
|mobygames    = 169624&lt;br /&gt;
|strategywiki = Ghost of Tsushima&lt;br /&gt;
|wikipedia    = Ghost of Tsushima&lt;br /&gt;
|winehq       = &lt;br /&gt;
|license      = commercial&lt;br /&gt;
|pcgamingwiki = Ghost_of_Tsushima_Director's_Cut&lt;br /&gt;
|codeweavers  = ghost-of-tsushima-directors-cut&lt;br /&gt;
|asg          =&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
'''General information'''&lt;br /&gt;
{{mm}} [https://steamcommunity.com/app/2215430/discussions Steam Community Discussions]&lt;br /&gt;
{{mm}} [https://www.ign.com/wikis/ghost-of-tsushima Ghost of Tsushima Guide]&lt;br /&gt;
{{mm}} [https://www.reddit.com/r/GhostofTsushima Ghost of Tsushima Subreddit]&lt;br /&gt;
&lt;br /&gt;
{{Compatibility/macOS&lt;br /&gt;
|native               = na&lt;br /&gt;
|native notes         = &lt;br /&gt;
|rosetta 2            = perfect&lt;br /&gt;
|rosetta 2 notes      = &amp;lt;ref name=Lynkos&amp;gt;&amp;lt;/ref&amp;gt;&lt;br /&gt;
|ios-ipados app       = na&lt;br /&gt;
|ios-ipados app notes = &lt;br /&gt;
|crossover            = Playable&lt;br /&gt;
|crossover notes      = F16C instructions error. Update: Runs well after patch, there are only problems with faces in cutscenes (it is translation of Rosetta problem, because Windows users don't have this problem, tested personally) and sometimes the armor moves incorrectly.&lt;br /&gt;
&amp;lt;ref&amp;gt;{{Refdevice&lt;br /&gt;
|user=VladimirProg&lt;br /&gt;
|date=2024-09-25&lt;br /&gt;
|device=MacBook M1 Pro 16&amp;quot; 2021 16 GB RAM&lt;br /&gt;
|os=macOS Sequoia&lt;br /&gt;
|method=Crossover 24-GPTK-2 b3&lt;br /&gt;
|version=&lt;br /&gt;
|resolution=1920x1080&lt;br /&gt;
|settings=Low&lt;br /&gt;
|framerate=34 with FSR&lt;br /&gt;
|controller=&lt;br /&gt;
|comment= &lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/ref&amp;gt;&lt;br /&gt;
|wine                 = perfect&lt;br /&gt;
|wine notes           = Plays perfectly after applying F16C Patch (see [[#F16C_instructions_fix]]).&amp;lt;ref name=Lynkos&amp;gt;{{Refdevice|user=Lynkos|date=2024-09-26|device=MacBook Pro M3 Max 14&amp;quot; 64 GB RAM|os=macOS 15.0|method=[[Game Porting Toolkit]] 2 Beta 3|version=|store=Steam|resolution=3024x1964|settings=Very High|framerate=~50 FPS|controller=Xbox One Controller|url=|comment=Environment variables include &amp;lt;code&amp;gt;D3DM_SUPPORT_DXR=1&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;ROSETTA_ADVERTISE_AVX=1&amp;lt;/code&amp;gt;}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
|parallels            = unknown&lt;br /&gt;
|parallels notes      = &lt;br /&gt;
|windows 10 arm       = na&lt;br /&gt;
|windows 10 arm notes = &lt;br /&gt;
|linux arm            = na&lt;br /&gt;
|linux arm notes      = &lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==Availability==&lt;br /&gt;
{{Availability}}&lt;br /&gt;
&lt;br /&gt;
==Gameplay videos==&lt;br /&gt;
{{#widget:YouTube|id=1Aq4DPgvHbA}}&lt;br /&gt;
&lt;br /&gt;
==Issues fixed==&lt;br /&gt;
===F16C instructions fix===&lt;br /&gt;
''Error when launching the game [via Steam] that says:''&lt;br /&gt;
&amp;lt;blockquote&amp;gt;&amp;lt;i&amp;gt;This game requires a CPU that supports F16C instructions.&amp;lt;/i&amp;gt;&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
{{Fixbox|description=Use Patch v1053.7.809.1937|ref=&amp;lt;ref&amp;gt;{{Refurl|url=https://www.reddit.com/r/macgaming/comments/1fp9hb0/fully_playable_patch_for_the_game_ghost_of|title=Reddit: &amp;quot;Fully playable patch for the game Ghost Of Tsushima&amp;quot;|date=2024-09-26}}&amp;lt;/ref&amp;gt;|fix=&lt;br /&gt;
# Download [https://community.pcgamingwiki.com/files/file/3115-ghost-of-tsushima-f16c-instructions-fix/ patch for 1053.7.809.1937 game version] to the directory containing &amp;lt;code&amp;gt;GhostOfTsushima.exe&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;e.g. &amp;lt;code&amp;gt;C:\Program Files (x86)\Steam\steamapps\common\Ghost of Tsushima DIRECTOR'S CUT&amp;lt;/code&amp;gt;&lt;br /&gt;
# Rename the original &amp;lt;code&amp;gt;GhostOfTsushima.exe&amp;lt;/code&amp;gt; file to something else&amp;lt;br&amp;gt;e.g. &amp;lt;code&amp;gt;GhostOfTsushima_orig.exe&amp;lt;/code&amp;gt;&lt;br /&gt;
# Rename the recently downloaded patch to &amp;lt;code&amp;gt;GhostOfTsushima.exe&amp;lt;/code&amp;gt;&lt;br /&gt;
This patch became available thanks to the support of Andrew Tsai [https://www.youtube.com/@Andytizer YouTube]&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
{{References}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Games]]&lt;/div&gt;</summary>
		<author><name>Andytizer</name></author>
	</entry>
	<entry>
		<id>https://www.applegamingwiki.com/w/index.php?title=Sideloading_App_Store_games_onto_iPhone_and_iPad&amp;diff=9478</id>
		<title>Sideloading App Store games onto iPhone and iPad</title>
		<link rel="alternate" type="text/html" href="https://www.applegamingwiki.com/w/index.php?title=Sideloading_App_Store_games_onto_iPhone_and_iPad&amp;diff=9478"/>
		<updated>2024-09-10T08:49:53Z</updated>

		<summary type="html">&lt;p&gt;Andytizer: Blank&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Andytizer</name></author>
	</entry>
	<entry>
		<id>https://www.applegamingwiki.com/w/index.php?title=The_Witcher_3&amp;diff=7843</id>
		<title>The Witcher 3</title>
		<link rel="alternate" type="text/html" href="https://www.applegamingwiki.com/w/index.php?title=The_Witcher_3&amp;diff=7843"/>
		<updated>2023-06-14T21:02:43Z</updated>

		<summary type="html">&lt;p&gt;Andytizer: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Infobox game&lt;br /&gt;
|cover        = The Witcher 3 Wild Hunt - cover.jpg&lt;br /&gt;
|developers   = &lt;br /&gt;
{{Infobox game/row/developer|CD Projekt Red}}&lt;br /&gt;
|publishers   = &lt;br /&gt;
{{Infobox game/row/publisher|CD Projekt}}&lt;br /&gt;
|engines      = &lt;br /&gt;
{{Infobox game/row/engine|REDengine|name=REDengine 3}}&lt;br /&gt;
|release dates= &lt;br /&gt;
{{Infobox game/row/date|Windows|May 19, 2015}}&lt;br /&gt;
|reception    = &lt;br /&gt;
{{Infobox game/row/reception|Metacritic|the-witcher-3-wild-hunt|93}}&lt;br /&gt;
{{Infobox game/row/reception|OpenCritic|463/the-witcher-3-wild-hunt|92}}&lt;br /&gt;
{{Infobox game/row/reception|IGDB|the-witcher-3-wild-hunt|92}}&lt;br /&gt;
|taxonomy     =&lt;br /&gt;
{{Infobox game/row/taxonomy/monetization|expansion pack}}&lt;br /&gt;
{{Infobox game/row/taxonomy/series|The Witcher (series)}}&lt;br /&gt;
|steam appid  = 292030&lt;br /&gt;
|steam appid side = 355880, 499450, 378648&lt;br /&gt;
|gogcom id    = 1495134320&lt;br /&gt;
|gogcom id side = 1207664663,1207664643,1427195509,1441620909,1441355562,1427206931,1636895344,1640424747,1430743168&lt;br /&gt;
|official site= http://thewitcher.com/witcher3/&lt;br /&gt;
|hltb         = 10270&lt;br /&gt;
|strategywiki = &lt;br /&gt;
|mobygames    = witcher-3-wild-hunt&lt;br /&gt;
|wikipedia    = The Witcher 3: Wild Hunt&lt;br /&gt;
|winehq       = 16884&lt;br /&gt;
|license      = commercial&lt;br /&gt;
|pcgamingwiki = The_Witcher_3:_Wild_Hunt&lt;br /&gt;
|codeweavers  = the-witcher-3-wild-hunt&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
'''General information'''&lt;br /&gt;
{{mm}} [https://forums.cdprojektred.com/index.php?forums/the-witcher-series.22/ Official Forums]&lt;br /&gt;
{{mm}} [https://www.nexusmods.com/witcher3 The Witcher 3 Nexus Mods]&lt;br /&gt;
{{GOG.com links|1207664663|the_witcher_3_wild_hunt}}&lt;br /&gt;
{{mm}} [https://steamcommunity.com/app/292030/discussions/ Steam Community Discussions]&lt;br /&gt;
&lt;br /&gt;
{{Compatibility/macOS&lt;br /&gt;
|native               = na&lt;br /&gt;
|native notes         = &lt;br /&gt;
|rosetta 2            = na&lt;br /&gt;
|rosetta 2 notes      = &lt;br /&gt;
|ios-ipados app       = na&lt;br /&gt;
|ios-ipados app notes = &lt;br /&gt;
|crossover            = Playable&lt;br /&gt;
|crossover notes      = 1 or 2 type of enemies are invisible but they are very easy to kill.&amp;lt;ref&amp;gt;{{Refurl|url=https://github.com/doitsujin/dxvk/issues/582|title=Render issue with The Witcher 3 Wild Hunt · Issue #582 · doitsujin/dxvk · GitHub|date=2022-07-16|snippet=err: D3D11Device::CreateGeometryShaderWithStreamOutput: Not implemented. Sirens are one of the enemies in Witcher 3 that rely on Stream Output which DXVK currently can't implement.}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
|wine                 = Playable&lt;br /&gt;
|wine notes           = A few enemies are invisible and a few have bugged textures. Most notably the Hounds of the Wild Hunt are invisible in the first quest you meet them, the rotfiends are invisible in Velen and the sirens are invisible in Skellige. Skellige also has a lot of places in the coastline where the game becomes very glitchy.&amp;lt;ref&amp;gt;{{Refdevice|user=Exerra|date=2022-12-28|device=Mac Mini M1 2020 8GB RAM|os=macOS 12.2|method=PortingKit|version=1.32|store=GOG|resolution=1920x1080|settings=Medium|framerate=|controller=Xbox Series S|url=|title=Test|comment=NVIDIA Hairworks must be turned off, game crashes if the graphics quality is higher than the Medium preset and every postprocessing item can be turned on and still have the game be smooth (except motion blur). When using PortingKit the game does not exit when the button has been pressed in-game, it only closes the window. To exit fully, either go to PortingKit and kill all processes using the PortingKit GUI, or go to Activity Monitor and kill all the wine processes. If the game does not launch (wine process starts, then quits automatically) restart your computer and try again.}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
|parallels            = Perfect&lt;br /&gt;
|parallels notes      = &lt;br /&gt;
|windows 10 arm       = na&lt;br /&gt;
|windows 10 arm notes = &lt;br /&gt;
|linux arm            = na&lt;br /&gt;
|linux arm notes      = &lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==Availability==&lt;br /&gt;
{{Availability}}&lt;br /&gt;
&lt;br /&gt;
==Gameplay videos==&lt;br /&gt;
{{#widget:YouTube|id=G2f-uQ4NzSw}} {{#widget:YouTube|id=xpp7Vv8o8PQ}}&lt;br /&gt;
&lt;br /&gt;
==Notes==&lt;br /&gt;
DirectX 12 mode can be activated using the launch command: &amp;lt;code&amp;gt;--launcher-skip&amp;lt;/code&amp;gt;&lt;br /&gt;
{{References}}&lt;/div&gt;</summary>
		<author><name>Andytizer</name></author>
	</entry>
	<entry>
		<id>https://www.applegamingwiki.com/w/index.php?title=Game_Porting_Toolkit&amp;diff=7838</id>
		<title>Game Porting Toolkit</title>
		<link rel="alternate" type="text/html" href="https://www.applegamingwiki.com/w/index.php?title=Game_Porting_Toolkit&amp;diff=7838"/>
		<updated>2023-06-14T19:14:34Z</updated>

		<summary type="html">&lt;p&gt;Andytizer: /* My game won’t run because it requires Mono, .NET, or the MSVCRT runtime */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Image|Game Porting Toolkit.png|Released 6th June, 2023 at WWDC23.}}&lt;br /&gt;
&lt;br /&gt;
Game Porting Toolkit is Apple's new translation layer released on 6th June, 2023. Game Porting Toolkit ('''GPTK''') combines Wine with Apple's own D3DMetal which supports DirectX 11 and 12&amp;lt;ref&amp;gt;{{Refurl|url=https://mastodon.gamedev.place/@gavkar/110501451404624870|title=Gokhan Avkarogullari: &amp;quot;@yiningkarlli @aras @romainguy…&amp;quot; - Gamedev Mastodon}}&amp;lt;/ref&amp;gt;. This is a less user-friendly method of installing Windows games on Apple Silicon Macs compared to [[CrossOver]] or [[Parallels]], however it unlocks the ability to play many DirectX 12 games. A lot more games work using GPTK, however, games that use anti-cheat or aggressive DRMs generally don't work, along with games that require AVX/AVX 2, e.g. The Last of Us Part I.&lt;br /&gt;
&lt;br /&gt;
== Toolkit install instructions ==&lt;br /&gt;
=== Requirements ===&lt;br /&gt;
*macOS Sonoma should be used, currently it is in beta. You can download the pkg installer from [https://mrmacintosh.com/macos-sonoma-full-installer-database-download-directly-from-apple/ Mr Macintosh blog].&lt;br /&gt;
*macOS Ventura causes large numbers of issues with steamwebhelper.exe crashing so it isn't recommended, use the macOS Sonoma beta.&lt;br /&gt;
*Visit [https://developer.apple.com/downloads Apple Developer Downloads site], these files are now free to download use for any logged in Apple account.&lt;br /&gt;
**Search for Command Line Tools for Xcode 15 beta and download the dmg file, then install it. &lt;br /&gt;
*If you have an old version Xcode installed, remove it.&lt;br /&gt;
**Search for Game Porting Toolkit and download it. Open the dmg file and then run the pkg.&lt;br /&gt;
&lt;br /&gt;
=== Homebrew ===&lt;br /&gt;
Note: if you have ever installed Homebrew before, then it is advised to remove ARM64 Homebrew as this can interfere with this build process. Either use a Homebrew uninstall script or delete the folder &amp;lt;code&amp;gt;/opt/homebrew/bin&amp;lt;/code&amp;gt;. If you prefer to keep both ARM64 and x86 versions of brew installed, you may add a &amp;quot;brew-switcher&amp;quot; to your &amp;lt;code&amp;gt;.zshrc&amp;lt;/code&amp;gt; file to allow either version to be used depending on the active architecture. You may follow the steps at the end of this section after installing Brew to achieve this.&lt;br /&gt;
&lt;br /&gt;
Open Terminal (search in Spotlight on macOS).&lt;br /&gt;
&lt;br /&gt;
Install Rosetta:&lt;br /&gt;
&amp;lt;pre&amp;gt;softwareupdate --install-rosetta&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Enter an x86_64 shell to continue the following steps in a Rosetta environment. All subsequent commands should be run within this shell.&lt;br /&gt;
&amp;lt;pre&amp;gt;arch -x86_64 zsh&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Install the x86_64 version of Homebrew if you don't already have it.&lt;br /&gt;
&amp;lt;pre&amp;gt;/bin/bash -c &amp;quot;$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)&amp;quot;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Set the path:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
(echo; echo 'eval &amp;quot;$(/usr/local/bin/brew shellenv)&amp;quot;') &amp;gt;&amp;gt; /Users/$USER/.zprofile&lt;br /&gt;
eval &amp;quot;$(/usr/local/bin/brew shellenv)&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Make sure the brew command is on your path:&lt;br /&gt;
&amp;lt;pre&amp;gt;which brew&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If this command does not print &amp;lt;code&amp;gt;/usr/local/bin/brew&amp;lt;/code&amp;gt;, you should use this command:&lt;br /&gt;
&amp;lt;pre&amp;gt;export PATH=/usr/local/bin:${PATH}&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Fixbox|description=Optionally retain both ARM64 and x86 versions of Brew|ref=|collapsed=yes|fix=&lt;br /&gt;
(Optional) If you want to have both ARM64 and x86 versions of Brew installed, begin by editing your &amp;lt;code&amp;gt;.zshrc&amp;lt;/code&amp;gt; file:&lt;br /&gt;
&amp;lt;pre&amp;gt;nano ~/.zshrc&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Scroll down (by using the arrow keys or Control + V) to the bottom of the file, and paste the following script:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
if [ &amp;quot;$(arch)&amp;quot; = &amp;quot;arm64&amp;quot; ]; then&lt;br /&gt;
    eval &amp;quot;$(/opt/homebrew/bin/brew shellenv)&amp;quot;&lt;br /&gt;
else&lt;br /&gt;
    eval &amp;quot;$(/usr/local/bin/brew shellenv)&amp;quot;&lt;br /&gt;
fi&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You may now restart your terminal and use the following command to return to an x86_64 shell:&lt;br /&gt;
&amp;lt;pre&amp;gt;arch -x86_64 zsh&amp;lt;/pre&amp;gt;&lt;br /&gt;
Your shell will now select the right installation of Brew, depending on your architecture.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=== Build ===&lt;br /&gt;
Run this command to download Apple tap:&lt;br /&gt;
&amp;lt;pre&amp;gt;brew tap apple/apple http://github.com/apple/homebrew-apple&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Install the game-porting-toolkit formula. This formula downloads and compiles several large software projects. How long this takes will depend on the speed of your computer. It can take over 1 hour to complete depending on the speed of your Mac.&lt;br /&gt;
&amp;lt;pre&amp;gt;brew -v install apple/apple/game-porting-toolkit&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If during installation you see an error such as '''“Error: game-porting-toolkit: unknown or unsupported macOS version: :dunno”, your version of Homebrew doesn’t have macOS Sonoma support. Update to the latest version of Homebrew and try again.'''&lt;br /&gt;
&amp;lt;pre&amp;gt;brew update brew -v install apple/apple/game-porting-toolkit&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Preparing the toolkit ===&lt;br /&gt;
Make sure the Game Porting Toolkit dmg downloaded earlier is mounted at /Volumes/Game Porting Toolkit-1.0. Use this script to copy the Game Porting Toolkit library directory into Wine’s library directory.&lt;br /&gt;
&amp;lt;pre&amp;gt;ditto /Volumes/Game\ Porting\ Toolkit-1.0/lib/ `brew --prefix game-porting-toolkit`/lib/&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Put the 3 scripts from the Game Porting Toolkit DMG into here &amp;lt;code&amp;gt;/usr/local/bin&amp;lt;/code&amp;gt; using this command:&lt;br /&gt;
&amp;lt;pre&amp;gt;cp /Volumes/Game\ Porting\ Toolkit*/gameportingtoolkit* /usr/local/bin&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Wine prefix ===&lt;br /&gt;
A Wine prefix contains a virtual C: drive, similar to a Bottle in [[CrossOver]]. You will install the toolkit and your game into this virtual C: drive. Run the following command to create a new Wine prefix named my-game-prefix in your home directory. This will create a Wine prefix called &amp;lt;code&amp;gt;my-game-prefix&amp;lt;/code&amp;gt; but could be renamed to anything.&lt;br /&gt;
&amp;lt;pre&amp;gt;WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 winecfg&amp;lt;/pre&amp;gt;&lt;br /&gt;
*A “Wine configuration” window should appear on your screen.&lt;br /&gt;
*Change the version of Windows to Windows 10.&lt;br /&gt;
*Choose Apply and then OK to exit winecfg.&lt;br /&gt;
&lt;br /&gt;
If the “Wine configuration” window does not appear, and no new icon appears in the Dock, verify that you have correctly installed the x86_64 version of Homebrew as well as the game-porting-toolkit formula.&lt;br /&gt;
&lt;br /&gt;
Now you are ready to install a launcher or individual Windows games into this Wine prefix, see below.&lt;br /&gt;
&lt;br /&gt;
== Steam ==&lt;br /&gt;
Download the [https://cdn.cloudflare.steamstatic.com/client/installer/SteamSetup.exe Windows version of Steam] and place in your Downloads folder.&lt;br /&gt;
&lt;br /&gt;
'''Install Steam'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix ~/Downloads/SteamSetup.exe&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Run Steam'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix 'C:\Program Files (x86)/Steam/steam.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Log into Steam'''&lt;br /&gt;
&lt;br /&gt;
A common issue is that Steam will present with a blank black window.&lt;br /&gt;
&lt;br /&gt;
Alternate way of launching Steam (after installing):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
MTL_HUD_ENABLED=1 WINEESYNC=1 WINEPREFIX=~/my-game-prefix /usr/local/Cellar/game-porting-toolkit/1.0/bin/wine64 'C:\Program Files (x86)\Steam\steam.exe'&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If this continues then close the Terminal window and then re-open and try again, repeat until the login screen opens. Now you should be able to download and launch Windows games through Steam.&lt;br /&gt;
&lt;br /&gt;
== Battle.net ==&lt;br /&gt;
Download the [https://download.battle.net/en-gb/?platform=windows Windows version of Battle.net] and place in your Downloads folder.&lt;br /&gt;
&lt;br /&gt;
Make a new Wineprefix for Battle.net, you can choose to use &amp;lt;code&amp;gt;my-game-prefix&amp;lt;/code&amp;gt; or change this to anything else.&lt;br /&gt;
&amp;lt;pre&amp;gt;WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 winecfg&amp;lt;/pre&amp;gt;&lt;br /&gt;
*A “Wine configuration” window should appear on your screen.&lt;br /&gt;
*Change the version of Windows to &amp;lt;code&amp;gt;Windows 10&amp;lt;/code&amp;gt;.&lt;br /&gt;
*Choose Apply and then OK to exit winecfg.&lt;br /&gt;
&lt;br /&gt;
If you are running Diablo IV, then you need to run this script to update the Wineprefix to appear as a more recent version of Windows:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion' /v CurrentBuild /t REG_SZ /d 19042 /f&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion' /v CurrentBuildNumber /t REG_SZ /d 19042 /f&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wineserver -k&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Run Battle.net launcher'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix ~/Downloads/Battle.net-Setup.exe&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Be aware that there is an issue launching Battle.net once installed, the only current way to re-login is to 'install' the launcher again. &lt;br /&gt;
&lt;br /&gt;
Start individual game without the launcher using this command:&lt;br /&gt;
&amp;lt;pre&amp;gt;arch -x86_64 gameportingtoolkit-no-hud ~/my-game-prefix 'C:\Program Files (x86)\Diablo IV\Diablo IV Launcher.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Epic and GOG.com support with the Heroic Games Launcher ==&lt;br /&gt;
This is particularly useful because '''as it currently stands, the real Epic Games Launcher fails to install under the Game Porting Toolkit'''. Heroic supports Epic and GOG.com games.&lt;br /&gt;
&lt;br /&gt;
* Install the [https://github.com/Heroic-Games-Launcher/HeroicGamesLauncher/releases native macOS Heroic Games Launcher] or from Homebrew.&lt;br /&gt;
* Open Heroic, and log into your Epic Games and/or GOG.com account.&lt;br /&gt;
* Go to the &amp;quot;Wine Manager&amp;quot; and install a '''numbered''' version of Wine, such that it won't auto update- we are going to modify it.&lt;br /&gt;
** At the time of writing this, the newest numbered version of Wine-Crossover is &amp;lt;code&amp;gt;Wine-Crossover-Wine-22.1.0&amp;lt;/code&amp;gt;&lt;br /&gt;
* Press the folder icon that appears after installing it to open the directory containing Heroic's Wine installations.&lt;br /&gt;
* Right-click on the version of Wine you just installed and press &amp;quot;Show Package Contents&amp;quot;.&lt;br /&gt;
* Open this directory in Terminal (e.g. SHIFT+ CMD + G -&amp;gt; ~/Library/Application Support/heroic/tools/wine/Wine-crossover-wine-22.1.0).&lt;br /&gt;
** It should be something like &amp;lt;code&amp;gt;cd ~/Library/Application\ Support/heroic/tools/wine/Wine-crossover-wine-22.1.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
* &amp;lt;pre&amp;gt;cd Contents/MacOS&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Remove the existing Wine: &amp;lt;pre&amp;gt;rm wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Create a symlink to Game Porting Toolkit's Wine: &lt;br /&gt;
** If using Game Porting Toolkit Wineprefix: &amp;lt;pre&amp;gt;ln -s `/usr/local/bin/brew --prefix game-porting-toolkit`/bin/wine64 wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
** If using Whisky: &amp;lt;pre&amp;gt;ln -s /Applications/Whisky.app/Contents/Resources/Libraries/Wine/bin/wine64 wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
* &amp;lt;pre&amp;gt;cd ../Resources&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Remove the existing Wine: &amp;lt;pre&amp;gt;rm -rfv wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Create a symlink to Game Porting Toolkit's Wine&lt;br /&gt;
** If using Game Porting Toolkit Wineprefix: &amp;lt;pre&amp;gt;ln -s `/usr/local/bin/brew --prefix game-porting-toolkit` wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
** If using Whisky: &amp;lt;pre&amp;gt;ln -s /Applications/Whisky.app/Contents/Resources/Libraries/Wine wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
* We are now done with Terminal. Install any games you want to try playing.&lt;br /&gt;
* Select the game you want to play, and press the settings button in the top-right.&lt;br /&gt;
* Make sure the version of Wine you just downloaded and modified is selected.&lt;br /&gt;
* Make sure your Game Porting Toolkit Wine Prefix is selected. If you followed Apple's guide this is &amp;lt;code&amp;gt;/Users/$USER/my-game-prefix&amp;lt;/code&amp;gt;.&lt;br /&gt;
* If you Open the &amp;quot;Other&amp;quot; section you can also add any environment variables you want like &amp;lt;code&amp;gt;WINEESYNC=1&amp;quot;&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;&amp;quot;MTL_HUD_ENABLED=1&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
* Close the settings and try running the game.&lt;br /&gt;
&lt;br /&gt;
== Commands ==&lt;br /&gt;
Installing individual exe games: open your Wine prefix’s virtual C: drive in Finder (open ~/my-game-prefix/drive_c) and copy your game into an appropriate subdirectory.&lt;br /&gt;
&lt;br /&gt;
'''A. Standard launching'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix 'C:\Program Files (x86)\Steam\steam.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This launches the given Windows game binary with a visible extended Metal Performance HUD and filters logging to output from the Game Porting Toolkit.&lt;br /&gt;
&lt;br /&gt;
'''B. Launching without a HUD'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit-no-hud ~/my-game-prefix 'C:\Program Files (x86)\Steam\steam.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''C. Launching with Wine ESYNC disabled'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit-no-esync ~/my-game-prefix 'C:\Program Files (x86)\Steam\steam.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To enter Winecfg:&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix winecfg&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Shortcut ==&lt;br /&gt;
{{Image|Game Porting Toolkit Steam icon.png|Made by user Omsier.|150px}}&lt;br /&gt;
You can make a shortcut for Steam for example by using macOS built-in Automator app.&lt;br /&gt;
*Open Automator.&lt;br /&gt;
*Select New Application.&lt;br /&gt;
*In the 2nd column select Run Shell Script.&lt;br /&gt;
*Copy and paste this code into the box:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/zsh&lt;br /&gt;
&lt;br /&gt;
export PATH=&amp;quot;/usr/local/bin:${PATH}&amp;quot;&lt;br /&gt;
&lt;br /&gt;
arch -x86_64 gameportingtoolkit ~/my-game-prefix 'C:\Program Files (x86)\Steam\steam.exe'&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the shortcut somewhere e.g. Applications.&lt;br /&gt;
*Above shortcut can be customised to any Wineprefix or game.&lt;br /&gt;
*Add an icon by selecting the shortcut, pressing {{key|cmd|I}} to Get Info, then dragging and dropping a PNG file onto the top left of the window.&lt;br /&gt;
&lt;br /&gt;
== Logging ==&lt;br /&gt;
The provided bin/gameportingtoolkit* scripts can be copied onto your path to facilitate different forms of logging and launching. You can run these scripts from any shell; you don’t need to switch to the Rosetta environment first.&lt;br /&gt;
&lt;br /&gt;
Logging output will appear in the Terminal window in which you launch your game as well as the system log, which can be viewed with the Console app found in Applications ▸ Utilities. Log messages from the Game Porting Toolkit are prefixed with D3DM. By default the gameportingtoolkit* scripts will filter to just the D3DM-prefixed messages.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
=== Steam login black screen ===&lt;br /&gt;
{{Image|GPTK Steam black screen.png|Steam login black screen issue.}}&lt;br /&gt;
&lt;br /&gt;
{{Fixbox|description=Alternate Steam launch command|ref=|fix=&lt;br /&gt;
Close the Terminal window and then reopen and retry the command, repeat several times.&lt;br /&gt;
&lt;br /&gt;
Alternate way of launching Steam (after installing):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
MTL_HUD_ENABLED=1 WINEESYNC=1 WINEPREFIX=~/my-game-prefix /usr/local/Cellar/game-porting-toolkit/1.0/bin/wine64 'C:\Program Files (x86)/Steam/steam.exe'&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If still not working then try using [[CrossOver]] and create a Steam bottle, then login, then redirect this WINEPREFIX to that bottle:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=&amp;quot;/Users/$USER/Library/Application Support/CrossOver/Bottles/Steam/&amp;quot; &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
{{Fixbox|description=Use macOS Steam login|ref=&amp;lt;ref&amp;gt;https://github.com/IsaacMarovitz/Whisky/issues/41#issuecomment-1585640483&amp;lt;/ref&amp;gt;|fix=&lt;br /&gt;
#Login to Steam macOS.&lt;br /&gt;
#From &amp;lt;code&amp;gt;/Users/$USER/Library/Application Support/Steam&amp;lt;/code&amp;gt;, copy three files/folders: config, registry.vdf, userdata.&lt;br /&gt;
#Paste into &amp;lt;code&amp;gt;~/my-game-prefix/drive_c/Program Files (x86)/Steam/&amp;lt;/code&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=== Steam crashes straight after opening ===&lt;br /&gt;
{{Fixbox|description=Disconnect external monitors|ref=&amp;lt;ref&amp;gt;Reference&amp;lt;/ref&amp;gt;|fix=&lt;br /&gt;
Disconnect any external monitors, or alternatively stop mirroring the screen.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=== Battle.net launcher won't re-launch ===&lt;br /&gt;
Re-install the launcher to reopen, no other fix at the moment.&lt;br /&gt;
&lt;br /&gt;
===Windows version too old===&lt;br /&gt;
{{Fixbox|description=Name|ref=&amp;lt;ref&amp;gt;Reference&amp;lt;/ref&amp;gt;|fix=&lt;br /&gt;
'''My game won’t run because it thinks the version of Windows is too old. Some games detect specific minimum versions of Windows and need to be updated.''' Use this script to update your wineprefix with build 19042 which should work for most games e.g. Spider-Man Remastered.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion' /v CurrentBuild /t REG_SZ /d 19042 /f&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion' /v CurrentBuildNumber /t REG_SZ /d 19042 /f&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wineserver -k&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=== steamwebhelper.exe crashes ===&lt;br /&gt;
This is caused by Steam being run through macOS Ventura or below, most users should upgrade to macOS Sonoma. You can use the CrossOver workaround to login to Steam but you'll experience constant crashing.&lt;br /&gt;
&lt;br /&gt;
=== Nothing loads after a crash ===&lt;br /&gt;
Try closing all Wine threads:&lt;br /&gt;
&amp;lt;pre&amp;gt;killall -9 wineserver &amp;amp;&amp;amp; killall -9 wine64-preloader&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Anti-cheat and DRM ===&lt;br /&gt;
Likely there will be no fixes for any games that use anti-cheat, e.g. Easy Anti Cheat. Some games have workarounds e.g. Elden Ring. Other games that use say Denuvo may also be incompatible until that DRM is removed by the game's developer.&lt;br /&gt;
&lt;br /&gt;
=== My game won’t run because it requires Mono, .NET, or the MSVCRT runtime ===&lt;br /&gt;
For the example of VC Redistributable, download the x64 version here: https://aka.ms/vs/17/release/vc_redist.x64.exe&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 vc_redist.x64.exe&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Generic commands:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 &amp;lt;some-installer.exe&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
And .MSI packages can be installed by launching the Windows uninstaller application and choosing to install a downloaded .msi package:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 uninstaller&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Controller issues ===&lt;br /&gt;
{{Fixbox|description=Steam beta|ref=&amp;lt;ref&amp;gt;Reference&amp;lt;/ref&amp;gt;|fix=&lt;br /&gt;
Issues may be fixed by enrolling into the Steam beta.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=== My game looks pixelated and the display resolution is limited ===&lt;br /&gt;
{{Fixbox|description=Enable Retina mode|ref=|fix=&lt;br /&gt;
Enable Retina (high resolution) mode:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_CURRENT_USER\Software\Wine\Mac Driver' /v RetinaMode /t REG_SZ /d 'Y' /f&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Some games will not run with Retina mode enabled. To disable it:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_CURRENT_USER\Software\Wine\Mac Driver' /v RetinaMode /t REG_SZ /d 'N' /f&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
===AVX===&lt;br /&gt;
AVX and AVX2 games are not supported by Apple's arm64 chipset, e.g. Red Dead Redemption 2.&lt;br /&gt;
&lt;br /&gt;
AVX requirement can be bypassed in some games, e.g Dying Light 2.&lt;br /&gt;
&lt;br /&gt;
{{Fixbox|description=AVX Fix for Dying Light 2|ref=&amp;lt;ref&amp;gt;Reference&amp;lt;/ref&amp;gt;|fix=&lt;br /&gt;
There is a workaround in Dying Light 2 which is to simply remove/rename the &amp;quot;runtime_dx11.dll&amp;quot;&lt;br /&gt;
&lt;br /&gt;
#Right click on DL2 on steam&lt;br /&gt;
#Manage&lt;br /&gt;
#Local files&lt;br /&gt;
#Navigate to &amp;quot;ph\work\bin\x64&amp;quot;&lt;br /&gt;
#Rename &amp;quot;runtime_dx11.dll&amp;quot; to &amp;quot;runtime_dx11.dll.bak&amp;quot;&lt;br /&gt;
#Start the game&lt;br /&gt;
&lt;br /&gt;
If for some reason you need the &amp;quot;runtime_dx11.dll&amp;quot; back, just remove the &amp;quot;.bak&amp;quot; or verify game files integrity in steam&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
== Game compatibility list ==&lt;br /&gt;
{{ii}} '''Total number of games: '''{{#cargo_query:tables=Compatibility_macOS|fields=COUNT(*)|group by=_pageNamespace|where=Compatibility_macOS.wine='perfect' OR Compatibility_macOS.wine='playable' OR Compatibility_macOS.wine='runs' OR Compatibility_macOS.wine='menu'}}&lt;br /&gt;
{{mm}} ''This list was last refreshed on '''{{CURRENTMONTHNAME}} {{CURRENTDAY}},  {{CURRENTYEAR}}'''. [{{fullurl:{{FULLPAGENAMEE}}|action=purge}} Purge] the page to refresh it.''&lt;br /&gt;
{{#cargo_query:&lt;br /&gt;
tables=Compatibility_macOS&lt;br /&gt;
|fields=Compatibility_macOS._pageName, Compatibility_macOS.wine&lt;br /&gt;
|where=Compatibility_macOS.wine='perfect' OR Compatibility_macOS.wine='playable' OR Compatibility_macOS.wine='runs'&lt;br /&gt;
|limit=500&lt;br /&gt;
|offset=0&lt;br /&gt;
|format=template&lt;br /&gt;
|intro={{ListOfGames/intro}}&lt;br /&gt;
|template=ListOfGames/row&lt;br /&gt;
|outro=&amp;lt;/table&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
{{#cargo_query:&lt;br /&gt;
tables=Compatibility_macOS&lt;br /&gt;
|fields=Compatibility_macOS._pageName, Compatibility_macOS.wine&lt;br /&gt;
|where= Compatibility_macOS.wine='unplayable' OR Compatibility_macOS.wine='menu'&lt;br /&gt;
|limit=500&lt;br /&gt;
|offset=0&lt;br /&gt;
|format=template&lt;br /&gt;
|intro={{ListOfGames/intro}}&lt;br /&gt;
|template=ListOfGames/row&lt;br /&gt;
|outro=&amp;lt;/table&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
Old list - this should be made into individual wiki articles in order to populate the automated list above, which tracks all game compatibility methods using Wine.&lt;br /&gt;
&lt;br /&gt;
Working games:&lt;br /&gt;
* [[AnimA: Reign of Darkness]]&lt;br /&gt;
* [[Astroneer]]&lt;br /&gt;
* [[Assassins Creed 3 Remastered]]&lt;br /&gt;
* [[Atomic Heart]]&lt;br /&gt;
* [[ARK: Survival Evolved]] - (~50 fps on low settings)&lt;br /&gt;
* [[Batman: Arkham Knight]] - launches with steam&lt;br /&gt;
* [[Blood: Fresh Supply]]&lt;br /&gt;
* [[Bloodstained: Ritual of the Night]]&lt;br /&gt;
* [[Brick Rigs]]&lt;br /&gt;
* [[Genshin Impact]] 3.7 (m2max with 4k 60fps stable) &lt;br /&gt;
* [[Chasm: The Rift]] (It works but you can't change any video options as it will crash. You have to manually edit the config file.)&lt;br /&gt;
* [[Control]] (DX12 mode, if downloaded from Heroic, needs to be ran by Terminal)&lt;br /&gt;
* [[Crysis Remastered]]&lt;br /&gt;
* [[Cultic]]&lt;br /&gt;
* [[Cuphead]]&lt;br /&gt;
* [[Cyberpunk 2077]]&lt;br /&gt;
* [[Dead Space Remake]]&lt;br /&gt;
* [[Deep Rock Galactic]]&lt;br /&gt;
* [[Deceive Inc.]] - works well if launched without EAC&lt;br /&gt;
* [[Derail Valley]] (awesome performance, no missing manuals - in-game objects for train operation - like on CrossOver)&lt;br /&gt;
* [[Diablo IV]] [https://www.reddit.com/r/macgaming/comments/14307be/comment/jn7dxzo/?utm_source=reddit&amp;amp;utm_medium=web2x&amp;amp;context=3 ]&lt;br /&gt;
* [[Dread Templar]]&lt;br /&gt;
* [[Duke Nukem 3D HRP (eduke32)]]&lt;br /&gt;
* [[Dying Light 2]] (needs AVX fix above)&lt;br /&gt;
* [[Dyson Sphere Program]] (some objects and main character weren't visible before)&lt;br /&gt;
* [[Elden Ring]]&lt;br /&gt;
* [[Final Fantasy VII Remake Intergrade]] (~50 FPS on High settings at 1080p with M1 Pro)&lt;br /&gt;
* [[Five Nights At Freddy's Security Breach]]&lt;br /&gt;
* [[Friends vs. Friends]]&lt;br /&gt;
* [[Gloomwood]]&lt;br /&gt;
* [[God of War]] (Works somewhat well on M1 Pro (16gb), wouldn't recommend lesser hardware.)&lt;br /&gt;
* [[Going Medieval]]&lt;br /&gt;
* [[Guilty Gear Strive]]&lt;br /&gt;
* [[Grand Theft Auto V]]&lt;br /&gt;
* [[Green Hell]]&lt;br /&gt;
* [[Halo 3]] (MCC - No Online due to Easy Anti-Cheat Compatibility) [https://www.reddit.com/r/macgaming/comments/143zoos/halo_3_mcc_no_online_eac_m1_pro_game_porting/]&lt;br /&gt;
* [[Halo Reach]] (MCC) &lt;br /&gt;
* [[HI-Fi RUSH]]&lt;br /&gt;
* [[Hogwarts Legacy]] - launches fine first time but then won't relaunch - can be fixed by deleting ~/my-game-prefix/drive_c/ProgramData/Hogwarts Legacy - these are the files that are created at first launch that prevent relaunching&lt;br /&gt;
* [[Hatsune Miku: Project DIVA Mega Mix+]] - works with Retina mode; [https://github.com/blueskythlikesclouds/DivaModLoader/releases DivaModLoader] and [https://github.com/Still34/azura-diva/releases DivaNoSpy] recommended; run Steam with WINEDEBUG=-all WINEESYNC=0 WINEDLLOVERRIDES=&amp;quot;dinput8.dll=n,b&amp;quot;; may randomly crash at the title screen: use [https://github.com/nastys/IntroPatch/releases IntroPatch] as a workaround&lt;br /&gt;
* [[Infinity Racer XD]]&lt;br /&gt;
* [[Kena: Bridge of Spirits]]&lt;br /&gt;
* [[Metal Gear Solid V: The Phantom Pain]]&lt;br /&gt;
* [[Outer Wilds]] (through steam)&lt;br /&gt;
* [[Overwatch 2]]&lt;br /&gt;
* [[QUBE 2]]&lt;br /&gt;
* [[People Playground]]&lt;br /&gt;
* [[PowerSlave Exhumed]]&lt;br /&gt;
* [[Prodeus]]&lt;br /&gt;
* [[Project Warlock]]&lt;br /&gt;
* [[Ready or Not]]&lt;br /&gt;
* [[Risk of Rain 2]] (does not require `-disable-gpu-skinning` like Crossover 22)&lt;br /&gt;
* [[Scarlet Nexus]]&lt;br /&gt;
* [[Sonic GT]]&lt;br /&gt;
* [[Sonic illusions]]&lt;br /&gt;
* [[Sonic Omens]]&lt;br /&gt;
* [[Sonic Project '06]]&lt;br /&gt;
* [[Spider-Man (2018)]]&lt;br /&gt;
* [[Spider-Man Miles Morales]] - ''requires Windows ver fix''&lt;br /&gt;
* [[SpongeBob SquarePants: The Cosmic Shake]]&lt;br /&gt;
* [[StarCraft: Remastered]] - Game runs fine but opening Option menu the second time will cause game not recognizing any inputs.&lt;br /&gt;
* [[Tetris Effect: Connected]] - Game window likes to be uncooperative; really doesn't like retina mode, works otherwise&lt;br /&gt;
* [[V Rising]]&lt;br /&gt;
* [[Warframe]] - ''To get installer/launcher working add dwrite (disabled) to library overrides in winecfg''&lt;br /&gt;
* [[WRATH: Aeon of Ruin]]&lt;br /&gt;
* [[Vampyr]] - 25-30fps on Ultra settings, tested on M1 MBA (!DX11 game!)&lt;br /&gt;
* [[Tell Me Why]] - On maxed out settings, runs around 35-45fps on base M1 MBA (!DX11 game!)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Not working well:&lt;br /&gt;
* [[Horizon Zero Dawn]] - slowdown issues&lt;br /&gt;
* [[Genshin Impact]] - Launches, but stuck when calling menu using esc&lt;br /&gt;
* [[CarX Drift Racing Online]] - Game freezes after launch.&lt;br /&gt;
&lt;br /&gt;
Not working yet:&lt;br /&gt;
* [[Apex Legends]] (it will stuck because of anti-cheat)&lt;br /&gt;
* Any games that use the EA Launcher&lt;br /&gt;
** [[Need for Speed Heat]]&lt;br /&gt;
** [[Need for Speed Unbound]]&lt;br /&gt;
** [[Tom Clancy's The Division 2]]&lt;br /&gt;
* [[Among Us]]&lt;br /&gt;
* [[Assassins Creed Odyssey]]&lt;br /&gt;
* [[Assassins Creed Valhalla]]&lt;br /&gt;
* [[BeamNG.Drive]] - Loads into Main Menu but crashes on last step of loading into a level with a &amp;quot;UI Process failed to respond in time&amp;quot; error&lt;br /&gt;
* [[Company of Heroes 3]]&lt;br /&gt;
* [[Death Stranding]]&lt;br /&gt;
* [[Doom (2016)]] - &amp;quot;FATAL ERROR: wglCreateContextAttribsARB failed&amp;quot; message on launch&lt;br /&gt;
* [[F1 20]] - Crash on launch (DX11 version running through GPTK is slower compared to Crossover 21)&lt;br /&gt;
* [[F1 21]] - Crash on launch&lt;br /&gt;
* [[F1 22]] - Crash on launch (  &amp;quot;Exception&amp;quot;: &amp;quot;C0000005 EXCEPTION_ACCESS_VIOLATION at 0000000141bd8687&amp;quot;)&lt;br /&gt;
* [[Grand Theft Auto IV]] - Rockstar games launcher crashes on launch, cracked version should work fine&lt;br /&gt;
* [[Halo Infinite]] - Crash on launch&lt;br /&gt;
* [[Hitman 3]] - launcher works, crash at 0x0000014136dddd hitman3+0x136dddd: int $3&lt;br /&gt;
* [[Microsoft Flight Simulator 2020]] (Steam) - Crash on launch&lt;br /&gt;
* [[Monster Hunter Rise]] - DX12 Game, it launches but window goes dark after compiling shaders.&lt;br /&gt;
* [[Monster Hunter World]] - Black Screen on Launch&lt;br /&gt;
* [[New World]] - Game loaded but couldn't connect to server due to Easy Anti Cheat&lt;br /&gt;
* [[Payday 2]]&lt;br /&gt;
* [[Red Dead Redemption 2]]&lt;br /&gt;
* [[Rogue Company]] - anti-cheat conflict.&lt;br /&gt;
* [[s&amp;amp;box]] - crashes right on launch. (it should be DX11)&lt;br /&gt;
* [[Sea of Thieves]] - Launches, but the prompt to sign into an xbox live account appears blank and cannot&lt;br /&gt;
* [[Saints Row IV: Re-Elected]] - Launches, but crashes when trying to load into game&lt;br /&gt;
* [[Slime Rancher 2]] - Launches, but can't into game from main menu&lt;br /&gt;
* [[Sonic Frontiers]] - AVX Requirement&lt;br /&gt;
* [[SpongeBob Squarepants: Battle for Bikini Bottom Rehydrated]] - Crashes when loading &lt;br /&gt;
* [[Teardown]] - When trying to launch, gives a error, &amp;quot;The program teardown.exe has encountered a serious problem and needs to close. We are sorry for the inconvenience.&amp;quot;&lt;br /&gt;
* [[The Elder Scrolls V: Skyrim Special Edition]] - the launcher gives a &amp;quot;The program skyrimselauncher.exe has encountered a serious problem&amp;quot; message, not allowing us to get into the game&lt;br /&gt;
* [[theHunter: Call of the Wild]] - Crash on launch (Unhandled exception: page fault on read access to 0x0000000000000000 in 64-bit code (0x00000140b227f8))&lt;br /&gt;
* [[The Joy of Creation: Story Mode]] - Crash on launch&lt;br /&gt;
* All DX9 games (as this toolkit supports DX11 &amp;amp; DX12 only)&lt;br /&gt;
** [[30XX]] - &amp;quot;Failed to create D3D device&amp;quot; -&amp;gt; crash on launch; this is a rare 64-bit DX9 game&lt;br /&gt;
** [[Battleblock Theater]] - Black screen -&amp;gt; crash on launch&lt;br /&gt;
** [[Black Mesa]] - Starts to load to main menu at first but then crashes&lt;br /&gt;
** [[Castle Crashers]] - Black screen -&amp;gt; crash on launch&lt;br /&gt;
** [[Killing Floor 1]] - Crash on launch&lt;br /&gt;
** [[Left 4 Dead 2]] - Black screen -&amp;gt; crash on launch&lt;br /&gt;
** [[Lego Batman: The Videogame]] - Black screen -&amp;gt; crash on launch&lt;br /&gt;
** [[Lego Batman 2: DC Super Heros]] - Black screen -&amp;gt; crash on launch&lt;br /&gt;
** [[Lego Batman 3: Beyond Gotham]] - Black screen -&amp;gt; crash on launch (You can switch to DX11 but are currently unable to do so since the game will not launch)&lt;br /&gt;
** [[Mega Man Zero/ZX Legacy Collection]] - &amp;quot;Failed to create d3d9 device&amp;quot; -&amp;gt; crash on launch&lt;br /&gt;
** [[Sonic Mania]] - Crash on launch&lt;br /&gt;
** [[Space Engineers]] - Gets to first loading screen then crashes&lt;br /&gt;
** [[StarCraft II]] -&amp;gt; &amp;quot;Failed to initialize DirectX&amp;quot; error&lt;br /&gt;
** [[Star Wars: The Old Republic]]&lt;br /&gt;
** [[Battlefield 2]] - DirectX installation failed, won't launch, see the [https://gist.github.com/chrismwendt/1d01a306cdc8618a06bdfb555743e25c error log]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{References}}&lt;br /&gt;
[[Category:Lists]]&lt;/div&gt;</summary>
		<author><name>Andytizer</name></author>
	</entry>
	<entry>
		<id>https://www.applegamingwiki.com/w/index.php?title=Game_Porting_Toolkit&amp;diff=7798</id>
		<title>Game Porting Toolkit</title>
		<link rel="alternate" type="text/html" href="https://www.applegamingwiki.com/w/index.php?title=Game_Porting_Toolkit&amp;diff=7798"/>
		<updated>2023-06-12T17:18:28Z</updated>

		<summary type="html">&lt;p&gt;Andytizer: /* Steam crashes straight after opening */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Image|Game Porting Toolkit.png|Released 6th June, 2023 at WWDC23.}}&lt;br /&gt;
&lt;br /&gt;
Game Porting Toolkit is Apple's new translation layer released on 6th June, 2023. Game Porting Toolkit ('''GPTK''') combines Wine with Apple's own D3DMetal which supports DirectX 11 and 12&amp;lt;ref&amp;gt;{{Refurl|url=https://mastodon.gamedev.place/@gavkar/110501451404624870|title=Gokhan Avkarogullari: &amp;quot;@yiningkarlli @aras @romainguy…&amp;quot; - Gamedev Mastodon}}&amp;lt;/ref&amp;gt;. This is a less user-friendly method of installing Windows games on Apple Silicon Macs compared to [[CrossOver]] or [[Parallels]], however it unlocks the ability to play many DirectX 12 games. A lot more games work using GPTK, however, games that use anti-cheat or aggressive DRMs generally don't work, along with games that require AVX/AVX 2, e.g. The Last of Us Part I.&lt;br /&gt;
&lt;br /&gt;
== Toolkit install instructions ==&lt;br /&gt;
=== Requirements ===&lt;br /&gt;
*macOS Sonoma should be used, currently it is in beta. You can download the pkg installer from [https://mrmacintosh.com/macos-sonoma-full-installer-database-download-directly-from-apple/ Mr Macintosh blog].&lt;br /&gt;
*macOS Ventura causes large numbers of issues with steamwebhelper.exe crashing so it isn't recommended, use the macOS Sonoma beta.&lt;br /&gt;
*Visit [https://developer.apple.com/downloads Apple Developer Downloads site], these files are now free to download use for any logged in Apple account.&lt;br /&gt;
**Search for Command Line Tools for Xcode 15 beta and download the dmg file, then install it. &lt;br /&gt;
*If you have an old version Xcode installed, remove it.&lt;br /&gt;
**Search for Game Porting Toolkit and download it. Open the dmg file and then run the pkg.&lt;br /&gt;
&lt;br /&gt;
=== Homebrew ===&lt;br /&gt;
Note: if you have ever installed Homebrew before, then it is advised to remove ARM64 Homebrew as this can interfere with this build process. Either use a Homebrew uninstall script or delete the folder &amp;lt;code&amp;gt;/opt/homebrew/bin&amp;lt;/code&amp;gt;. If you prefer to keep both ARM64 and x86 versions of brew installed, you may add a &amp;quot;brew-switcher&amp;quot; to your &amp;lt;code&amp;gt;.zshrc&amp;lt;/code&amp;gt; file to allow either version to be used depending on the active architecture. You may follow the steps at the end of this section after installing Brew to achieve this.&lt;br /&gt;
&lt;br /&gt;
Open Terminal (search in Spotlight on macOS).&lt;br /&gt;
&lt;br /&gt;
Install Rosetta:&lt;br /&gt;
&amp;lt;pre&amp;gt;softwareupdate --install-rosetta&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Enter an x86_64 shell to continue the following steps in a Rosetta environment. All subsequent commands should be run within this shell.&lt;br /&gt;
&amp;lt;pre&amp;gt;arch -x86_64 zsh&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Install the x86_64 version of Homebrew if you don't already have it.&lt;br /&gt;
&amp;lt;pre&amp;gt;/bin/bash -c &amp;quot;$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)&amp;quot;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Set the path:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
(echo; echo 'eval &amp;quot;$(/usr/local/bin/brew shellenv)&amp;quot;') &amp;gt;&amp;gt; /Users/$USER/.zprofile&lt;br /&gt;
eval &amp;quot;$(/usr/local/bin/brew shellenv)&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Make sure the brew command is on your path:&lt;br /&gt;
&amp;lt;pre&amp;gt;which brew&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If this command does not print &amp;lt;code&amp;gt;/usr/local/bin/brew&amp;lt;/code&amp;gt;, you should use this command:&lt;br /&gt;
&amp;lt;pre&amp;gt;export PATH=/usr/local/bin:${PATH}&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Fixbox|description=Optionally retain both ARM64 and x86 versions of Brew|ref=|collapsed=yes|fix=&lt;br /&gt;
(Optional) If you want to have both ARM64 and x86 versions of Brew installed, begin by editing your &amp;lt;code&amp;gt;.zshrc&amp;lt;/code&amp;gt; file:&lt;br /&gt;
&amp;lt;pre&amp;gt;nano ~/.zshrc&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Scroll down (by using the arrow keys or Control + V) to the bottom of the file, and paste the following script:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
if [ &amp;quot;$(arch)&amp;quot; = &amp;quot;arm64&amp;quot; ]; then&lt;br /&gt;
    eval &amp;quot;$(/opt/homebrew/bin/brew shellenv)&amp;quot;&lt;br /&gt;
else&lt;br /&gt;
    eval &amp;quot;$(/usr/local/bin/brew shellenv)&amp;quot;&lt;br /&gt;
fi&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You may now restart your terminal and use the following command to return to an x86_64 shell:&lt;br /&gt;
&amp;lt;pre&amp;gt;arch -x86_64 zsh&amp;lt;/pre&amp;gt;&lt;br /&gt;
Your shell will now select the right installation of Brew, depending on your architecture.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=== Build ===&lt;br /&gt;
Run this command to download Apple tap:&lt;br /&gt;
&amp;lt;pre&amp;gt;brew tap apple/apple http://github.com/apple/homebrew-apple&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Install the game-porting-toolkit formula. This formula downloads and compiles several large software projects. How long this takes will depend on the speed of your computer. It can take over 1 hour to complete depending on the speed of your Mac.&lt;br /&gt;
&amp;lt;pre&amp;gt;brew -v install apple/apple/game-porting-toolkit&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If during installation you see an error such as '''“Error: game-porting-toolkit: unknown or unsupported macOS version: :dunno”, your version of Homebrew doesn’t have macOS Sonoma support. Update to the latest version of Homebrew and try again.'''&lt;br /&gt;
&amp;lt;pre&amp;gt;brew update brew -v install apple/apple/game-porting-toolkit&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Preparing the toolkit ===&lt;br /&gt;
Make sure the Game Porting Toolkit dmg downloaded earlier is mounted at /Volumes/Game Porting Toolkit-1.0. Use this script to copy the Game Porting Toolkit library directory into Wine’s library directory.&lt;br /&gt;
&amp;lt;pre&amp;gt;ditto /Volumes/Game\ Porting\ Toolkit-1.0/lib/ `brew --prefix game-porting-toolkit`/lib/&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Put the 3 scripts from the Game Porting Toolkit DMG into here &amp;lt;code&amp;gt;/usr/local/bin&amp;lt;/code&amp;gt; using this command:&lt;br /&gt;
&amp;lt;pre&amp;gt;cp /Volumes/Game\ Porting\ Toolkit*/gameportingtoolkit* /usr/local/bin&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Wine prefix ===&lt;br /&gt;
A Wine prefix contains a virtual C: drive, similar to a Bottle in [[CrossOver]]. You will install the toolkit and your game into this virtual C: drive. Run the following command to create a new Wine prefix named my-game-prefix in your home directory. This will create a Wine prefix called &amp;lt;code&amp;gt;my-game-prefix&amp;lt;/code&amp;gt; but could be renamed to anything.&lt;br /&gt;
&amp;lt;pre&amp;gt;WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 winecfg&amp;lt;/pre&amp;gt;&lt;br /&gt;
*A “Wine configuration” window should appear on your screen.&lt;br /&gt;
*Change the version of Windows to Windows 10.&lt;br /&gt;
*Choose Apply and then OK to exit winecfg.&lt;br /&gt;
&lt;br /&gt;
If the “Wine configuration” window does not appear, and no new icon appears in the Dock, verify that you have correctly installed the x86_64 version of Homebrew as well as the game-porting-toolkit formula.&lt;br /&gt;
&lt;br /&gt;
Now you are ready to install a launcher or individual Windows games into this Wine prefix, see below.&lt;br /&gt;
&lt;br /&gt;
== Steam ==&lt;br /&gt;
Download the [https://cdn.cloudflare.steamstatic.com/client/installer/SteamSetup.exe Windows version of Steam] and place in your Downloads folder.&lt;br /&gt;
&lt;br /&gt;
'''Install Steam'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix ~/Downloads/SteamSetup.exe&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Run Steam'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix 'C:\Program Files (x86)/Steam/steam.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Log into Steam'''&lt;br /&gt;
&lt;br /&gt;
A common issue is that Steam will present with a blank black window.&lt;br /&gt;
&lt;br /&gt;
Alternate way of launching Steam (after installing):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
MTL_HUD_ENABLED=1 WINEESYNC=1 WINEPREFIX=~/my-game-prefix /usr/local/Cellar/game-porting-toolkit/1.0/bin/wine64 'C:\Program Files (x86)\Steam\steam.exe'&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If this continues then close the Terminal window and then re-open and try again, repeat until the login screen opens. Now you should be able to download and launch Windows games through Steam.&lt;br /&gt;
&lt;br /&gt;
== Battle.net ==&lt;br /&gt;
Download the [https://download.battle.net/en-gb/?platform=windows Windows version of Battle.net] and place in your Downloads folder.&lt;br /&gt;
&lt;br /&gt;
Make a new Wineprefix for Battle.net, you can choose to use &amp;lt;code&amp;gt;my-game-prefix&amp;lt;/code&amp;gt; or change this to anything else.&lt;br /&gt;
&amp;lt;pre&amp;gt;WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 winecfg&amp;lt;/pre&amp;gt;&lt;br /&gt;
*A “Wine configuration” window should appear on your screen.&lt;br /&gt;
*Change the version of Windows to &amp;lt;code&amp;gt;Windows 10&amp;lt;/code&amp;gt;.&lt;br /&gt;
*Choose Apply and then OK to exit winecfg.&lt;br /&gt;
&lt;br /&gt;
If you are running Diablo IV, then you need to run this script to update the Wineprefix to appear as a more recent version of Windows:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion' /v CurrentBuild /t REG_SZ /d 19042 /f&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion' /v CurrentBuildNumber /t REG_SZ /d 19042 /f&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wineserver -k&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Run Battle.net launcher'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix ~/Downloads/Battle.net-Setup.exe&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Be aware that there is an issue launching Battle.net once installed, the only current way to re-login is to 'install' the launcher again. &lt;br /&gt;
&lt;br /&gt;
Start individual game without the launcher using this command:&lt;br /&gt;
&amp;lt;pre&amp;gt;arch -x86_64 gameportingtoolkit-no-hud ~/my-game-prefix 'C:\Program Files (x86)\Diablo IV\Diablo IV Launcher.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Epic and GOG.com support with the Heroic Games Launcher ==&lt;br /&gt;
This is particularly useful because '''as it currently stands, the real Epic Games Launcher fails to install under the Game Porting Toolkit'''. Heroic supports Epic and GOG.com games.&lt;br /&gt;
&lt;br /&gt;
* Install the [https://github.com/Heroic-Games-Launcher/HeroicGamesLauncher/releases native macOS Heroic Games Launcher] or from Homebrew.&lt;br /&gt;
* Open Heroic, and log into your Epic Games and/or GOG.com account.&lt;br /&gt;
* Go to the &amp;quot;Wine Manager&amp;quot; and install a '''numbered''' version of Wine, such that it won't auto update- we are going to modify it.&lt;br /&gt;
** At the time of writing this, the newest numbered version of Wine-Crossover is &amp;lt;code&amp;gt;Wine-Crossover-Wine-22.1.0&amp;lt;/code&amp;gt;&lt;br /&gt;
* Press the folder icon that appears after installing it to open the directory containing Heroic's Wine installations.&lt;br /&gt;
* Right-click on the version of Wine you just installed and press &amp;quot;Show Package Contents&amp;quot;.&lt;br /&gt;
* Open this directory in Terminal (e.g. SHIFT+ CMD + G -&amp;gt; ~/Library/Application Support/heroic/tools/wine/Wine-crossover-wine-22.1.0).&lt;br /&gt;
** It should be something like &amp;lt;code&amp;gt;cd ~/Library/Application\ Support/heroic/tools/wine/Wine-crossover-wine-22.1.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
* &amp;lt;pre&amp;gt;cd Contents/MacOS&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Remove the existing Wine: &amp;lt;pre&amp;gt;rm wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Create a symlink to Game Porting Toolkit's Wine: &lt;br /&gt;
** If using Game Porting Toolkit Wineprefix: &amp;lt;pre&amp;gt;ln -s `/usr/local/bin/brew --prefix game-porting-toolkit`/bin/wine64 wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
** If using Whisky: &amp;lt;pre&amp;gt;ln -s /Applications/Whisky.app/Contents/Resources/Libraries/Wine/bin/wine64 wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
* &amp;lt;pre&amp;gt;cd ../Resources&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Remove the existing Wine: &amp;lt;pre&amp;gt;rm -rfv wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Create a symlink to Game Porting Toolkit's Wine&lt;br /&gt;
** If using Game Porting Toolkit Wineprefix: &amp;lt;pre&amp;gt;ln -s `/usr/local/bin/brew --prefix game-porting-toolkit` wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
** If using Whisky: &amp;lt;pre&amp;gt;ln -s /Applications/Whisky.app/Contents/Resources/Libraries/Wine wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
* We are now done with Terminal. Install any games you want to try playing.&lt;br /&gt;
* Select the game you want to play, and press the settings button in the top-right.&lt;br /&gt;
* Make sure the version of Wine you just downloaded and modified is selected.&lt;br /&gt;
* Make sure your Game Porting Toolkit Wine Prefix is selected. If you followed Apple's guide this is &amp;lt;code&amp;gt;/Users/$USER/my-game-prefix&amp;lt;/code&amp;gt;.&lt;br /&gt;
* If you Open the &amp;quot;Other&amp;quot; section you can also add any environment variables you want like &amp;lt;code&amp;gt;WINEESYNC=1&amp;quot;&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;&amp;quot;MTL_HUD_ENABLED=1&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
* Close the settings and try running the game.&lt;br /&gt;
&lt;br /&gt;
== Commands ==&lt;br /&gt;
Installing individual exe games: open your Wine prefix’s virtual C: drive in Finder (open ~/my-game-prefix/drive_c) and copy your game into an appropriate subdirectory.&lt;br /&gt;
&lt;br /&gt;
'''A. Standard launching'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix 'C:\Program Files (x86)\Steam\steam.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This launches the given Windows game binary with a visible extended Metal Performance HUD and filters logging to output from the Game Porting Toolkit.&lt;br /&gt;
&lt;br /&gt;
'''B. Launching without a HUD'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit-no-hud ~/my-game-prefix 'C:\Program Files (x86)\Steam\steam.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''C. Launching with Wine ESYNC disabled'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit-no-esync ~/my-game-prefix 'C:\Program Files (x86)\Steam\steam.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To enter Winecfg:&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix winecfg&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Shortcut ==&lt;br /&gt;
{{Image|Game Porting Toolkit Steam icon.png|Made by user Omsier.|150px}}&lt;br /&gt;
You can make a shortcut for Steam for example by using macOS built-in Automator app.&lt;br /&gt;
*Open Automator.&lt;br /&gt;
*Select New Application.&lt;br /&gt;
*In the 2nd column select Run Shell Script.&lt;br /&gt;
*Copy and paste this code into the box:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/zsh&lt;br /&gt;
&lt;br /&gt;
export PATH=&amp;quot;/usr/local/bin:${PATH}&amp;quot;&lt;br /&gt;
&lt;br /&gt;
arch -x86_64 gameportingtoolkit ~/my-game-prefix 'C:\Program Files (x86)\Steam\steam.exe'&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the shortcut somewhere e.g. Applications.&lt;br /&gt;
*Above shortcut can be customised to any Wineprefix or game.&lt;br /&gt;
*Add an icon by selecting the shortcut, pressing {{key|cmd|I}} to Get Info, then dragging and dropping a PNG file onto the top left of the window.&lt;br /&gt;
&lt;br /&gt;
== Logging ==&lt;br /&gt;
The provided bin/gameportingtoolkit* scripts can be copied onto your path to facilitate different forms of logging and launching. You can run these scripts from any shell; you don’t need to switch to the Rosetta environment first.&lt;br /&gt;
&lt;br /&gt;
Logging output will appear in the Terminal window in which you launch your game as well as the system log, which can be viewed with the Console app found in Applications ▸ Utilities. Log messages from the Game Porting Toolkit are prefixed with D3DM. By default the gameportingtoolkit* scripts will filter to just the D3DM-prefixed messages.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
=== Steam login black screen ===&lt;br /&gt;
{{Image|GPTK Steam black screen.png|Steam login black screen issue.}}&lt;br /&gt;
&lt;br /&gt;
{{Fixbox|description=Alternate Steam launch command|ref=|fix=&lt;br /&gt;
Close the Terminal window and then reopen and retry the command, repeat several times.&lt;br /&gt;
&lt;br /&gt;
Alternate way of launching Steam (after installing):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
MTL_HUD_ENABLED=1 WINEESYNC=1 WINEPREFIX=~/my-game-prefix /usr/local/Cellar/game-porting-toolkit/1.0/bin/wine64 'C:\Program Files (x86)/Steam/steam.exe'&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If still not working then try using [[CrossOver]] and create a Steam bottle, then login, then redirect this WINEPREFIX to that bottle:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=&amp;quot;/Users/$USER/Library/Application Support/CrossOver/Bottles/Steam/&amp;quot; &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
{{Fixbox|description=Use macOS Steam login|ref=&amp;lt;ref&amp;gt;https://github.com/IsaacMarovitz/Whisky/issues/41#issuecomment-1585640483&amp;lt;/ref&amp;gt;|fix=&lt;br /&gt;
#Login to Steam macOS.&lt;br /&gt;
#From &amp;lt;code&amp;gt;/Users/$USER/Library/Application Support/Steam&amp;lt;/code&amp;gt;, copy three files/folders: config, registry.vdf, userdata.&lt;br /&gt;
#Paste into &amp;lt;code&amp;gt;~/my-game-prefix/drive_c/Program Files (x86)/Steam/&amp;lt;/code&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=== Steam crashes straight after opening ===&lt;br /&gt;
{{Fixbox|description=Disconnect external monitors|ref=&amp;lt;ref&amp;gt;Reference&amp;lt;/ref&amp;gt;|fix=&lt;br /&gt;
Disconnect any external monitors, or alternatively stop mirroring the screen.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=== Battle.net launcher won't re-launch ===&lt;br /&gt;
Re-install the launcher to reopen, no other fix at the moment.&lt;br /&gt;
&lt;br /&gt;
===Windows version too old===&lt;br /&gt;
{{Fixbox|description=Name|ref=&amp;lt;ref&amp;gt;Reference&amp;lt;/ref&amp;gt;|fix=&lt;br /&gt;
'''My game won’t run because it thinks the version of Windows is too old. Some games detect specific minimum versions of Windows and need to be updated.''' Use this script to update your wineprefix with build 19042 which should work for most games e.g. Spider-Man Remastered.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion' /v CurrentBuild /t REG_SZ /d 19042 /f&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion' /v CurrentBuildNumber /t REG_SZ /d 19042 /f&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wineserver -k&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=== steamwebhelper.exe crashes ===&lt;br /&gt;
This is caused by Steam being run through macOS Ventura or below, most users should upgrade to macOS Sonoma. You can use the CrossOver workaround to login to Steam but you'll experience constant crashing.&lt;br /&gt;
&lt;br /&gt;
=== Nothing loads after a crash ===&lt;br /&gt;
Try closing all Wine threads:&lt;br /&gt;
&amp;lt;pre&amp;gt;killall -9 wineserver &amp;amp;&amp;amp; killall -9 wine64-preloader&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Anti-cheat and DRM ===&lt;br /&gt;
Likely there will be no fixes for any games that use anti-cheat, e.g. Easy Anti Cheat. Some games have workarounds e.g. Elden Ring. Other games that use say Denuvo may also be incompatible until that DRM is removed by the game's developer.&lt;br /&gt;
&lt;br /&gt;
=== My game won’t run because it requires Mono, .NET, or the MSVCRT runtime ===&lt;br /&gt;
The game porting toolkit’s evaluation environment does not pre-install these runtime support packages. If your game makes use of one of these packages, consider searching for and downloading appropriate installers (.exe or .msi) and installing them to your evaluation environment. Additional runtime installers can be run on your environment by just launching the installer and following its installation instructions:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 &amp;lt;some-installer.exe&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
And .MSI packages can be installed by launching the Windows uninstaller application and choosing to install a downloaded .msi package:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 uninstaller&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Controller issues ===&lt;br /&gt;
{{Fixbox|description=Steam beta|ref=&amp;lt;ref&amp;gt;Reference&amp;lt;/ref&amp;gt;|fix=&lt;br /&gt;
Issues may be fixed by enrolling into the Steam beta.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=== My game looks pixelated and the display resolution is limited ===&lt;br /&gt;
{{Fixbox|description=Enable Retina mode|ref=|fix=&lt;br /&gt;
Enable Retina (high resolution) mode:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_CURRENT_USER\Software\Wine\Mac Driver' /v RetinaMode /t REG_SZ /d 'Y' /f&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Some games will not run with Retina mode enabled. To disable it:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_CURRENT_USER\Software\Wine\Mac Driver' /v RetinaMode /t REG_SZ /d 'N' /f&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
===AVX===&lt;br /&gt;
AVX and AVX2 games are not supported by Apple's arm64 chipset, e.g. Red Dead Redemption 2.&lt;br /&gt;
&lt;br /&gt;
AVX requirement can be bypassed in some games, e.g Dying Light 2.&lt;br /&gt;
&lt;br /&gt;
{{Fixbox|description=AVX Fix for Dying Light 2|ref=&amp;lt;ref&amp;gt;Reference&amp;lt;/ref&amp;gt;|fix=&lt;br /&gt;
There is a workaround in Dying Light 2 which is to simply remove the &amp;quot;runtime_dx11.dll&amp;quot;&lt;br /&gt;
&lt;br /&gt;
#Right click on DL2 on steam&lt;br /&gt;
#Manage&lt;br /&gt;
#Local files&lt;br /&gt;
#Navigate to &amp;quot;ph\work\bin\x64&amp;quot;&lt;br /&gt;
#Delete &amp;quot;runtime_dx11.dll&amp;quot;&lt;br /&gt;
#Start the game&lt;br /&gt;
&lt;br /&gt;
If for some reason you need the &amp;quot;runtime_dx11.dll&amp;quot; back, just verify integrity of game files in Steam&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
== Game compatibility list ==&lt;br /&gt;
{{ii}} '''Total number of games: '''{{#cargo_query:tables=Compatibility_macOS|fields=COUNT(*)|group by=_pageNamespace|where=Compatibility_macOS.wine='perfect' OR Compatibility_macOS.wine='playable' OR Compatibility_macOS.wine='runs' OR Compatibility_macOS.wine='menu'}}&lt;br /&gt;
{{mm}} ''This list was last refreshed on '''{{CURRENTMONTHNAME}} {{CURRENTDAY}},  {{CURRENTYEAR}}'''. [{{fullurl:{{FULLPAGENAMEE}}|action=purge}} Purge] the page to refresh it.''&lt;br /&gt;
{{#cargo_query:&lt;br /&gt;
tables=Compatibility_macOS&lt;br /&gt;
|fields=Compatibility_macOS._pageName, Compatibility_macOS.wine&lt;br /&gt;
|where=Compatibility_macOS.wine='perfect' OR Compatibility_macOS.wine='playable' OR Compatibility_macOS.wine='runs' OR Compatibility_macOS.wine='menu'&lt;br /&gt;
|limit=500&lt;br /&gt;
|offset=0&lt;br /&gt;
|format=template&lt;br /&gt;
|intro={{ListOfGames/intro}}&lt;br /&gt;
|template=ListOfGames/row&lt;br /&gt;
|outro=&amp;lt;/table&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
Old list - this should be made into individual wiki articles in order to populate the automated list above, which tracks all game compatibility methods using Wine.&lt;br /&gt;
&lt;br /&gt;
Working games:&lt;br /&gt;
* [[AnimA: Reign of Darkness]]&lt;br /&gt;
* [[Astroneer]]&lt;br /&gt;
* [[Assassins Creed 3 Remastered]]&lt;br /&gt;
* [[Batman: Arkham Knight]] - launches with steam&lt;br /&gt;
* [[Bloodstained: Ritual of the Night]]&lt;br /&gt;
* [[Brick Rigs]]&lt;br /&gt;
* [[Genshin Impact]] 3.7 (m2max with 4k 60fps stable) &lt;br /&gt;
* [[Control]] (DX12 mode, if downloaded from Heroic, needs to be ran by Terminal)&lt;br /&gt;
* [[Crysis Remastered]]&lt;br /&gt;
* [[Cultic]]&lt;br /&gt;
* [[Cuphead]]&lt;br /&gt;
* [[Cyberpunk 2077]]&lt;br /&gt;
* [[Deep Rock Galactic]]&lt;br /&gt;
* [[Deceive Inc.]] - works well if launched without EAC&lt;br /&gt;
* [[Derail Valley]] (awesome performance, no missing manuals - in-game objects for train operation - like on CrossOver)&lt;br /&gt;
* [[Diablo IV]] [https://www.reddit.com/r/macgaming/comments/14307be/comment/jn7dxzo/?utm_source=reddit&amp;amp;utm_medium=web2x&amp;amp;context=3 ]&lt;br /&gt;
* [[Dread Templar]]&lt;br /&gt;
* [[Dying Light 2]] (needs AVX fix above)&lt;br /&gt;
* [[Dyson Sphere Program]] (some objects and main character weren't visible before)&lt;br /&gt;
* [[Elden Ring]]&lt;br /&gt;
* [[Final Fantasy VII Remake Intergrade]] (~50 FPS on High settings at 1080p with M1 Pro)&lt;br /&gt;
* [[Five Nights At Freddy's Security Breach]]&lt;br /&gt;
* [[Friends vs. Friends]]&lt;br /&gt;
* [[Gloomwood]]&lt;br /&gt;
* [[God of War]] (Works somewhat well on M1 Pro (16gb), wouldn't recommend lesser hardware.)&lt;br /&gt;
* [[Going Medieval]]&lt;br /&gt;
* [[Guilty Gear Strive]]&lt;br /&gt;
* [[Grand Theft Auto V]]&lt;br /&gt;
* [[Green Hell]]&lt;br /&gt;
* [[Halo 3]] (MCC - No Online due to Easy Anti-Cheat Compatibility) [https://www.reddit.com/r/macgaming/comments/143zoos/halo_3_mcc_no_online_eac_m1_pro_game_porting/]&lt;br /&gt;
* [[Halo Reach]] (MCC) &lt;br /&gt;
* [[HI-Fi RUSH]]&lt;br /&gt;
* [[Hogwarts Legacy]] - launches fine first time but then won't relaunch - can be fixed by deleting ~/my-game-prefix/drive_c/ProgramData/Hogwarts Legacy - these are the files that are created at first launch that prevent relaunching&lt;br /&gt;
* [[Hatsune Miku: Project DIVA Mega Mix+]] - works with Retina mode; [https://github.com/blueskythlikesclouds/DivaModLoader/releases DivaModLoader] and [https://github.com/Still34/azura-diva/releases DivaNoSpy] recommended; run Steam with WINEDEBUG=-all WINEESYNC=0 WINEDLLOVERRIDES=&amp;quot;dinput8.dll=n,b&amp;quot;; may randomly crash at the title screen: use [https://github.com/nastys/IntroPatch/releases IntroPatch] as a workaround&lt;br /&gt;
* [[Infinity Racer XD]]&lt;br /&gt;
* [[Kena: Bridge of Spirits]]&lt;br /&gt;
* [[Metal Gear Solid V: The Phantom Pain]]&lt;br /&gt;
* [[Outer Wilds]] (through steam)&lt;br /&gt;
* [[Overwatch 2]]&lt;br /&gt;
* [[QUBE 2]]&lt;br /&gt;
* [[People Playground]]&lt;br /&gt;
* [[Prodeus]]&lt;br /&gt;
* [[Ready or Not]]&lt;br /&gt;
* [[Risk of Rain 2]] (does not require `-disable-gpu-skinning` like Crossover 22)&lt;br /&gt;
* [[Scarlet Nexus]]&lt;br /&gt;
* [[Sonic GT]]&lt;br /&gt;
* [[Sonic illusions]]&lt;br /&gt;
* [[Sonic Omens]]&lt;br /&gt;
* [[Sonic Project '06]]&lt;br /&gt;
* [[Spider-Man (2018)]]&lt;br /&gt;
* [[Spider-Man Miles Morales]] - ''requires Windows ver fix''&lt;br /&gt;
* [[SpongeBob SquarePants: The Cosmic Shake]]&lt;br /&gt;
* [[StarCraft: Remastered]] - Game runs fine but opening Option menu the second time will cause game not recognizing any inputs.&lt;br /&gt;
* [[Tetris Effect: Connected]] - Game window likes to be uncooperative; really doesn't like retina mode, works otherwise&lt;br /&gt;
* [[V Rising]]&lt;br /&gt;
* [[Warframe]] - ''To get installer/launcher working add dwrite (disabled) to library overrides in winecfg''&lt;br /&gt;
* [[WRATH: Aeon of Ruin]]&lt;br /&gt;
&lt;br /&gt;
Not working well:&lt;br /&gt;
* [[Horizon Zero Dawn]] - slowdown issues&lt;br /&gt;
* [[Genshin Impact]] - Launches, but stuck when calling menu using esc&lt;br /&gt;
* [[CarX Drift Racing Online]] - Game freezes after launch.&lt;br /&gt;
&lt;br /&gt;
Not working yet:&lt;br /&gt;
* [[Apex Legends]] (it will stuck because of anti-cheat)&lt;br /&gt;
* Any games that use the EA Launcher&lt;br /&gt;
** [[Need for Speed Heat]]&lt;br /&gt;
** [[Need for Speed Unbound]]&lt;br /&gt;
** [[Tom Clancy's The Division 2]]&lt;br /&gt;
* [[Among Us]]&lt;br /&gt;
* [[Assassins Creed Odyssey]]&lt;br /&gt;
* [[Assassins Creed Valhalla]]&lt;br /&gt;
* [[BeamNG.Drive]] - Loads into Main Menu but crashes on last step of loading into a level with a &amp;quot;UI Process failed to respond in time&amp;quot; error&lt;br /&gt;
* [[Company of Heroes 3]]&lt;br /&gt;
* [[Death Stranding]]&lt;br /&gt;
* [[Doom (2016)]] - &amp;quot;FATAL ERROR: wglCreateContextAttribsARB failed&amp;quot; message on launch&lt;br /&gt;
* [[F1 20]] - Crash on launch (DX11 version running through GPTK is slower compared to Crossover 21)&lt;br /&gt;
* [[F1 21]] - Crash on launch&lt;br /&gt;
* [[F1 22]] - Crash on launch (  &amp;quot;Exception&amp;quot;: &amp;quot;C0000005 EXCEPTION_ACCESS_VIOLATION at 0000000141bd8687&amp;quot;)&lt;br /&gt;
* [[Grand Theft Auto IV]] - Rockstar games launcher crashes on launch, cracked version should work fine&lt;br /&gt;
* [[Halo Infinite]] - Crash on launch&lt;br /&gt;
* [[Hitman 3]] - launcher works, crash at 0x0000014136dddd hitman3+0x136dddd: int $3&lt;br /&gt;
* [[Microsoft Flight Simulator 2020]] (Steam) - Crash on launch&lt;br /&gt;
* [[Monster Hunter Rise]] - DX12 Game, it launches but window goes dark after compiling shaders.&lt;br /&gt;
* [[Monster Hunter World]] - Black Screen on Launch&lt;br /&gt;
* [[New World]] - Game loaded but couldn't connect to server due to Easy Anti Cheat&lt;br /&gt;
* [[Payday 2]]&lt;br /&gt;
* [[Red Dead Redemption 2]]&lt;br /&gt;
* [[Rogue Company]] - anti-cheat conflict.&lt;br /&gt;
* [[s&amp;amp;box]] - crashes right on launch. (it should be DX11)&lt;br /&gt;
* [[Sea of Thieves]] - Launches, but the prompt to sign into an xbox live account appears blank and cannot&lt;br /&gt;
* [[Saints Row IV: Re-Elected]] - Launches, but crashes when trying to load into game&lt;br /&gt;
* [[Slime Rancher 2]] - Launches, but can't into game from main menu&lt;br /&gt;
* [[Sonic Frontiers]] - AVX Requirement&lt;br /&gt;
* [[SpongeBob Squarepants: Battle for Bikini Bottom Rehydrated]] - Crashes when loading &lt;br /&gt;
* [[Teardown]] - When trying to launch, gives a error, &amp;quot;The program teardown.exe has encountered a serious problem and needs to close. We are sorry for the inconvenience.&amp;quot;&lt;br /&gt;
* [[The Elder Scrolls V: Skyrim Special Edition]] - the launcher gives a &amp;quot;The program skyrimselauncher.exe has encountered a serious problem&amp;quot; message, not allowing us to get into the game&lt;br /&gt;
* [[theHunter: Call of the Wild]] - Crash on launch (Unhandled exception: page fault on read access to 0x0000000000000000 in 64-bit code (0x00000140b227f8))&lt;br /&gt;
* [[The Joy of Creation: Story Mode]] - Crash on launch&lt;br /&gt;
* All DX9 games (as this toolkit only supports DX11 &amp;amp; DX12)&lt;br /&gt;
** [[30XX]] - &amp;quot;Failed to create D3D device&amp;quot; -&amp;gt; crash on launch; this is a rare 64-bit DX9 game&lt;br /&gt;
** [[Battleblock Theater]] - Black screen -&amp;gt; crash on launch&lt;br /&gt;
** [[Black Mesa]] - Starts to load to main menu at first but then crashes&lt;br /&gt;
** [[Castle Crashers]] - Black screen -&amp;gt; crash on launch&lt;br /&gt;
** [[Killing Floor 1]] - Crash on launch&lt;br /&gt;
** [[Left 4 Dead 2]] - Black screen -&amp;gt; crash on launch&lt;br /&gt;
** [[Lego Batman: The Videogame]] - Black screen -&amp;gt; crash on launch&lt;br /&gt;
** [[Lego Batman 2: DC Super Heros]] - Black screen -&amp;gt; crash on launch&lt;br /&gt;
** [[Lego Batman 3: Beyond Gotham]] - Black screen -&amp;gt; crash on launch (You can switch to DX11 but are currently unable to do so since the game will not launch)&lt;br /&gt;
** [[Mega Man Zero/ZX Legacy Collection]] - &amp;quot;Failed to create d3d9 device&amp;quot; -&amp;gt; crash on launch&lt;br /&gt;
** [[Sonic Mania]] - Crash on launch&lt;br /&gt;
** [[StarCraft II]] -&amp;gt; &amp;quot;Failed to initialize DirectX&amp;quot; error&lt;br /&gt;
** [[Star Wars: The Old Republic]]&lt;br /&gt;
** [[Battlefield 2]] - DirectX installation failed, won't launch, see the [https://gist.github.com/chrismwendt/1d01a306cdc8618a06bdfb555743e25c error log]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{References}}&lt;br /&gt;
[[Category:Lists]]&lt;/div&gt;</summary>
		<author><name>Andytizer</name></author>
	</entry>
	<entry>
		<id>https://www.applegamingwiki.com/w/index.php?title=Topic:Xjuvoa571ms7a4y4&amp;topic_postId=xjwnq9ose5j6dsj4&amp;topic_revId=xjwnq9ose5j6dsj4&amp;action=single-view</id>
		<title>Topic:Xjuvoa571ms7a4y4</title>
		<link rel="alternate" type="text/html" href="https://www.applegamingwiki.com/w/index.php?title=Topic:Xjuvoa571ms7a4y4&amp;topic_postId=xjwnq9ose5j6dsj4&amp;topic_revId=xjwnq9ose5j6dsj4&amp;action=single-view"/>
		<updated>2023-06-12T16:24:14Z</updated>

		<summary type="html">&lt;span class=&quot;plainlinks&quot;&gt;&lt;a href=&quot;/wiki/User:Andytizer&quot; class=&quot;mw-userlink&quot; title=&quot;User:Andytizer&quot;&gt;&lt;bdi&gt;Andytizer&lt;/bdi&gt;&lt;/a&gt; &lt;span class=&quot;mw-usertoollinks&quot;&gt;(&lt;a href=&quot;/wiki/User_talk:Andytizer&quot; class=&quot;mw-usertoollinks-talk&quot; title=&quot;User talk:Andytizer&quot;&gt;talk&lt;/a&gt; | &lt;a href=&quot;/wiki/Special:Contributions/Andytizer&quot; class=&quot;mw-usertoollinks-contribs&quot; title=&quot;Special:Contributions/Andytizer&quot;&gt;contribs&lt;/a&gt;)&lt;/span&gt; &lt;a rel=&quot;nofollow&quot; class=&quot;external text&quot; href=&quot;https://www.applegamingwiki.com/w/index.php?title=Topic:Xjuvoa571ms7a4y4&amp;amp;topic_showPostId=xjwnq9ose5j6dsj4#flow-post-xjwnq9ose5j6dsj4&quot;&gt;commented&lt;/a&gt; on &quot;Max Payne 3&quot; (&lt;em&gt;It&amp;#039;s because it&amp;#039;s 32-bit.&lt;/em&gt;)&lt;/span&gt;</summary>
		<author><name>Andytizer</name></author>
	</entry>
	<entry>
		<id>https://www.applegamingwiki.com/w/index.php?title=Final_Fantasy_VII_Remake_Intergrade&amp;diff=7793</id>
		<title>Final Fantasy VII Remake Intergrade</title>
		<link rel="alternate" type="text/html" href="https://www.applegamingwiki.com/w/index.php?title=Final_Fantasy_VII_Remake_Intergrade&amp;diff=7793"/>
		<updated>2023-06-12T12:29:09Z</updated>

		<summary type="html">&lt;p&gt;Andytizer: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Compatibility/macOS&lt;br /&gt;
|native               = na&lt;br /&gt;
|native notes         = &lt;br /&gt;
|rosetta 2            = na&lt;br /&gt;
|rosetta 2 notes      = &lt;br /&gt;
|ios-ipados app       = na&lt;br /&gt;
|ios-ipados app notes = &lt;br /&gt;
|crossover            = perfect&lt;br /&gt;
|crossover notes      = Playable.&amp;lt;ref&amp;gt;{{Refurl|url=https://applesilicongames.com/games/7Qfpb3wd8Rwoc1hxybT7qj/final-fantasy-vii|title=Final Fantasy VII on Apple Silicon Games|date=2021-04-12|snippet=}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
|wine                 = perfect&lt;br /&gt;
|wine notes           = Steam version does not launch, only the Epic version works.&lt;br /&gt;
|parallels            = perfect&lt;br /&gt;
|parallels notes      = Playable.&amp;lt;ref&amp;gt;{{Refdevice|user=BeelzeBu|date=2021-04-15|device=MacBook Air M1 2020 8 GB RAM|os=macOS Big Sur Version 11.3 Beta (20E5231a) |method=CrossOver nightly 2120210414|version=|store=Steam|resolution=1680x1050|settings=High graphics|framerate=Approximately 15-25 FPS with rare frame drops, it does only have those frame rates|controller=|url=|title=|comment=}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
|windows 10 arm       = na&lt;br /&gt;
|windows 10 arm notes = &lt;br /&gt;
|linux arm            = na&lt;br /&gt;
|linux arm notes      = &lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
{{References}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Games]]&lt;/div&gt;</summary>
		<author><name>Andytizer</name></author>
	</entry>
	<entry>
		<id>https://www.applegamingwiki.com/w/index.php?title=Final_Fantasy_VII&amp;diff=7771</id>
		<title>Final Fantasy VII</title>
		<link rel="alternate" type="text/html" href="https://www.applegamingwiki.com/w/index.php?title=Final_Fantasy_VII&amp;diff=7771"/>
		<updated>2023-06-11T19:35:29Z</updated>

		<summary type="html">&lt;p&gt;Andytizer: Andytizer moved page Final Fantasy VII to Final Fantasy VII Remake Intergrade&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;#REDIRECT [[Final Fantasy VII Remake Intergrade]]&lt;/div&gt;</summary>
		<author><name>Andytizer</name></author>
	</entry>
	<entry>
		<id>https://www.applegamingwiki.com/w/index.php?title=Final_Fantasy_VII_Remake_Intergrade&amp;diff=7770</id>
		<title>Final Fantasy VII Remake Intergrade</title>
		<link rel="alternate" type="text/html" href="https://www.applegamingwiki.com/w/index.php?title=Final_Fantasy_VII_Remake_Intergrade&amp;diff=7770"/>
		<updated>2023-06-11T19:35:29Z</updated>

		<summary type="html">&lt;p&gt;Andytizer: Andytizer moved page Final Fantasy VII to Final Fantasy VII Remake Intergrade&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Compatibility/macOS&lt;br /&gt;
|native               = na&lt;br /&gt;
|native notes         = &lt;br /&gt;
|rosetta 2            = na&lt;br /&gt;
|rosetta 2 notes      = &lt;br /&gt;
|ios-ipados app       = na&lt;br /&gt;
|ios-ipados app notes = &lt;br /&gt;
|crossover            = perfect&lt;br /&gt;
|crossover notes      = Playable.&amp;lt;ref&amp;gt;{{Refurl|url=https://applesilicongames.com/games/7Qfpb3wd8Rwoc1hxybT7qj/final-fantasy-vii|title=Final Fantasy VII on Apple Silicon Games|date=2021-04-12|snippet=}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
|wine                 = unknown&lt;br /&gt;
|wine notes           = &lt;br /&gt;
|parallels            = perfect&lt;br /&gt;
|parallels notes      = Playable.&amp;lt;ref&amp;gt;{{Refdevice|user=BeelzeBu|date=2021-04-15|device=MacBook Air M1 2020 8 GB RAM|os=macOS Big Sur Version 11.3 Beta (20E5231a) |method=CrossOver nightly 2120210414|version=|store=Steam|resolution=1680x1050|settings=High graphics|framerate=Approximately 15-25 FPS with rare frame drops, it does only have those frame rates|controller=|url=|title=|comment=}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
|windows 10 arm       = na&lt;br /&gt;
|windows 10 arm notes = &lt;br /&gt;
|linux arm            = na&lt;br /&gt;
|linux arm notes      = &lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
{{References}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Games]]&lt;/div&gt;</summary>
		<author><name>Andytizer</name></author>
	</entry>
	<entry>
		<id>https://www.applegamingwiki.com/w/index.php?title=Game_Porting_Toolkit&amp;diff=7766</id>
		<title>Game Porting Toolkit</title>
		<link rel="alternate" type="text/html" href="https://www.applegamingwiki.com/w/index.php?title=Game_Porting_Toolkit&amp;diff=7766"/>
		<updated>2023-06-11T14:55:02Z</updated>

		<summary type="html">&lt;p&gt;Andytizer: /* Epic and GOG.com support with the Heroic Games Launcher */ Removed reference to OpenInTerminal&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Image|Game Porting Toolkit.png|Released 6th June, 2023 at WWDC23.}}&lt;br /&gt;
&lt;br /&gt;
Game Porting Toolkit is Apple's new translation layer released on 6th June, 2023. Game Porting Toolkit ('''GPTK''') combines Wine with Apple's own D3DMetal which supports DirectX 11 and 12&amp;lt;ref&amp;gt;{{Refurl|url=https://mastodon.gamedev.place/@gavkar/110501451404624870|title=Gokhan Avkarogullari: &amp;quot;@yiningkarlli @aras @romainguy…&amp;quot; - Gamedev Mastodon}}&amp;lt;/ref&amp;gt;. This is less user-friendly method of installing Windows games on Apple Silicon Macs compared to [[CrossOver]] or [[Parallels]], however it unlocks the ability to play many DirectX 12 games. A lot more games work using GPTK, however, games that use anti-cheat or aggressive DRMs generally don't work, along with games that require AVX/AVX 2, e.g. The Last of Us Part I.&lt;br /&gt;
&lt;br /&gt;
== Toolkit install instructions ==&lt;br /&gt;
=== Requirements ===&lt;br /&gt;
*macOS Sonoma should be used, currently it is in beta. You can download the pkg installer from [https://mrmacintosh.com/macos-sonoma-full-installer-database-download-directly-from-apple/ Mr Macintosh blog].&lt;br /&gt;
*macOS Ventura causes large numbers of issues with steamwebhelper.exe crashing so it isn't recommended, use the macOS Sonoma beta.&lt;br /&gt;
*Visit [https://developer.apple.com/downloads Apple Developer Downloads site], these files are now free to download use for any logged in Apple account.&lt;br /&gt;
**Search for Command Line Tools for Xcode 15 beta and download the dmg file, then install it. &lt;br /&gt;
*If you have an old version Xcode installed, remove it.&lt;br /&gt;
**Search for Game Porting Toolkit and download it. Open the dmg file and then run the pkg.&lt;br /&gt;
&lt;br /&gt;
=== Homebrew ===&lt;br /&gt;
Note: if you have ever installed Homebrew before, then it is advised to remove ARM64 Homebrew as this can interfere with this build process. Either use a Homebrew uninstall script or delete the folder &amp;lt;code&amp;gt;/opt/homebrew/bin&amp;lt;/code&amp;gt;. If you prefer to keep both ARM64 and x86 versions of brew installed, you may add a &amp;quot;brew-switcher&amp;quot; to your &amp;lt;code&amp;gt;.zshrc&amp;lt;/code&amp;gt; file to allow either version to be used depending on the active architecture. You may follow the steps at the end of this section after installing Brew to achieve this.&lt;br /&gt;
&lt;br /&gt;
Open Terminal (search in Spotlight on macOS).&lt;br /&gt;
&lt;br /&gt;
Install Rosetta:&lt;br /&gt;
&amp;lt;pre&amp;gt;softwareupdate --install-rosetta&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Enter an x86_64 shell to continue the following steps in a Rosetta environment. All subsequent commands should be run within this shell.&lt;br /&gt;
&amp;lt;pre&amp;gt;arch -x86_64 zsh&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Install the x86_64 version of Homebrew if you don't already have it.&lt;br /&gt;
&amp;lt;pre&amp;gt;/bin/bash -c &amp;quot;$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)&amp;quot;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Set the path:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
(echo; echo 'eval &amp;quot;$(/usr/local/bin/brew shellenv)&amp;quot;') &amp;gt;&amp;gt; /Users/$USER/.zprofile&lt;br /&gt;
eval &amp;quot;$(/usr/local/bin/brew shellenv)&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Make sure the brew command is on your path:&lt;br /&gt;
&amp;lt;pre&amp;gt;which brew&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If this command does not print &amp;lt;code&amp;gt;/usr/local/bin/brew&amp;lt;/code&amp;gt;, you should use this command:&lt;br /&gt;
&amp;lt;pre&amp;gt;export PATH=/usr/local/bin:${PATH}&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Fixbox|description=Optionally retain both ARM64 and x86 versions of Brew|ref=|collapsed=yes|fix=&lt;br /&gt;
(Optional) If you want to have both ARM64 and x86 versions of Brew installed, begin by editing your &amp;lt;code&amp;gt;.zshrc&amp;lt;/code&amp;gt; file:&lt;br /&gt;
&amp;lt;pre&amp;gt;nano ~/.zshrc&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Scroll down (by using the arrow keys or Control + V) to the bottom of the file, and paste the following script:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
if [ &amp;quot;$(arch)&amp;quot; = &amp;quot;arm64&amp;quot; ]; then&lt;br /&gt;
    eval &amp;quot;$(/opt/homebrew/bin/brew shellenv)&amp;quot;&lt;br /&gt;
else&lt;br /&gt;
    eval &amp;quot;$(/usr/local/bin/brew shellenv)&amp;quot;&lt;br /&gt;
fi&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You may now restart your terminal and use the following command to return to an x86_64 shell:&lt;br /&gt;
&amp;lt;pre&amp;gt;arch -x86_64 zsh&amp;lt;/pre&amp;gt;&lt;br /&gt;
Your shell will now select the right installation of Brew, depending on your architecture.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=== Build ===&lt;br /&gt;
Run this command to download Apple tap:&lt;br /&gt;
&amp;lt;pre&amp;gt;brew tap apple/apple http://github.com/apple/homebrew-apple&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Install the game-porting-toolkit formula. This formula downloads and compiles several large software projects. How long this takes will depend on the speed of your computer. It can take over 1 hour to complete depending on the speed of your Mac.&lt;br /&gt;
&amp;lt;pre&amp;gt;brew -v install apple/apple/game-porting-toolkit&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If during installation you see an error such as '''“Error: game-porting-toolkit: unknown or unsupported macOS version: :dunno”, your version of Homebrew doesn’t have macOS Sonoma support. Update to the latest version of Homebrew and try again.'''&lt;br /&gt;
&amp;lt;pre&amp;gt;brew update brew -v install apple/apple/game-porting-toolkit&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Preparing the toolkit ===&lt;br /&gt;
Make sure the Game Porting Toolkit dmg downloaded earlier is mounted at /Volumes/Game Porting Toolkit-1.0. Use this script to copy the Game Porting Toolkit library directory into Wine’s library directory.&lt;br /&gt;
&amp;lt;pre&amp;gt;ditto /Volumes/Game\ Porting\ Toolkit-1.0/lib/ `brew --prefix game-porting-toolkit`/lib/&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Put the 3 scripts from the Game Porting Toolkit DMG into here &amp;lt;code&amp;gt;/usr/local/bin&amp;lt;/code&amp;gt; using this command:&lt;br /&gt;
&amp;lt;pre&amp;gt;cp /Volumes/Game\ Porting\ Toolkit*/gameportingtoolkit* /usr/local/bin&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Wine prefix ===&lt;br /&gt;
A Wine prefix contains a virtual C: drive, similar to a Bottle in [[CrossOver]]. You will install the toolkit and your game into this virtual C: drive. Run the following command to create a new Wine prefix named my-game-prefix in your home directory. This will create a Wine prefix called &amp;lt;code&amp;gt;my-game-prefix&amp;lt;/code&amp;gt; but could be renamed to anything.&lt;br /&gt;
&amp;lt;pre&amp;gt;WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 winecfg&amp;lt;/pre&amp;gt;&lt;br /&gt;
*A “Wine configuration” window should appear on your screen.&lt;br /&gt;
*Change the version of Windows to Windows 10.&lt;br /&gt;
*Choose Apply and then OK to exit winecfg.&lt;br /&gt;
&lt;br /&gt;
If the “Wine configuration” window does not appear, and no new icon appears in the Dock, verify that you have correctly installed the x86_64 version of Homebrew as well as the game-porting-toolkit formula.&lt;br /&gt;
&lt;br /&gt;
Now you are ready to install a launcher or individual Windows games into this Wine prefix, see below.&lt;br /&gt;
&lt;br /&gt;
== Steam ==&lt;br /&gt;
Download the [https://cdn.cloudflare.steamstatic.com/client/installer/SteamSetup.exe Windows version of Steam] and place in your Downloads folder.&lt;br /&gt;
&lt;br /&gt;
'''Install Steam'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix ~/Downloads/SteamSetup.exe&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Run Steam'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix 'C:\Program Files (x86)/Steam/steam.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Log into Steam'''&lt;br /&gt;
&lt;br /&gt;
A common issue is that Steam will present with a blank black window.&lt;br /&gt;
&lt;br /&gt;
Alternate way of launching Steam (after installing):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
MTL_HUD_ENABLED=1 WINEESYNC=1 WINEPREFIX=~/my-game-prefix /usr/local/Cellar/game-porting-toolkit/1.0/bin/wine64 'C:\Program Files (x86)\Steam\steam.exe'&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If this continues then close the Terminal window and then re-open and try again, repeat until the login screen opens. Now you should be able to download and launch Windows games through Steam.&lt;br /&gt;
&lt;br /&gt;
== Battle.net ==&lt;br /&gt;
Download the [https://download.battle.net/en-gb/?platform=windows Windows version of Battle.net] and place in your Downloads folder.&lt;br /&gt;
&lt;br /&gt;
Make a new Wineprefix for Battle.net, you can choose to use &amp;lt;code&amp;gt;my-game-prefix&amp;lt;/code&amp;gt; or change this to anything else.&lt;br /&gt;
&amp;lt;pre&amp;gt;WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 winecfg&amp;lt;/pre&amp;gt;&lt;br /&gt;
*A “Wine configuration” window should appear on your screen.&lt;br /&gt;
*Change the version of Windows to &amp;lt;code&amp;gt;Windows 10&amp;lt;/code&amp;gt;.&lt;br /&gt;
*Choose Apply and then OK to exit winecfg.&lt;br /&gt;
&lt;br /&gt;
If you are running Diablo IV, then you need to run this script to update the Wineprefix to appear as a more recent version of Windows:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion' /v CurrentBuild /t REG_SZ /d 19042 /f&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion' /v CurrentBuildNumber /t REG_SZ /d 19042 /f&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wineserver -k&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Run Battle.net launcher'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix ~/Downloads/Battle.net-Setup.exe&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Be aware that there is an issue launching Battle.net once installed, the only current way to re-login is to 'install' the launcher again. &lt;br /&gt;
&lt;br /&gt;
Start individual game without the launcher using this command:&lt;br /&gt;
&amp;lt;pre&amp;gt;arch -x86_64 gameportingtoolkit-no-hud ~/my-game-prefix 'C:\Program Files (x86)\Diablo IV\Diablo IV Launcher.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Epic and GOG.com support with the Heroic Games Launcher ==&lt;br /&gt;
This is particularly useful because '''as it currently stands, the real Epic Games Launcher fails to install under the Game Porting Toolkit'''. Heroic supports Epic and GOG.com games.&lt;br /&gt;
&lt;br /&gt;
* Install the [https://github.com/Heroic-Games-Launcher/HeroicGamesLauncher/releases native macOS Heroic Games Launcher] or from Homebrew.&lt;br /&gt;
* Open Heroic, and log into your Epic Games and/or GOG.com account.&lt;br /&gt;
* Go to the &amp;quot;Wine Manager&amp;quot; and install a '''numbered''' version of Wine, such that it won't auto update- we are going to modify it.&lt;br /&gt;
** At the time of writing this, the newest numbered version of Wine-Crossover is &amp;lt;code&amp;gt;Wine-Crossover-Wine-22.1.0&amp;lt;/code&amp;gt;&lt;br /&gt;
* Press the folder icon that appears after installing it to open the directory containing Heroic's Wine installations.&lt;br /&gt;
* Right-click on the version of Wine you just installed and press &amp;quot;Show Package Contents&amp;quot;.&lt;br /&gt;
* Open this directory in Terminal (e.g. SHIFT+ CMD + G -&amp;gt; ~/Library/Application Support/heroic/tools/wine/Wine-crossover-wine-22.1.0).&lt;br /&gt;
** It should be something like &amp;lt;code&amp;gt;cd ~/Library/Application\ Support/heroic/tools/wine/Wine-crossover-wine-22.1.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
* &amp;lt;pre&amp;gt;cd Contents/MacOS&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Remove the existing Wine: &amp;lt;pre&amp;gt;rm wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Create a symlink to Game Porting Toolkit's Wine: &lt;br /&gt;
** If using Game Porting Toolkit Wineprefix: &amp;lt;pre&amp;gt;ln -s `/usr/local/bin/brew --prefix game-porting-toolkit`/bin/wine64 wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
** If using Whisky: &amp;lt;pre&amp;gt;ln -s /Applications/Whisky.app/Contents/Resources/Libraries/Wine/bin/wine64 wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
* &amp;lt;pre&amp;gt;cd ../Resources&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Remove the existing Wine: &amp;lt;pre&amp;gt;rm -rfv wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Create a symlink to Game Porting Toolkit's Wine&lt;br /&gt;
** If using Game Porting Toolkit Wineprefix: &amp;lt;pre&amp;gt;ln -s `/usr/local/bin/brew --prefix game-porting-toolkit` wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
** If using Whisky: &amp;lt;pre&amp;gt;ln -s /Applications/Whisky.app/Contents/Resources/Libraries/Wine wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
* We are now done with Terminal. Install any games you want to try playing.&lt;br /&gt;
* Select the game you want to play, and press the settings button in the top-right.&lt;br /&gt;
* Make sure the version of Wine you just downloaded and modified is selected.&lt;br /&gt;
* Make sure your Game Porting Toolkit Wine Prefix is selected. If you followed Apple's guide this is &amp;lt;code&amp;gt;/Users/$USER/my-game-prefix&amp;lt;/code&amp;gt;.&lt;br /&gt;
* If you Open the &amp;quot;Other&amp;quot; section you can also add any environment variables you want like &amp;lt;code&amp;gt;WINEESYNC=1&amp;quot;&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;&amp;quot;MTL_HUD_ENABLED=1&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
* Close the settings and try running the game.&lt;br /&gt;
&lt;br /&gt;
== Commands ==&lt;br /&gt;
Installing individual exe games: open your Wine prefix’s virtual C: drive in Finder (open ~/my-game-prefix/drive_c) and copy your game into an appropriate subdirectory.&lt;br /&gt;
&lt;br /&gt;
'''A. Standard launching'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix 'C:\Program Files (x86)\Steam\steam.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This launches the given Windows game binary with a visible extended Metal Performance HUD and filters logging to output from the Game Porting Toolkit.&lt;br /&gt;
&lt;br /&gt;
'''B. Launching without a HUD'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit-no-hud ~/my-game-prefix 'C:\Program Files (x86)\Steam\steam.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''C. Launching with Wine ESYNC disabled'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit-no-esync ~/my-game-prefix 'C:\Program Files (x86)\Steam\steam.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To enter Winecfg:&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix winecfg&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Shortcut ==&lt;br /&gt;
{{Image|Game Porting Toolkit Steam icon.png|Made by user Omsier.|150px}}&lt;br /&gt;
You can make a shortcut for Steam for example by using macOS built-in Automator app.&lt;br /&gt;
*Open Automator.&lt;br /&gt;
*Select New Application.&lt;br /&gt;
*In the 2nd column select Run Shell Script.&lt;br /&gt;
*Copy and paste this code into the box:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/zsh&lt;br /&gt;
&lt;br /&gt;
export PATH=&amp;quot;/usr/local/bin:${PATH}&amp;quot;&lt;br /&gt;
&lt;br /&gt;
arch -x86_64 gameportingtoolkit ~/my-game-prefix 'C:\Program Files (x86)\Steam\steam.exe'&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the shortcut somewhere e.g. Applications.&lt;br /&gt;
*Above shortcut can be customised to any Wineprefix or game.&lt;br /&gt;
*Add an icon by selecting the shortcut, pressing {{key|cmd|I}} to Get Info, then dragging and dropping a PNG file onto the top left of the window.&lt;br /&gt;
&lt;br /&gt;
== Logging ==&lt;br /&gt;
The provided bin/gameportingtoolkit* scripts can be copied onto your path to facilitate different forms of logging and launching. You can run these scripts from any shell; you don’t need to switch to the Rosetta environment first.&lt;br /&gt;
&lt;br /&gt;
Logging output will appear in the Terminal window in which you launch your game as well as the system log, which can be viewed with the Console app found in Applications ▸ Utilities. Log messages from the Game Porting Toolkit are prefixed with D3DM. By default the gameportingtoolkit* scripts will filter to just the D3DM-prefixed messages.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
=== Steam login black screen ===&lt;br /&gt;
{{Image|GPTK Steam black screen.png|Steam login black screen issue.}}&lt;br /&gt;
&lt;br /&gt;
{{Fixbox|description=Alternate Steam launch command|ref=|fix=&lt;br /&gt;
Close the Terminal window and then reopen and retry the command, repeat several times.&lt;br /&gt;
&lt;br /&gt;
Alternate way of launching Steam (after installing):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
MTL_HUD_ENABLED=1 WINEESYNC=1 WINEPREFIX=~/my-game-prefix /usr/local/Cellar/game-porting-toolkit/1.0/bin/wine64 'C:\Program Files (x86)/Steam/steam.exe'&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If still not working then try using [[CrossOver]] and create a Steam bottle, then login, then redirect this WINEPREFIX to that bottle:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=&amp;quot;/Users/$USER/Library/Application Support/CrossOver/Bottles/Steam/&amp;quot; &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
{{Fixbox|description=Use macOS Steam login|ref=&amp;lt;ref&amp;gt;https://github.com/IsaacMarovitz/Whisky/issues/41#issuecomment-1585640483&amp;lt;/ref&amp;gt;|fix=&lt;br /&gt;
#Login to Steam macOS.&lt;br /&gt;
#From &amp;lt;code&amp;gt;/Users/$USER/Library/Application Support/Steam&amp;lt;/code&amp;gt;, copy three files/folders: config, registry.vdf, userdata.&lt;br /&gt;
#Paste into &amp;lt;code&amp;gt;~/my-game-prefix/drive_c/Program Files (x86)/Steam/&amp;lt;/code&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=== Steam crashes straight after opening ===&lt;br /&gt;
{{Fixbox|description=Disconnect external monitors|ref=&amp;lt;ref&amp;gt;Reference&amp;lt;/ref&amp;gt;|fix=&lt;br /&gt;
Disconnect any external monitors.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=== Battle.net launcher won't re-launch ===&lt;br /&gt;
Re-install the launcher to reopen, no other fix at the moment.&lt;br /&gt;
&lt;br /&gt;
===Windows version too old===&lt;br /&gt;
{{Fixbox|description=Name|ref=&amp;lt;ref&amp;gt;Reference&amp;lt;/ref&amp;gt;|fix=&lt;br /&gt;
'''My game won’t run because it thinks the version of Windows is too old. Some games detect specific minimum versions of Windows and need to be updated.''' Use this script to update your wineprefix with build 19042 which should work for most games e.g. Spider-Man Remastered.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion' /v CurrentBuild /t REG_SZ /d 19042 /f&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion' /v CurrentBuildNumber /t REG_SZ /d 19042 /f&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wineserver -k&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=== steamwebhelper.exe crashes ===&lt;br /&gt;
This is caused by Steam being run through macOS Ventura or below, most users should upgrade to macOS Sonoma. You can use the CrossOver workaround to login to Steam but you'll experience constant crashing.&lt;br /&gt;
&lt;br /&gt;
=== Nothing loads after a crash ===&lt;br /&gt;
Try closing all Wine threads:&lt;br /&gt;
&amp;lt;pre&amp;gt;killall -9 wineserver &amp;amp;&amp;amp; killall -9 wine64-preloader&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Anti-cheat and DRM ===&lt;br /&gt;
Likely there will be no fixes for any games that use anti-cheat, e.g. Easy Anti Cheat. Some games have workarounds e.g. Elden Ring. Other games that use say Denuvo may also be incompatible until that DRM is removed by the game's developer.&lt;br /&gt;
&lt;br /&gt;
=== My game won’t run because it requires Mono, .NET, or the MSVCRT runtime ===&lt;br /&gt;
The game porting toolkit’s evaluation environment does not pre-install these runtime support packages. If your game makes use of one of these packages, consider searching for and downloading appropriate installers (.exe or .msi) and installing them to your evaluation environment. Additional runtime installers can be run on your environment by just launching the installer and following its installation instructions:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 &amp;lt;some-installer.exe&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
And .MSI packages can be installed by launching the Windows uninstaller application and choosing to install a downloaded .msi package:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 uninstaller&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Controller issues ===&lt;br /&gt;
{{Fixbox|description=Steam beta|ref=&amp;lt;ref&amp;gt;Reference&amp;lt;/ref&amp;gt;|fix=&lt;br /&gt;
Issues may be fixed by enrolling into the Steam beta.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=== My game looks pixelated and the display resolution is limited ===&lt;br /&gt;
{{Fixbox|description=Enable Retina mode|ref=|fix=&lt;br /&gt;
Enable Retina (high resolution) mode:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_CURRENT_USER\Software\Wine\Mac Driver' /v RetinaMode /t REG_SZ /d 'Y' /f&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Some games will not run with Retina mode enabled. To disable it:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_CURRENT_USER\Software\Wine\Mac Driver' /v RetinaMode /t REG_SZ /d 'N' /f&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
===AVX===&lt;br /&gt;
AVX and AVX2 games are not supported by Apple's arm64 chipset, e.g. Red Dead Redemption 2.&lt;br /&gt;
&lt;br /&gt;
AVX requirement can be bypassed in some games, e.g Dying Light 2.&lt;br /&gt;
&lt;br /&gt;
{{Fixbox|description=AVX Fix for Dying Light 2|ref=&amp;lt;ref&amp;gt;Reference&amp;lt;/ref&amp;gt;|fix=&lt;br /&gt;
There is a workaround in Dying Light 2 which is to simply remove the &amp;quot;runtime_dx11.dll&amp;quot;&lt;br /&gt;
&lt;br /&gt;
#Right click on DL2 on steam&lt;br /&gt;
#Manage&lt;br /&gt;
#Local files&lt;br /&gt;
#Navigate to &amp;quot;ph\work\bin\x64&amp;quot;&lt;br /&gt;
#Delete &amp;quot;runtime_dx11.dll&amp;quot;&lt;br /&gt;
#Start the game&lt;br /&gt;
&lt;br /&gt;
If for some reason you need the &amp;quot;runtime_dx11.dll&amp;quot; back, just verify integrity of game files in Steam&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
== Game compatibility list ==&lt;br /&gt;
{{ii}} '''Total number of games: '''{{#cargo_query:tables=Compatibility_macOS|fields=COUNT(*)|group by=_pageNamespace|where=Compatibility_macOS.wine='perfect' OR Compatibility_macOS.wine='playable' OR Compatibility_macOS.wine='runs' OR Compatibility_macOS.wine='menu'}}&lt;br /&gt;
{{mm}} ''This list was last refreshed on '''{{CURRENTMONTHNAME}} {{CURRENTDAY}},  {{CURRENTYEAR}}'''. [{{fullurl:{{FULLPAGENAMEE}}|action=purge}} Purge] the page to refresh it.''&lt;br /&gt;
{{#cargo_query:&lt;br /&gt;
tables=Compatibility_macOS&lt;br /&gt;
|fields=Compatibility_macOS._pageName, Compatibility_macOS.wine&lt;br /&gt;
|where=Compatibility_macOS.wine='perfect' OR Compatibility_macOS.wine='playable' OR Compatibility_macOS.wine='runs' OR Compatibility_macOS.wine='menu'&lt;br /&gt;
|limit=500&lt;br /&gt;
|offset=0&lt;br /&gt;
|format=template&lt;br /&gt;
|intro={{ListOfGames/intro}}&lt;br /&gt;
|template=ListOfGames/row&lt;br /&gt;
|outro=&amp;lt;/table&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
Old list - this should be made into individual wiki articles in order to populate the automated list above, which tracks all game compatibility methods using Wine.&lt;br /&gt;
&lt;br /&gt;
Working games:&lt;br /&gt;
* [[AnimA: Reign of Darkness]]&lt;br /&gt;
* [[Astroneer]]&lt;br /&gt;
* [[Assassins Creed 3 Remastered]]&lt;br /&gt;
* [[Batman: Arkham Knight]] - launches with steam&lt;br /&gt;
* [[Bloodstained: Ritual of the Night]]&lt;br /&gt;
* [[Brick Rigs]]&lt;br /&gt;
* [[Genshin Impact]] 3.7 (m2max with 4k 60fps stable) &lt;br /&gt;
* [[Control]] (DX12 mode, if downloaded from Heroic, needs to be ran by Terminal)&lt;br /&gt;
* [[Crysis Remastered]]&lt;br /&gt;
* [[Cultic]]&lt;br /&gt;
* [[Cuphead]]&lt;br /&gt;
* [[Cyberpunk 2077]]&lt;br /&gt;
* [[Deep Rock Galactic]]&lt;br /&gt;
* [[Deceive Inc.]] - works well if launched without EAC&lt;br /&gt;
* [[Derail Valley]] (awesome performance, no missing manuals - in-game objects for train operation - like on CrossOver)&lt;br /&gt;
* [[Diablo IV]] [https://www.reddit.com/r/macgaming/comments/14307be/comment/jn7dxzo/?utm_source=reddit&amp;amp;utm_medium=web2x&amp;amp;context=3 ]&lt;br /&gt;
* [[Dread Templar]]&lt;br /&gt;
* [[Dying Light 2]] (needs AVX fix above)&lt;br /&gt;
* [[Dyson Sphere Program]] (some objects and main character weren't visible before)&lt;br /&gt;
* [[Elden Ring]]&lt;br /&gt;
* [[Final Fantasy VII Remake Intergrade]] (~50 FPS on High settings at 1080p with M1 Pro)&lt;br /&gt;
* [[Five Nights At Freddy's Security Breach]]&lt;br /&gt;
* [[Friends vs. Friends]]&lt;br /&gt;
* [[Gloomwood]]&lt;br /&gt;
* [[God of War]] (Works somewhat well on M1 Pro (16gb), wouldn't recommend lesser hardware.)&lt;br /&gt;
* [[Going Medieval]]&lt;br /&gt;
* [[Guilty Gear Strive]]&lt;br /&gt;
* [[Grand Theft Auto V]]&lt;br /&gt;
* [[Green Hell]]&lt;br /&gt;
* [[Halo 3]] (MCC - No Online due to Easy Anti-Cheat Compatibility) [https://www.reddit.com/r/macgaming/comments/143zoos/halo_3_mcc_no_online_eac_m1_pro_game_porting/]&lt;br /&gt;
* [[Halo Reach]] (MCC) &lt;br /&gt;
* [[HI-Fi RUSH]]&lt;br /&gt;
* [[Hogwarts Legacy]] - launches fine first time but then won't relaunch - can be fixed by deleting ~/my-game-prefix/drive_c/ProgramData/Hogwarts Legacy - these are the files that are created at first launch that prevent relaunching&lt;br /&gt;
* [[Hatsune Miku: Project DIVA Mega Mix+]] - works with Retina mode; [https://github.com/blueskythlikesclouds/DivaModLoader/releases DivaModLoader] and [https://github.com/Still34/azura-diva/releases DivaNoSpy] recommended; run Steam with WINEDEBUG=-all WINEESYNC=0 WINEDLLOVERRIDES=&amp;quot;dinput8.dll=n,b&amp;quot;; may randomly crash at the title screen: use [https://github.com/nastys/IntroPatch/releases IntroPatch] as a workaround&lt;br /&gt;
* [[Infinity Racer XD]]&lt;br /&gt;
* [[Kena: Bridge of Spirits]]&lt;br /&gt;
* [[Metal Gear Solid V: The Phantom Pain]]&lt;br /&gt;
* [[Overwatch 2]]&lt;br /&gt;
* [[QUBE 2]]&lt;br /&gt;
* [[People Playground]]&lt;br /&gt;
* [[Prodeus]]&lt;br /&gt;
* [[Ready or Not]]&lt;br /&gt;
* [[Risk of Rain 2]] (does not require `-disable-gpu-skinning` like Crossover 22)&lt;br /&gt;
* [[Scarlet Nexus]]&lt;br /&gt;
* [[Sonic GT]]&lt;br /&gt;
* [[Sonic illusions]]&lt;br /&gt;
* [[Sonic Omens]]&lt;br /&gt;
* [[Sonic Project '06]]&lt;br /&gt;
* [[Spider-Man (2018)]]&lt;br /&gt;
* [[Spider-Man Miles Morales]] - ''requires Windows ver fix''&lt;br /&gt;
* [[SpongeBob SquarePants: The Cosmic Shake]]&lt;br /&gt;
* [[StarCraft: Remastered]] - Game runs fine but opening Option menu the second time will cause game not recognizing any inputs.&lt;br /&gt;
* [[Tetris Effect: Connected]] - Game window likes to be uncooperative; really doesn't like retina mode, works otherwise&lt;br /&gt;
* [[V Rising]]&lt;br /&gt;
* [[Warframe]] - ''To get installer/launcher working add dwrite (disabled) to library overrides in winecfg''&lt;br /&gt;
* [[WRATH: Aeon of Ruin]]&lt;br /&gt;
&lt;br /&gt;
Not working well:&lt;br /&gt;
* [[Horizon Zero Dawn]] - slowdown issues&lt;br /&gt;
* [[Genshin Impact]] - Launches, but stuck when calling menu using esc&lt;br /&gt;
&lt;br /&gt;
Not working yet:&lt;br /&gt;
* [[Apex Legends]] (it will stuck because of anti-cheat)&lt;br /&gt;
* Any games that use the EA Launcher&lt;br /&gt;
** [[Need for Speed Heat]]&lt;br /&gt;
** [[Need for Speed Unbound]]&lt;br /&gt;
** [[Tom Clancy's The Division 2]]&lt;br /&gt;
* [[Among Us]]&lt;br /&gt;
* [[Assassins Creed Odyssey]]&lt;br /&gt;
* [[Assassins Creed Valhalla]]&lt;br /&gt;
* [[BeamNG.Drive]] - Loads into Main Menu but crashes on last step of loading into a level with a &amp;quot;UI Process failed to respond in time&amp;quot; error&lt;br /&gt;
* [[Company of Heroes 3]]&lt;br /&gt;
* [[Death Stranding]]&lt;br /&gt;
* [[Doom (2016)]] - &amp;quot;FATAL ERROR: wglCreateContextAttribsARB failed&amp;quot; message on launch&lt;br /&gt;
* [[F1 20]] - Crash on launch (DX11 version running through GPTK is slower compared to Crossover 21)&lt;br /&gt;
* [[F1 21]] - Crash on launch&lt;br /&gt;
* [[F1 22]] - Crash on launch (  &amp;quot;Exception&amp;quot;: &amp;quot;C0000005 EXCEPTION_ACCESS_VIOLATION at 0000000141bd8687&amp;quot;)&lt;br /&gt;
* [[Grand Theft Auto IV]] - Rockstar games launcher crashes on launch, cracked version should work fine&lt;br /&gt;
* [[Halo Infinite]] - Crash on launch&lt;br /&gt;
* [[Hitman 3]] - launcher works, crash at 0x0000014136dddd hitman3+0x136dddd: int $3&lt;br /&gt;
* [[Microsoft Flight Simulator 2020]] (Steam) - Crash on launch&lt;br /&gt;
* [[Monster Hunter Rise]] - DX12 Game, it launches but window goes dark after compiling shaders.&lt;br /&gt;
* [[Monster Hunter World]] - Black Screen on Launch&lt;br /&gt;
* [[New World]] - Game loaded but couldn't connect to server due to Easy Anti Cheat&lt;br /&gt;
* [[Payday 2]]&lt;br /&gt;
* [[Red Dead Redemption 2]]&lt;br /&gt;
* [[Rogue Company]] - anti-cheat conflict.&lt;br /&gt;
* [[s&amp;amp;box]] - crashes right on launch. (it should be DX11)&lt;br /&gt;
* [[Sea of Thieves]] - Launches, but the prompt to sign into an xbox live account appears blank and cannot&lt;br /&gt;
* [[Saints Row IV: Re-Elected]] - Launches, but crashes when trying to load into game&lt;br /&gt;
* [[Slime Rancher 2]] - Launches, but can't into game from main menu&lt;br /&gt;
* [[Sonic Frontiers]] - AVX Requirement&lt;br /&gt;
* [[SpongeBob Squarepants: Battle for Bikini Bottom Rehydrated]] - Crashes when loading &lt;br /&gt;
* [[Teardown]] - When trying to launch, gives a error, &amp;quot;The program teardown.exe has encountered a serious problem and needs to close. We are sorry for the inconvenience.&amp;quot;&lt;br /&gt;
* [[The Elder Scrolls V: Skyrim Special Edition]] - the launcher gives a &amp;quot;The program teardown.exe has encountered a serious problem&amp;quot; message, not allowing us to get into the game&lt;br /&gt;
* [[theHunter: Call of the Wild]] - Crash on launch (Unhandled exception: page fault on read access to 0x0000000000000000 in 64-bit code (0x00000140b227f8))&lt;br /&gt;
* [[The Joy of Creation: Story Mode]] - Crash on launch&lt;br /&gt;
* All DX9 games (duh, this is dx 11 &amp;amp; 12 only)&lt;br /&gt;
** [[30XX]] - &amp;quot;Failed to create D3D device&amp;quot; -&amp;gt; crash on launch; this is a rare 64-bit DX9 game&lt;br /&gt;
** [[Battleblock Theater]] - Black screen -&amp;gt; crash on launch&lt;br /&gt;
** [[Black Mesa]] - Starts to load to main menu at first but then crashes&lt;br /&gt;
** [[Castle Crashers]] - Black screen -&amp;gt; crash on launch&lt;br /&gt;
** [[Killing Floor 1]] - Crash on launch&lt;br /&gt;
** [[Left 4 Dead 2]] - Black screen -&amp;gt; crash on launch&lt;br /&gt;
** [[Lego Batman: The Videogame]] - Black screen -&amp;gt; crash on launch&lt;br /&gt;
** [[Lego Batman 2: DC Super Heros]] - Black screen -&amp;gt; crash on launch&lt;br /&gt;
** [[Lego Batman 3: Beyond Gotham]] - Black screen -&amp;gt; crash on launch (You can switch to DX11 but are currently unable to do so since the game will not launch)&lt;br /&gt;
** [[Mega Man Zero/ZX Legacy Collection]] - &amp;quot;Failed to create d3d9 device&amp;quot; -&amp;gt; crash on launch&lt;br /&gt;
** [[Sonic Mania]] - Crash on launch&lt;br /&gt;
** [[StarCraft II]] -&amp;gt; &amp;quot;Failed to initialize DirectX&amp;quot; error&lt;br /&gt;
** [[Star Wars: The Old Republic]]&lt;br /&gt;
** [[Battlefield 2]] - DirectX installation failed, won't launch, see the [https://gist.github.com/chrismwendt/1d01a306cdc8618a06bdfb555743e25c error log]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{References}}&lt;br /&gt;
[[Category:Lists]]&lt;/div&gt;</summary>
		<author><name>Andytizer</name></author>
	</entry>
	<entry>
		<id>https://www.applegamingwiki.com/w/index.php?title=Game_Porting_Toolkit&amp;diff=7765</id>
		<title>Game Porting Toolkit</title>
		<link rel="alternate" type="text/html" href="https://www.applegamingwiki.com/w/index.php?title=Game_Porting_Toolkit&amp;diff=7765"/>
		<updated>2023-06-11T14:41:59Z</updated>

		<summary type="html">&lt;p&gt;Andytizer: We are now referring to this as GTPK&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Image|Game Porting Toolkit.png|Released 6th June, 2023 at WWDC23.}}&lt;br /&gt;
&lt;br /&gt;
Game Porting Toolkit is Apple's new translation layer released on 6th June, 2023. Game Porting Toolkit ('''GPTK''') combines Wine with Apple's own D3DMetal which supports DirectX 11 and 12&amp;lt;ref&amp;gt;{{Refurl|url=https://mastodon.gamedev.place/@gavkar/110501451404624870|title=Gokhan Avkarogullari: &amp;quot;@yiningkarlli @aras @romainguy…&amp;quot; - Gamedev Mastodon}}&amp;lt;/ref&amp;gt;. This is less user-friendly method of installing Windows games on Apple Silicon Macs compared to [[CrossOver]] or [[Parallels]], however it unlocks the ability to play many DirectX 12 games. A lot more games work using GPTK, however, games that use anti-cheat or aggressive DRMs generally don't work, along with games that require AVX/AVX 2, e.g. The Last of Us Part I.&lt;br /&gt;
&lt;br /&gt;
== Toolkit install instructions ==&lt;br /&gt;
=== Requirements ===&lt;br /&gt;
*macOS Sonoma should be used, currently it is in beta. You can download the pkg installer from [https://mrmacintosh.com/macos-sonoma-full-installer-database-download-directly-from-apple/ Mr Macintosh blog].&lt;br /&gt;
*macOS Ventura causes large numbers of issues with steamwebhelper.exe crashing so it isn't recommended, use the macOS Sonoma beta.&lt;br /&gt;
*Visit [https://developer.apple.com/downloads Apple Developer Downloads site], these files are now free to download use for any logged in Apple account.&lt;br /&gt;
**Search for Command Line Tools for Xcode 15 beta and download the dmg file, then install it. &lt;br /&gt;
*If you have an old version Xcode installed, remove it.&lt;br /&gt;
**Search for Game Porting Toolkit and download it. Open the dmg file and then run the pkg.&lt;br /&gt;
&lt;br /&gt;
=== Homebrew ===&lt;br /&gt;
Note: if you have ever installed Homebrew before, then it is advised to remove ARM64 Homebrew as this can interfere with this build process. Either use a Homebrew uninstall script or delete the folder &amp;lt;code&amp;gt;/opt/homebrew/bin&amp;lt;/code&amp;gt;. If you prefer to keep both ARM64 and x86 versions of brew installed, you may add a &amp;quot;brew-switcher&amp;quot; to your &amp;lt;code&amp;gt;.zshrc&amp;lt;/code&amp;gt; file to allow either version to be used depending on the active architecture. You may follow the steps at the end of this section after installing Brew to achieve this.&lt;br /&gt;
&lt;br /&gt;
Open Terminal (search in Spotlight on macOS).&lt;br /&gt;
&lt;br /&gt;
Install Rosetta:&lt;br /&gt;
&amp;lt;pre&amp;gt;softwareupdate --install-rosetta&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Enter an x86_64 shell to continue the following steps in a Rosetta environment. All subsequent commands should be run within this shell.&lt;br /&gt;
&amp;lt;pre&amp;gt;arch -x86_64 zsh&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Install the x86_64 version of Homebrew if you don't already have it.&lt;br /&gt;
&amp;lt;pre&amp;gt;/bin/bash -c &amp;quot;$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)&amp;quot;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Set the path:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
(echo; echo 'eval &amp;quot;$(/usr/local/bin/brew shellenv)&amp;quot;') &amp;gt;&amp;gt; /Users/$USER/.zprofile&lt;br /&gt;
eval &amp;quot;$(/usr/local/bin/brew shellenv)&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Make sure the brew command is on your path:&lt;br /&gt;
&amp;lt;pre&amp;gt;which brew&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If this command does not print &amp;lt;code&amp;gt;/usr/local/bin/brew&amp;lt;/code&amp;gt;, you should use this command:&lt;br /&gt;
&amp;lt;pre&amp;gt;export PATH=/usr/local/bin:${PATH}&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Fixbox|description=Optionally retain both ARM64 and x86 versions of Brew|ref=|collapsed=yes|fix=&lt;br /&gt;
(Optional) If you want to have both ARM64 and x86 versions of Brew installed, begin by editing your &amp;lt;code&amp;gt;.zshrc&amp;lt;/code&amp;gt; file:&lt;br /&gt;
&amp;lt;pre&amp;gt;nano ~/.zshrc&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Scroll down (by using the arrow keys or Control + V) to the bottom of the file, and paste the following script:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
if [ &amp;quot;$(arch)&amp;quot; = &amp;quot;arm64&amp;quot; ]; then&lt;br /&gt;
    eval &amp;quot;$(/opt/homebrew/bin/brew shellenv)&amp;quot;&lt;br /&gt;
else&lt;br /&gt;
    eval &amp;quot;$(/usr/local/bin/brew shellenv)&amp;quot;&lt;br /&gt;
fi&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You may now restart your terminal and use the following command to return to an x86_64 shell:&lt;br /&gt;
&amp;lt;pre&amp;gt;arch -x86_64 zsh&amp;lt;/pre&amp;gt;&lt;br /&gt;
Your shell will now select the right installation of Brew, depending on your architecture.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=== Build ===&lt;br /&gt;
Run this command to download Apple tap:&lt;br /&gt;
&amp;lt;pre&amp;gt;brew tap apple/apple http://github.com/apple/homebrew-apple&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Install the game-porting-toolkit formula. This formula downloads and compiles several large software projects. How long this takes will depend on the speed of your computer. It can take over 1 hour to complete depending on the speed of your Mac.&lt;br /&gt;
&amp;lt;pre&amp;gt;brew -v install apple/apple/game-porting-toolkit&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If during installation you see an error such as '''“Error: game-porting-toolkit: unknown or unsupported macOS version: :dunno”, your version of Homebrew doesn’t have macOS Sonoma support. Update to the latest version of Homebrew and try again.'''&lt;br /&gt;
&amp;lt;pre&amp;gt;brew update brew -v install apple/apple/game-porting-toolkit&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Preparing the toolkit ===&lt;br /&gt;
Make sure the Game Porting Toolkit dmg downloaded earlier is mounted at /Volumes/Game Porting Toolkit-1.0. Use this script to copy the Game Porting Toolkit library directory into Wine’s library directory.&lt;br /&gt;
&amp;lt;pre&amp;gt;ditto /Volumes/Game\ Porting\ Toolkit-1.0/lib/ `brew --prefix game-porting-toolkit`/lib/&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Put the 3 scripts from the Game Porting Toolkit DMG into here &amp;lt;code&amp;gt;/usr/local/bin&amp;lt;/code&amp;gt; using this command:&lt;br /&gt;
&amp;lt;pre&amp;gt;cp /Volumes/Game\ Porting\ Toolkit*/gameportingtoolkit* /usr/local/bin&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Wine prefix ===&lt;br /&gt;
A Wine prefix contains a virtual C: drive, similar to a Bottle in [[CrossOver]]. You will install the toolkit and your game into this virtual C: drive. Run the following command to create a new Wine prefix named my-game-prefix in your home directory. This will create a Wine prefix called &amp;lt;code&amp;gt;my-game-prefix&amp;lt;/code&amp;gt; but could be renamed to anything.&lt;br /&gt;
&amp;lt;pre&amp;gt;WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 winecfg&amp;lt;/pre&amp;gt;&lt;br /&gt;
*A “Wine configuration” window should appear on your screen.&lt;br /&gt;
*Change the version of Windows to Windows 10.&lt;br /&gt;
*Choose Apply and then OK to exit winecfg.&lt;br /&gt;
&lt;br /&gt;
If the “Wine configuration” window does not appear, and no new icon appears in the Dock, verify that you have correctly installed the x86_64 version of Homebrew as well as the game-porting-toolkit formula.&lt;br /&gt;
&lt;br /&gt;
Now you are ready to install a launcher or individual Windows games into this Wine prefix, see below.&lt;br /&gt;
&lt;br /&gt;
== Steam ==&lt;br /&gt;
Download the [https://cdn.cloudflare.steamstatic.com/client/installer/SteamSetup.exe Windows version of Steam] and place in your Downloads folder.&lt;br /&gt;
&lt;br /&gt;
'''Install Steam'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix ~/Downloads/SteamSetup.exe&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Run Steam'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix 'C:\Program Files (x86)/Steam/steam.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Log into Steam'''&lt;br /&gt;
&lt;br /&gt;
A common issue is that Steam will present with a blank black window.&lt;br /&gt;
&lt;br /&gt;
Alternate way of launching Steam (after installing):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
MTL_HUD_ENABLED=1 WINEESYNC=1 WINEPREFIX=~/my-game-prefix /usr/local/Cellar/game-porting-toolkit/1.0/bin/wine64 'C:\Program Files (x86)\Steam\steam.exe'&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If this continues then close the Terminal window and then re-open and try again, repeat until the login screen opens. Now you should be able to download and launch Windows games through Steam.&lt;br /&gt;
&lt;br /&gt;
== Battle.net ==&lt;br /&gt;
Download the [https://download.battle.net/en-gb/?platform=windows Windows version of Battle.net] and place in your Downloads folder.&lt;br /&gt;
&lt;br /&gt;
Make a new Wineprefix for Battle.net, you can choose to use &amp;lt;code&amp;gt;my-game-prefix&amp;lt;/code&amp;gt; or change this to anything else.&lt;br /&gt;
&amp;lt;pre&amp;gt;WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 winecfg&amp;lt;/pre&amp;gt;&lt;br /&gt;
*A “Wine configuration” window should appear on your screen.&lt;br /&gt;
*Change the version of Windows to &amp;lt;code&amp;gt;Windows 10&amp;lt;/code&amp;gt;.&lt;br /&gt;
*Choose Apply and then OK to exit winecfg.&lt;br /&gt;
&lt;br /&gt;
If you are running Diablo IV, then you need to run this script to update the Wineprefix to appear as a more recent version of Windows:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion' /v CurrentBuild /t REG_SZ /d 19042 /f&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion' /v CurrentBuildNumber /t REG_SZ /d 19042 /f&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wineserver -k&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Run Battle.net launcher'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix ~/Downloads/Battle.net-Setup.exe&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Be aware that there is an issue launching Battle.net once installed, the only current way to re-login is to 'install' the launcher again. &lt;br /&gt;
&lt;br /&gt;
Start individual game without the launcher using this command:&lt;br /&gt;
&amp;lt;pre&amp;gt;arch -x86_64 gameportingtoolkit-no-hud ~/my-game-prefix 'C:\Program Files (x86)\Diablo IV\Diablo IV Launcher.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Epic and GOG.com support with the Heroic Games Launcher ==&lt;br /&gt;
This is particularly useful because '''as it currently stands, the real Epic Games Launcher fails to install under the Game Porting Toolkit'''. Heroic supports Epic and GOG.com games.&lt;br /&gt;
&lt;br /&gt;
* Install the [https://github.com/Heroic-Games-Launcher/HeroicGamesLauncher/releases native macOS Heroic Games Launcher] or from Homebrew.&lt;br /&gt;
* Open Heroic, and log into your Epic Games and/or GOG.com account.&lt;br /&gt;
* Go to the &amp;quot;Wine Manager&amp;quot; and install a '''numbered''' version of Wine, such that it won't auto update- we are going to modify it.&lt;br /&gt;
** At the time of writing this, the newest numbered version of Wine-Crossover is &amp;lt;code&amp;gt;Wine-Crossover-Wine-22.1.0&amp;lt;/code&amp;gt;&lt;br /&gt;
* Press the folder icon that appears after installing it to open the directory containing Heroic's Wine installations.&lt;br /&gt;
* Right-click on the version of Wine you just installed and press &amp;quot;Show Package Contents&amp;quot;.&lt;br /&gt;
* Open this directory in the Terminal.&lt;br /&gt;
** If you have &amp;quot;OpenInTerminal&amp;quot; this is one button, otherwise press &amp;quot;Show Path Bar&amp;quot; and navigate where it says with &amp;quot;cd&amp;quot;.&lt;br /&gt;
** It should be something like &amp;lt;code&amp;gt;cd ~/Library/Application\ Support/heroic/tools/wine/Wine-crossover-wine-22.1.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
* &amp;lt;pre&amp;gt;cd Contents/MacOS&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Remove the existing Wine: &amp;lt;pre&amp;gt;rm wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Create a symlink to Game Porting Toolkit's Wine: &lt;br /&gt;
** If using Game Porting Toolkit Wineprefix: &amp;lt;pre&amp;gt;ln -s `/usr/local/bin/brew --prefix game-porting-toolkit`/bin/wine64 wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
** If using Whisky: &amp;lt;pre&amp;gt;ln -s /Applications/Whisky.app/Contents/Resources/Libraries/Wine/bin/wine64 wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
* &amp;lt;pre&amp;gt;cd ../Resources&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Remove the existing Wine: &amp;lt;pre&amp;gt;rm -rfv wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Create a symlink to Game Porting Toolkit's Wine&lt;br /&gt;
** If using Game Porting Toolkit Wineprefix: &amp;lt;pre&amp;gt;ln -s `/usr/local/bin/brew --prefix game-porting-toolkit` wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
** If using Whisky: &amp;lt;pre&amp;gt;ln -s /Applications/Whisky.app/Contents/Resources/Libraries/Wine wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
* We are now done with Terminal. Install any games you want to try playing.&lt;br /&gt;
* Select the game you want to play, and press the settings button in the top-right.&lt;br /&gt;
* Make sure the version of Wine you just downloaded and modified is selected.&lt;br /&gt;
* Make sure your Game Porting Toolkit Wine Prefix is selected. If you followed Apple's guide this is &amp;lt;code&amp;gt;/Users/$USER/my-game-prefix&amp;lt;/code&amp;gt;.&lt;br /&gt;
* If you Open the &amp;quot;Other&amp;quot; section you can also add any environment variables you want like &amp;lt;code&amp;gt;WINEESYNC=1&amp;quot;&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;&amp;quot;MTL_HUD_ENABLED=1&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
* Close the settings and try running the game.&lt;br /&gt;
&lt;br /&gt;
== Commands ==&lt;br /&gt;
Installing individual exe games: open your Wine prefix’s virtual C: drive in Finder (open ~/my-game-prefix/drive_c) and copy your game into an appropriate subdirectory.&lt;br /&gt;
&lt;br /&gt;
'''A. Standard launching'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix 'C:\Program Files (x86)\Steam\steam.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This launches the given Windows game binary with a visible extended Metal Performance HUD and filters logging to output from the Game Porting Toolkit.&lt;br /&gt;
&lt;br /&gt;
'''B. Launching without a HUD'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit-no-hud ~/my-game-prefix 'C:\Program Files (x86)\Steam\steam.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''C. Launching with Wine ESYNC disabled'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit-no-esync ~/my-game-prefix 'C:\Program Files (x86)\Steam\steam.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To enter Winecfg:&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix winecfg&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Shortcut ==&lt;br /&gt;
{{Image|Game Porting Toolkit Steam icon.png|Made by user Omsier.|150px}}&lt;br /&gt;
You can make a shortcut for Steam for example by using macOS built-in Automator app.&lt;br /&gt;
*Open Automator.&lt;br /&gt;
*Select New Application.&lt;br /&gt;
*In the 2nd column select Run Shell Script.&lt;br /&gt;
*Copy and paste this code into the box:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/zsh&lt;br /&gt;
&lt;br /&gt;
export PATH=&amp;quot;/usr/local/bin:${PATH}&amp;quot;&lt;br /&gt;
&lt;br /&gt;
arch -x86_64 gameportingtoolkit ~/my-game-prefix 'C:\Program Files (x86)\Steam\steam.exe'&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the shortcut somewhere e.g. Applications.&lt;br /&gt;
*Above shortcut can be customised to any Wineprefix or game.&lt;br /&gt;
*Add an icon by selecting the shortcut, pressing {{key|cmd|I}} to Get Info, then dragging and dropping a PNG file onto the top left of the window.&lt;br /&gt;
&lt;br /&gt;
== Logging ==&lt;br /&gt;
The provided bin/gameportingtoolkit* scripts can be copied onto your path to facilitate different forms of logging and launching. You can run these scripts from any shell; you don’t need to switch to the Rosetta environment first.&lt;br /&gt;
&lt;br /&gt;
Logging output will appear in the Terminal window in which you launch your game as well as the system log, which can be viewed with the Console app found in Applications ▸ Utilities. Log messages from the Game Porting Toolkit are prefixed with D3DM. By default the gameportingtoolkit* scripts will filter to just the D3DM-prefixed messages.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
=== Steam login black screen ===&lt;br /&gt;
{{Image|GPTK Steam black screen.png|Steam login black screen issue.}}&lt;br /&gt;
&lt;br /&gt;
{{Fixbox|description=Alternate Steam launch command|ref=|fix=&lt;br /&gt;
Close the Terminal window and then reopen and retry the command, repeat several times.&lt;br /&gt;
&lt;br /&gt;
Alternate way of launching Steam (after installing):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
MTL_HUD_ENABLED=1 WINEESYNC=1 WINEPREFIX=~/my-game-prefix /usr/local/Cellar/game-porting-toolkit/1.0/bin/wine64 'C:\Program Files (x86)/Steam/steam.exe'&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If still not working then try using [[CrossOver]] and create a Steam bottle, then login, then redirect this WINEPREFIX to that bottle:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=&amp;quot;/Users/$USER/Library/Application Support/CrossOver/Bottles/Steam/&amp;quot; &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
{{Fixbox|description=Use macOS Steam login|ref=&amp;lt;ref&amp;gt;https://github.com/IsaacMarovitz/Whisky/issues/41#issuecomment-1585640483&amp;lt;/ref&amp;gt;|fix=&lt;br /&gt;
#Login to Steam macOS.&lt;br /&gt;
#From &amp;lt;code&amp;gt;/Users/$USER/Library/Application Support/Steam&amp;lt;/code&amp;gt;, copy three files/folders: config, registry.vdf, userdata.&lt;br /&gt;
#Paste into &amp;lt;code&amp;gt;~/my-game-prefix/drive_c/Program Files (x86)/Steam/&amp;lt;/code&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=== Steam crashes straight after opening ===&lt;br /&gt;
{{Fixbox|description=Disconnect external monitors|ref=&amp;lt;ref&amp;gt;Reference&amp;lt;/ref&amp;gt;|fix=&lt;br /&gt;
Disconnect any external monitors.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=== Battle.net launcher won't re-launch ===&lt;br /&gt;
Re-install the launcher to reopen, no other fix at the moment.&lt;br /&gt;
&lt;br /&gt;
===Windows version too old===&lt;br /&gt;
{{Fixbox|description=Name|ref=&amp;lt;ref&amp;gt;Reference&amp;lt;/ref&amp;gt;|fix=&lt;br /&gt;
'''My game won’t run because it thinks the version of Windows is too old. Some games detect specific minimum versions of Windows and need to be updated.''' Use this script to update your wineprefix with build 19042 which should work for most games e.g. Spider-Man Remastered.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion' /v CurrentBuild /t REG_SZ /d 19042 /f&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion' /v CurrentBuildNumber /t REG_SZ /d 19042 /f&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wineserver -k&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=== steamwebhelper.exe crashes ===&lt;br /&gt;
This is caused by Steam being run through macOS Ventura or below, most users should upgrade to macOS Sonoma. You can use the CrossOver workaround to login to Steam but you'll experience constant crashing.&lt;br /&gt;
&lt;br /&gt;
=== Nothing loads after a crash ===&lt;br /&gt;
Try closing all Wine threads:&lt;br /&gt;
&amp;lt;pre&amp;gt;killall -9 wineserver &amp;amp;&amp;amp; killall -9 wine64-preloader&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Anti-cheat and DRM ===&lt;br /&gt;
Likely there will be no fixes for any games that use anti-cheat, e.g. Easy Anti Cheat. Some games have workarounds e.g. Elden Ring. Other games that use say Denuvo may also be incompatible until that DRM is removed by the game's developer.&lt;br /&gt;
&lt;br /&gt;
=== My game won’t run because it requires Mono, .NET, or the MSVCRT runtime ===&lt;br /&gt;
The game porting toolkit’s evaluation environment does not pre-install these runtime support packages. If your game makes use of one of these packages, consider searching for and downloading appropriate installers (.exe or .msi) and installing them to your evaluation environment. Additional runtime installers can be run on your environment by just launching the installer and following its installation instructions:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 &amp;lt;some-installer.exe&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
And .MSI packages can be installed by launching the Windows uninstaller application and choosing to install a downloaded .msi package:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 uninstaller&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Controller issues ===&lt;br /&gt;
{{Fixbox|description=Steam beta|ref=&amp;lt;ref&amp;gt;Reference&amp;lt;/ref&amp;gt;|fix=&lt;br /&gt;
Issues may be fixed by enrolling into the Steam beta.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=== My game looks pixelated and the display resolution is limited ===&lt;br /&gt;
{{Fixbox|description=Enable Retina mode|ref=|fix=&lt;br /&gt;
Enable Retina (high resolution) mode:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_CURRENT_USER\Software\Wine\Mac Driver' /v RetinaMode /t REG_SZ /d 'Y' /f&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Some games will not run with Retina mode enabled. To disable it:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_CURRENT_USER\Software\Wine\Mac Driver' /v RetinaMode /t REG_SZ /d 'N' /f&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
===AVX===&lt;br /&gt;
AVX and AVX2 games are not supported by Apple's arm64 chipset, e.g. Red Dead Redemption 2.&lt;br /&gt;
&lt;br /&gt;
AVX requirement can be bypassed in some games, e.g Dying Light 2.&lt;br /&gt;
&lt;br /&gt;
{{Fixbox|description=AVX Fix for Dying Light 2|ref=&amp;lt;ref&amp;gt;Reference&amp;lt;/ref&amp;gt;|fix=&lt;br /&gt;
There is a workaround in Dying Light 2 which is to simply remove the &amp;quot;runtime_dx11.dll&amp;quot;&lt;br /&gt;
&lt;br /&gt;
#Right click on DL2 on steam&lt;br /&gt;
#Manage&lt;br /&gt;
#Local files&lt;br /&gt;
#Navigate to &amp;quot;ph\work\bin\x64&amp;quot;&lt;br /&gt;
#Delete &amp;quot;runtime_dx11.dll&amp;quot;&lt;br /&gt;
#Start the game&lt;br /&gt;
&lt;br /&gt;
If for some reason you need the &amp;quot;runtime_dx11.dll&amp;quot; back, just verify integrity of game files in Steam&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
== Game compatibility list ==&lt;br /&gt;
{{ii}} '''Total number of games: '''{{#cargo_query:tables=Compatibility_macOS|fields=COUNT(*)|group by=_pageNamespace|where=Compatibility_macOS.wine='perfect' OR Compatibility_macOS.wine='playable' OR Compatibility_macOS.wine='runs' OR Compatibility_macOS.wine='menu'}}&lt;br /&gt;
{{mm}} ''This list was last refreshed on '''{{CURRENTMONTHNAME}} {{CURRENTDAY}},  {{CURRENTYEAR}}'''. [{{fullurl:{{FULLPAGENAMEE}}|action=purge}} Purge] the page to refresh it.''&lt;br /&gt;
{{#cargo_query:&lt;br /&gt;
tables=Compatibility_macOS&lt;br /&gt;
|fields=Compatibility_macOS._pageName, Compatibility_macOS.wine&lt;br /&gt;
|where=Compatibility_macOS.wine='perfect' OR Compatibility_macOS.wine='playable' OR Compatibility_macOS.wine='runs' OR Compatibility_macOS.wine='menu'&lt;br /&gt;
|limit=500&lt;br /&gt;
|offset=0&lt;br /&gt;
|format=template&lt;br /&gt;
|intro={{ListOfGames/intro}}&lt;br /&gt;
|template=ListOfGames/row&lt;br /&gt;
|outro=&amp;lt;/table&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
Old list - this should be made into individual wiki articles in order to populate the automated list above, which tracks all game compatibility methods using Wine.&lt;br /&gt;
&lt;br /&gt;
Working games:&lt;br /&gt;
* [[AnimA: Reign of Darkness]]&lt;br /&gt;
* [[Astroneer]]&lt;br /&gt;
* [[Assassins Creed 3 Remastered]]&lt;br /&gt;
* [[Batman: Arkham Knight]] - launches with steam&lt;br /&gt;
* [[Bloodstained: Ritual of the Night]]&lt;br /&gt;
* [[Brick Rigs]]&lt;br /&gt;
* [[Genshin Impact]] 3.7 (m2max with 4k 60fps stable) &lt;br /&gt;
* [[Control]] (DX12 mode, if downloaded from Heroic, needs to be ran by Terminal)&lt;br /&gt;
* [[Crysis Remastered]]&lt;br /&gt;
* [[Cultic]]&lt;br /&gt;
* [[Cuphead]]&lt;br /&gt;
* [[Cyberpunk 2077]]&lt;br /&gt;
* [[Deep Rock Galactic]]&lt;br /&gt;
* [[Deceive Inc.]] - works well if launched without EAC&lt;br /&gt;
* [[Derail Valley]] (awesome performance, no missing manuals - in-game objects for train operation - like on CrossOver)&lt;br /&gt;
* [[Diablo IV]] [https://www.reddit.com/r/macgaming/comments/14307be/comment/jn7dxzo/?utm_source=reddit&amp;amp;utm_medium=web2x&amp;amp;context=3 ]&lt;br /&gt;
* [[Dread Templar]]&lt;br /&gt;
* [[Dying Light 2]] (needs AVX fix above)&lt;br /&gt;
* [[Dyson Sphere Program]] (some objects and main character weren't visible before)&lt;br /&gt;
* [[Elden Ring]]&lt;br /&gt;
* [[Final Fantasy VII Remake Intergrade]] (~50 FPS on High settings at 1080p with M1 Pro)&lt;br /&gt;
* [[Five Nights At Freddy's Security Breach]]&lt;br /&gt;
* [[Friends vs. Friends]]&lt;br /&gt;
* [[Gloomwood]]&lt;br /&gt;
* [[God of War]] (Works somewhat well on M1 Pro (16gb), wouldn't recommend lesser hardware.)&lt;br /&gt;
* [[Going Medieval]]&lt;br /&gt;
* [[Guilty Gear Strive]]&lt;br /&gt;
* [[Grand Theft Auto V]]&lt;br /&gt;
* [[Green Hell]]&lt;br /&gt;
* [[Halo 3]] (MCC - No Online due to Easy Anti-Cheat Compatibility) [https://www.reddit.com/r/macgaming/comments/143zoos/halo_3_mcc_no_online_eac_m1_pro_game_porting/]&lt;br /&gt;
* [[Halo Reach]] (MCC) &lt;br /&gt;
* [[HI-Fi RUSH]]&lt;br /&gt;
* [[Hogwarts Legacy]] - launches fine first time but then won't relaunch - can be fixed by deleting ~/my-game-prefix/drive_c/ProgramData/Hogwarts Legacy - these are the files that are created at first launch that prevent relaunching&lt;br /&gt;
* [[Hatsune Miku: Project DIVA Mega Mix+]] - works with Retina mode; [https://github.com/blueskythlikesclouds/DivaModLoader/releases DivaModLoader] and [https://github.com/Still34/azura-diva/releases DivaNoSpy] recommended; run Steam with WINEDEBUG=-all WINEESYNC=0 WINEDLLOVERRIDES=&amp;quot;dinput8.dll=n,b&amp;quot;; may randomly crash at the title screen: use [https://github.com/nastys/IntroPatch/releases IntroPatch] as a workaround&lt;br /&gt;
* [[Infinity Racer XD]]&lt;br /&gt;
* [[Kena: Bridge of Spirits]]&lt;br /&gt;
* [[Metal Gear Solid V: The Phantom Pain]]&lt;br /&gt;
* [[Overwatch 2]]&lt;br /&gt;
* [[QUBE 2]]&lt;br /&gt;
* [[People Playground]]&lt;br /&gt;
* [[Prodeus]]&lt;br /&gt;
* [[Ready or Not]]&lt;br /&gt;
* [[Risk of Rain 2]] (does not require `-disable-gpu-skinning` like Crossover 22)&lt;br /&gt;
* [[Scarlet Nexus]]&lt;br /&gt;
* [[Sonic GT]]&lt;br /&gt;
* [[Sonic illusions]]&lt;br /&gt;
* [[Sonic Omens]]&lt;br /&gt;
* [[Sonic Project '06]]&lt;br /&gt;
* [[Spider-Man (2018)]]&lt;br /&gt;
* [[Spider-Man Miles Morales]] - ''requires Windows ver fix''&lt;br /&gt;
* [[SpongeBob SquarePants: The Cosmic Shake]]&lt;br /&gt;
* [[StarCraft: Remastered]] - Game runs fine but opening Option menu the second time will cause game not recognizing any inputs.&lt;br /&gt;
* [[Tetris Effect: Connected]] - Game window likes to be uncooperative; really doesn't like retina mode, works otherwise&lt;br /&gt;
* [[V Rising]]&lt;br /&gt;
* [[Warframe]] - ''To get installer/launcher working add dwrite (disabled) to library overrides in winecfg''&lt;br /&gt;
* [[WRATH: Aeon of Ruin]]&lt;br /&gt;
&lt;br /&gt;
Not working well:&lt;br /&gt;
* [[Horizon Zero Dawn]] - slowdown issues&lt;br /&gt;
* [[Genshin Impact]] - Launches, but stuck when calling menu using esc&lt;br /&gt;
&lt;br /&gt;
Not working yet:&lt;br /&gt;
* [[Apex Legends]] (it will stuck because of anti-cheat)&lt;br /&gt;
* Any games that use the EA Launcher&lt;br /&gt;
** [[Need for Speed Heat]]&lt;br /&gt;
** [[Need for Speed Unbound]]&lt;br /&gt;
** [[Tom Clancy's The Division 2]]&lt;br /&gt;
* [[Among Us]]&lt;br /&gt;
* [[Assassins Creed Odyssey]]&lt;br /&gt;
* [[Assassins Creed Valhalla]]&lt;br /&gt;
* [[BeamNG.Drive]] - Loads into Main Menu but crashes on last step of loading into a level with a &amp;quot;UI Process failed to respond in time&amp;quot; error&lt;br /&gt;
* [[Company of Heroes 3]]&lt;br /&gt;
* [[Death Stranding]]&lt;br /&gt;
* [[Doom (2016)]] - &amp;quot;FATAL ERROR: wglCreateContextAttribsARB failed&amp;quot; message on launch&lt;br /&gt;
* [[F1 20]] - Crash on launch (DX11 version running through GPTK is slower compared to Crossover 21)&lt;br /&gt;
* [[F1 21]] - Crash on launch&lt;br /&gt;
* [[F1 22]] - Crash on launch (  &amp;quot;Exception&amp;quot;: &amp;quot;C0000005 EXCEPTION_ACCESS_VIOLATION at 0000000141bd8687&amp;quot;)&lt;br /&gt;
* [[Grand Theft Auto IV]] - Rockstar games launcher crashes on launch, cracked version should work fine&lt;br /&gt;
* [[Halo Infinite]] - Crash on launch&lt;br /&gt;
* [[Hitman 3]] - launcher works, crash at 0x0000014136dddd hitman3+0x136dddd: int $3&lt;br /&gt;
* [[Microsoft Flight Simulator 2020]] (Steam) - Crash on launch&lt;br /&gt;
* [[Monster Hunter Rise]] - DX12 Game, it launches but window goes dark after compiling shaders.&lt;br /&gt;
* [[Monster Hunter World]] - Black Screen on Launch&lt;br /&gt;
* [[New World]] - Game loaded but couldn't connect to server due to Easy Anti Cheat&lt;br /&gt;
* [[Payday 2]]&lt;br /&gt;
* [[Red Dead Redemption 2]]&lt;br /&gt;
* [[Rogue Company]] - anti-cheat conflict.&lt;br /&gt;
* [[s&amp;amp;box]] - crashes right on launch. (it should be DX11)&lt;br /&gt;
* [[Sea of Thieves]] - Launches, but the prompt to sign into an xbox live account appears blank and cannot&lt;br /&gt;
* [[Saints Row IV: Re-Elected]] - Launches, but crashes when trying to load into game&lt;br /&gt;
* [[Slime Rancher 2]] - Launches, but can't into game from main menu&lt;br /&gt;
* [[Sonic Frontiers]] - AVX Requirement&lt;br /&gt;
* [[SpongeBob Squarepants: Battle for Bikini Bottom Rehydrated]] - Crashes when loading &lt;br /&gt;
* [[Teardown]] - When trying to launch, gives a error, &amp;quot;The program teardown.exe has encountered a serious problem and needs to close. We are sorry for the inconvenience.&amp;quot;&lt;br /&gt;
* [[The Elder Scrolls V: Skyrim Special Edition]] - the launcher gives a &amp;quot;The program teardown.exe has encountered a serious problem&amp;quot; message, not allowing us to get into the game&lt;br /&gt;
* [[theHunter: Call of the Wild]] - Crash on launch (Unhandled exception: page fault on read access to 0x0000000000000000 in 64-bit code (0x00000140b227f8))&lt;br /&gt;
* [[The Joy of Creation: Story Mode]] - Crash on launch&lt;br /&gt;
* All DX9 games (duh, this is dx 11 &amp;amp; 12 only)&lt;br /&gt;
** [[30XX]] - &amp;quot;Failed to create D3D device&amp;quot; -&amp;gt; crash on launch; this is a rare 64-bit DX9 game&lt;br /&gt;
** [[Battleblock Theater]] - Black screen -&amp;gt; crash on launch&lt;br /&gt;
** [[Black Mesa]] - Starts to load to main menu at first but then crashes&lt;br /&gt;
** [[Castle Crashers]] - Black screen -&amp;gt; crash on launch&lt;br /&gt;
** [[Killing Floor 1]] - Crash on launch&lt;br /&gt;
** [[Left 4 Dead 2]] - Black screen -&amp;gt; crash on launch&lt;br /&gt;
** [[Lego Batman: The Videogame]] - Black screen -&amp;gt; crash on launch&lt;br /&gt;
** [[Lego Batman 2: DC Super Heros]] - Black screen -&amp;gt; crash on launch&lt;br /&gt;
** [[Lego Batman 3: Beyond Gotham]] - Black screen -&amp;gt; crash on launch (You can switch to DX11 but are currently unable to do so since the game will not launch)&lt;br /&gt;
** [[Mega Man Zero/ZX Legacy Collection]] - &amp;quot;Failed to create d3d9 device&amp;quot; -&amp;gt; crash on launch&lt;br /&gt;
** [[Sonic Mania]] - Crash on launch&lt;br /&gt;
** [[StarCraft II]] -&amp;gt; &amp;quot;Failed to initialize DirectX&amp;quot; error&lt;br /&gt;
** [[Star Wars: The Old Republic]]&lt;br /&gt;
** [[Battlefield 2]] - DirectX installation failed, won't launch, see the [https://gist.github.com/chrismwendt/1d01a306cdc8618a06bdfb555743e25c error log]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{References}}&lt;br /&gt;
[[Category:Lists]]&lt;/div&gt;</summary>
		<author><name>Andytizer</name></author>
	</entry>
	<entry>
		<id>https://www.applegamingwiki.com/w/index.php?title=Control&amp;diff=7752</id>
		<title>Control</title>
		<link rel="alternate" type="text/html" href="https://www.applegamingwiki.com/w/index.php?title=Control&amp;diff=7752"/>
		<updated>2023-06-11T08:18:21Z</updated>

		<summary type="html">&lt;p&gt;Andytizer: Game Porting Toolkit&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Infobox game&lt;br /&gt;
|cover        = Control cover.png&lt;br /&gt;
|developers   = &lt;br /&gt;
{{Infobox game/row/developer|Remedy Entertainment}}&lt;br /&gt;
{{Infobox game/row/developer|Mi'pu'mi Games|ref=&amp;lt;ref&amp;gt;{{Refurl|url=https://www.mipumi.com/games/control/|title=Control - Mi'pu'mi Games|date=2022-10-05}}&amp;lt;/ref&amp;gt;}}&lt;br /&gt;
{{Infobox game/row/developer|General Arcade|GOG.com|ref=&amp;lt;ref&amp;gt;{{Refurl|url=https://generalarcade.com/project/control-ultimate-edition/|title=CONTROL: Ultimate Edition|date=2022-08-16}}&amp;lt;/ref&amp;gt;}}&lt;br /&gt;
|publishers   = &lt;br /&gt;
{{Infobox game/row/publisher|505 Games}}&lt;br /&gt;
|engines      = &lt;br /&gt;
{{Infobox game/row/engine|Northlight}}&lt;br /&gt;
|official site= https://controlgame.com&lt;br /&gt;
|reception    =&lt;br /&gt;
{{Infobox game/row/reception|Metacritic|control|85}}&lt;br /&gt;
{{Infobox game/row/reception|Opencritic|7858/control|84}}&lt;br /&gt;
{{Infobox game/row/reception|IGDB|control|83}}&lt;br /&gt;
|taxonomy     =&lt;br /&gt;
{{Infobox game/row/taxonomy/monetization      | One-time game purchase, Expansion pack }}&lt;br /&gt;
{{Infobox game/row/taxonomy/microtransactions | None }}&lt;br /&gt;
{{Infobox game/row/taxonomy/modes             | Singleplayer }}&lt;br /&gt;
{{Infobox game/row/taxonomy/pacing            | Real-time }}&lt;br /&gt;
{{Infobox game/row/taxonomy/perspectives      | Third-person }}&lt;br /&gt;
{{Infobox game/row/taxonomy/controls          | Direct control }}&lt;br /&gt;
{{Infobox game/row/taxonomy/genres            | Action }}&lt;br /&gt;
{{Infobox game/row/taxonomy/art styles        | Realistic }}&lt;br /&gt;
{{Infobox game/row/taxonomy/themes            | Sci-fi, North America }}&lt;br /&gt;
{{Infobox game/row/taxonomy/series            | Control }}&lt;br /&gt;
|steam appid  = 870780&lt;br /&gt;
|steam appid side  = &lt;br /&gt;
|gogcom id    = 2049187585&lt;br /&gt;
|hltb         = 57507&lt;br /&gt;
|lutris       = control&lt;br /&gt;
|strategywiki = Control&lt;br /&gt;
|mobygames    = Control&lt;br /&gt;
|wikipedia    = Control (video game)&lt;br /&gt;
|winehq       = &lt;br /&gt;
|license      = commercial&lt;br /&gt;
|pcgamingwiki = Control&lt;br /&gt;
|codeweavers  = Control&lt;br /&gt;
|asg          = Mvi9Wtjy29rF1KY1YW2Fbr/control&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
{{Introduction&lt;br /&gt;
|release history   = &lt;br /&gt;
|current state     = &lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==Availability==&lt;br /&gt;
{{Availability}}&lt;br /&gt;
&lt;br /&gt;
{{Compatibility/macOS&lt;br /&gt;
|native               = na&lt;br /&gt;
|native notes         = &lt;br /&gt;
|rosetta 2            = na&lt;br /&gt;
|rosetta 2 notes      = &lt;br /&gt;
|ios-ipados app       = na&lt;br /&gt;
|ios-ipados app notes = &lt;br /&gt;
|crossover            = runs&lt;br /&gt;
|crossover notes      = Major graphical issues (Fixed in Crossover 22 Beta)(black screen).&amp;lt;ref&amp;gt;{{Refdevice|user=Andytizer|date=2021-05-07|device=MacBook Air M1 2020 8 GB RAM|os=macOS 11.3.1|method=CrossOver Nightly 2021-05-04|version=|store=GOG|resolution=|settings=|framerate=|controller=|url=|title=|comment=Black screen but good framerates}}&amp;lt;/ref&amp;gt; Unplayable.&amp;lt;ref&amp;gt;{{Refurl|url=https://applesilicongames.com/games/Mvi9Wtjy29rF1KY1YW2Fbr/control|title=Control on Apple Silicon Games|date=2021-04-12|snippet=Crashes on &amp;quot;Press Return to continue&amp;quot; screen.}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
|wine                 = perfect&lt;br /&gt;
|wine notes           = [[Game Porting Toolkit]] - the game must be run from Terminal, you must cd into the Control folder otherwise it'll complain of missing Data folder. Change the Control_DX12.exe to Control.exe and launch.&lt;br /&gt;
|parallels            = playable&lt;br /&gt;
|parallels notes      = Low framerates on M1 Mac but playable, make sure to launch DirectX 11 exe.&amp;lt;ref&amp;gt;{{Refdevice|user=Andytizer|date=2021-05-01|device=MacBook Air M1 2020 8 GB RAM|os=macOS 11.3.1|method=Windows ARM Build 21370 on Parallels 16.5|version=|store=GOG|resolution=|settings=|framerate=|controller=|url=|title=|comment=}}&amp;lt;/ref&amp;gt;Unplayable.&amp;lt;ref&amp;gt;{{Refdevice|user=BringBackTron and Jhelzei|date=2021-04-20|device=MacBook Pro M1 2020 8GB RAM|os=macOS 11.3 Beta 8|method=Windows ARM Build 21359 on Parallels 16.5|version=|store=|resolution=1280x800|settings=Low|framerate=|controller=|url=|title=|comment=Stable FPS, unplayable due to crashing when combat starts}}&amp;lt;/ref&amp;gt;Great framerates on medium settings with M1 Max.&amp;lt;ref&amp;gt;{{Refdevice|user=Captcool|date=2022-04-14|device=MacBook Pro M1 Max 32-Core GPU 64 GB|os=macOS 12.3.1|method=Parallels 17.1.2 + Windows 11 21H2 Build 22000.613|version=|resolution=1920x1080|settings=Medium|framerate=40|controller=|url=|title=|comment=}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
|windows 10 arm       = na&lt;br /&gt;
|windows 10 arm notes = &lt;br /&gt;
|linux arm            = na&lt;br /&gt;
|linux arm notes      = &lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==Screenshots==&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
Control_m1max.jpg|Control Parallels + Win11&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{References}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Games]]&lt;/div&gt;</summary>
		<author><name>Andytizer</name></author>
	</entry>
	<entry>
		<id>https://www.applegamingwiki.com/w/index.php?title=Game_Porting_Toolkit&amp;diff=7748</id>
		<title>Game Porting Toolkit</title>
		<link rel="alternate" type="text/html" href="https://www.applegamingwiki.com/w/index.php?title=Game_Porting_Toolkit&amp;diff=7748"/>
		<updated>2023-06-11T07:03:54Z</updated>

		<summary type="html">&lt;p&gt;Andytizer: /* = Nothing loads after a crash */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Image|Game Porting Toolkit.png|Released 6th June, 2023 at WWDC23.}}&lt;br /&gt;
&lt;br /&gt;
Game Porting Toolkit is Apple's new translation layer released on 6th June, 2023. Game Porting Toolkit ('''GPT''') combines Wine with Apple's own D3DMetal which supports DirectX 11 and 12&amp;lt;ref&amp;gt;{{Refurl|url=https://mastodon.gamedev.place/@gavkar/110501451404624870|title=Gokhan Avkarogullari: &amp;quot;@yiningkarlli @aras @romainguy…&amp;quot; - Gamedev Mastodon}}&amp;lt;/ref&amp;gt;. This is less user-friendly method of installing Windows games on Apple Silicon Macs compared to [[CrossOver]] or [[Parallels]], however it unlocks the ability to play many DirectX 12 games. A lot more games work using GPTK, however, games that use anti-cheat or aggressive DRMs generally don't work, along with games that require AVX/AVX 2, e.g. The Last of Us Part I.&lt;br /&gt;
&lt;br /&gt;
== Toolkit install instructions ==&lt;br /&gt;
=== Requirements ===&lt;br /&gt;
*macOS Sonoma should be used, currently it is in beta. You can download the pkg installer from [https://mrmacintosh.com/macos-sonoma-full-installer-database-download-directly-from-apple/ Mr Macintosh blog].&lt;br /&gt;
*macOS Ventura causes large numbers of issues with steamwebhelper.exe crashing so it isn't recommended, use the macOS Sonoma beta.&lt;br /&gt;
*Visit [https://developer.apple.com/downloads Apple Developer Downloads site], these files are now free to download use for any logged in Apple account.&lt;br /&gt;
**Search for Command Line Tools for Xcode 15 beta and download the dmg file, then install it. &lt;br /&gt;
*If you have an old version Xcode installed, remove it.&lt;br /&gt;
**Search for Game Porting Toolkit and download it. Open the dmg file and then run the pkg.&lt;br /&gt;
&lt;br /&gt;
=== Homebrew ===&lt;br /&gt;
Note: if you have ever installed Homebrew before, then it is advised to remove ARM64 Homebrew as this can interfere with this build process. Either use a Homebrew uninstall script or delete the folder &amp;lt;code&amp;gt;/opt/homebrew/bin&amp;lt;/code&amp;gt;. If you prefer to keep both ARM64 and x86 versions of brew installed, you may add a &amp;quot;brew-switcher&amp;quot; to your &amp;lt;code&amp;gt;.zshrc&amp;lt;/code&amp;gt; file to allow either version to be used depending on the active architecture. You may follow the steps at the end of this section after installing Brew to achieve this.&lt;br /&gt;
&lt;br /&gt;
Open Terminal (search in Spotlight on macOS).&lt;br /&gt;
&lt;br /&gt;
Install Rosetta:&lt;br /&gt;
&amp;lt;pre&amp;gt;softwareupdate --install-rosetta&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Enter an x86_64 shell to continue the following steps in a Rosetta environment. All subsequent commands should be run within this shell.&lt;br /&gt;
&amp;lt;pre&amp;gt;arch -x86_64 zsh&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Install the x86_64 version of Homebrew if you don't already have it.&lt;br /&gt;
&amp;lt;pre&amp;gt;/bin/bash -c &amp;quot;$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)&amp;quot;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Set the path:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
(echo; echo 'eval &amp;quot;$(/usr/local/bin/brew shellenv)&amp;quot;') &amp;gt;&amp;gt; /Users/$USER/.zprofile&lt;br /&gt;
eval &amp;quot;$(/usr/local/bin/brew shellenv)&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Make sure the brew command is on your path:&lt;br /&gt;
&amp;lt;pre&amp;gt;which brew&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If this command does not print &amp;lt;code&amp;gt;/usr/local/bin/brew&amp;lt;/code&amp;gt;, you should use this command:&lt;br /&gt;
&amp;lt;pre&amp;gt;export PATH=/usr/local/bin:${PATH}&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Fixbox|description=Optionally retain both ARM64 and x86 versions of Brew|ref=|collapsed=yes|fix=&lt;br /&gt;
(Optional) If you want to have both ARM64 and x86 versions of Brew installed, begin by editing your &amp;lt;code&amp;gt;.zshrc&amp;lt;/code&amp;gt; file:&lt;br /&gt;
&amp;lt;pre&amp;gt;nano ~/.zshrc&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Scroll down (by using the arrow keys or Control + V) to the bottom of the file, and paste the following script:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
if [ &amp;quot;$(arch)&amp;quot; = &amp;quot;arm64&amp;quot; ]; then&lt;br /&gt;
    eval &amp;quot;$(/opt/homebrew/bin/brew shellenv)&amp;quot;&lt;br /&gt;
else&lt;br /&gt;
    eval &amp;quot;$(/usr/local/bin/brew shellenv)&amp;quot;&lt;br /&gt;
fi&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You may now restart your terminal and use the following command to return to an x86_64 shell:&lt;br /&gt;
&amp;lt;pre&amp;gt;arch -x86_64 zsh&amp;lt;/pre&amp;gt;&lt;br /&gt;
Your shell will now select the right installation of Brew, depending on your architecture.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=== Build ===&lt;br /&gt;
Run this command to download Apple tap:&lt;br /&gt;
&amp;lt;pre&amp;gt;brew tap apple/apple http://github.com/apple/homebrew-apple&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Install the game-porting-toolkit formula. This formula downloads and compiles several large software projects. How long this takes will depend on the speed of your computer. It can take over 1 hour to complete depending on the speed of your Mac.&lt;br /&gt;
&amp;lt;pre&amp;gt;brew -v install apple/apple/game-porting-toolkit&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If during installation you see an error such as '''“Error: game-porting-toolkit: unknown or unsupported macOS version: :dunno”, your version of Homebrew doesn’t have macOS Sonoma support. Update to the latest version of Homebrew and try again.'''&lt;br /&gt;
&amp;lt;pre&amp;gt;brew update brew -v install apple/apple/game-porting-toolkit&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Preparing the toolkit ===&lt;br /&gt;
Make sure the Game Porting Toolkit dmg downloaded earlier is mounted at /Volumes/Game Porting Toolkit-1.0. Use this script to copy the Game Porting Toolkit library directory into Wine’s library directory.&lt;br /&gt;
&amp;lt;pre&amp;gt;ditto /Volumes/Game\ Porting\ Toolkit-1.0/lib/ `brew --prefix game-porting-toolkit`/lib/&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Put the 3 scripts from the Game Porting Toolkit DMG into here &amp;lt;code&amp;gt;/usr/local/bin&amp;lt;/code&amp;gt; using this command:&lt;br /&gt;
&amp;lt;pre&amp;gt;cp /Volumes/Game\ Porting\ Toolkit*/gameportingtoolkit* /usr/local/bin&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Wine prefix ===&lt;br /&gt;
A Wine prefix contains a virtual C: drive, similar to a Bottle in [[CrossOver]]. You will install the toolkit and your game into this virtual C: drive. Run the following command to create a new Wine prefix named my-game-prefix in your home directory. This will create a Wine prefix called &amp;lt;code&amp;gt;my-game-prefix&amp;lt;/code&amp;gt; but could be renamed to anything.&lt;br /&gt;
&amp;lt;pre&amp;gt;WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 winecfg&amp;lt;/pre&amp;gt;&lt;br /&gt;
*A “Wine configuration” window should appear on your screen.&lt;br /&gt;
*Change the version of Windows to Windows 10.&lt;br /&gt;
*Choose Apply and then OK to exit winecfg.&lt;br /&gt;
&lt;br /&gt;
If the “Wine configuration” window does not appear, and no new icon appears in the Dock, verify that you have correctly installed the x86_64 version of Homebrew as well as the game-porting-toolkit formula.&lt;br /&gt;
&lt;br /&gt;
Now you are ready to install a launcher or individual Windows games into this Wine prefix, see below.&lt;br /&gt;
&lt;br /&gt;
== Steam ==&lt;br /&gt;
Download the [https://cdn.cloudflare.steamstatic.com/client/installer/SteamSetup.exe Windows version of Steam] and place in your Downloads folder.&lt;br /&gt;
&lt;br /&gt;
'''Install Steam'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix ~/Downloads/SteamSetup.exe&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Run Steam'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix 'C:\Program Files (x86)/Steam/steam.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Log into Steam'''&lt;br /&gt;
&lt;br /&gt;
A common issue is that Steam will present with a blank black window.&lt;br /&gt;
&lt;br /&gt;
Alternate way of launching Steam (after installing):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
MTL_HUD_ENABLED=1 WINEESYNC=1 WINEPREFIX=~/my-game-prefix /usr/local/Cellar/game-porting-toolkit/1.0/bin/wine64 'C:\Program Files (x86)\Steam\steam.exe'&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If this continues then close the Terminal window and then re-open and try again, repeat until the login screen opens. Now you should be able to download and launch Windows games through Steam.&lt;br /&gt;
&lt;br /&gt;
== Battle.net ==&lt;br /&gt;
Download the [https://download.battle.net/en-gb/?platform=windows Windows version of Battle.net] and place in your Downloads folder.&lt;br /&gt;
&lt;br /&gt;
Make a new Wineprefix for Battle.net, you can choose to use &amp;lt;code&amp;gt;my-game-prefix&amp;lt;/code&amp;gt; or change this to anything else.&lt;br /&gt;
&amp;lt;pre&amp;gt;WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 winecfg&amp;lt;/pre&amp;gt;&lt;br /&gt;
*A “Wine configuration” window should appear on your screen.&lt;br /&gt;
*Change the version of Windows to &amp;lt;code&amp;gt;Windows 10&amp;lt;/code&amp;gt;.&lt;br /&gt;
*Choose Apply and then OK to exit winecfg.&lt;br /&gt;
&lt;br /&gt;
If you are running Diablo IV, then you need to run this script to update the Wineprefix to appear as a more recent version of Windows:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion' /v CurrentBuild /t REG_SZ /d 19042 /f&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion' /v CurrentBuildNumber /t REG_SZ /d 19042 /f&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wineserver -k&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Run Battle.net launcher'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix ~/Downloads/Battle.net-Setup.exe&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Be aware that there is an issue launching Battle.net once installed, the only current way to re-login is to 'install' the launcher again. &lt;br /&gt;
&lt;br /&gt;
Start individual game without the launcher using this command:&lt;br /&gt;
&amp;lt;pre&amp;gt;arch -x86_64 gameportingtoolkit-no-hud ~/my-game-prefix 'C:\Program Files (x86)\Diablo IV\Diablo IV Launcher.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Epic and GOG.com support with the Heroic Games Launcher ==&lt;br /&gt;
This is particularly useful because '''as it currently stands, the real Epic Games Launcher fails to install under the Game Porting Toolkit'''. Heroic supports Epic and GOG.com games.&lt;br /&gt;
&lt;br /&gt;
* Install the [https://github.com/Heroic-Games-Launcher/HeroicGamesLauncher/releases native macOS Heroic Games Launcher] or from Homebrew.&lt;br /&gt;
* Open Heroic, and log into your Epic Games and/or GOG.com account.&lt;br /&gt;
* Go to the &amp;quot;Wine Manager&amp;quot; and install a '''numbered''' version of Wine, such that it won't auto update- we are going to modify it.&lt;br /&gt;
** At the time of writing this, the newest numbered version of Wine-Crossover is &amp;lt;code&amp;gt;Wine-Crossover-Wine-22.1.0&amp;lt;/code&amp;gt;&lt;br /&gt;
* Press the folder icon that appears after installing it to open the directory containing Heroic's Wine installations.&lt;br /&gt;
* Right-click on the version of Wine you just installed and press &amp;quot;Show Package Contents&amp;quot;.&lt;br /&gt;
* Open this directory in the Terminal.&lt;br /&gt;
** If you have &amp;quot;OpenInTerminal&amp;quot; this is one button, otherwise press &amp;quot;Show Path Bar&amp;quot; and navigate where it says with &amp;quot;cd&amp;quot;.&lt;br /&gt;
** It should be something like &amp;lt;code&amp;gt;cd ~/Library/Application\ Support/heroic/tools/wine/Wine-crossover-wine-22.1.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
* &amp;lt;pre&amp;gt;cd Contents/MacOS&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Remove the existing Wine: &amp;lt;pre&amp;gt;rm wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Create a symlink to Game Porting Toolkit's Wine: &lt;br /&gt;
** If using Game Porting Toolkit Wineprefix: &amp;lt;pre&amp;gt;ln -s `/usr/local/bin/brew --prefix game-porting-toolkit`/bin/wine64 wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
** If using Whisky: &amp;lt;pre&amp;gt;ln -s /Applications/Whisky.app/Contents/Resources/Libraries/Wine/bin/wine64 wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
* &amp;lt;pre&amp;gt;cd ../Resources&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Remove the existing Wine: &amp;lt;pre&amp;gt;rm -rfv wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Create a symlink to Game Porting Toolkit's Wine&lt;br /&gt;
** If using Game Porting Toolkit Wineprefix: &amp;lt;pre&amp;gt;ln -s `/usr/local/bin/brew --prefix game-porting-toolkit` wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
** If using Whisky: &amp;lt;pre&amp;gt;ln -s /Applications/Whisky.app/Contents/Resources/Libraries/Wine wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
* We are now done with Terminal. Install any games you want to try playing.&lt;br /&gt;
* Select the game you want to play, and press the settings button in the top-right.&lt;br /&gt;
* Make sure the version of Wine you just downloaded and modified is selected.&lt;br /&gt;
* Make sure your Game Porting Toolkit Wine Prefix is selected. If you followed Apple's guide this is &amp;lt;code&amp;gt;/Users/$USER/my-game-prefix&amp;lt;/code&amp;gt;.&lt;br /&gt;
* If you Open the &amp;quot;Other&amp;quot; section you can also add any environment variables you want like &amp;lt;code&amp;gt;WINEESYNC=1&amp;quot;&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;&amp;quot;MTL_HUD_ENABLED=1&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
* Close the settings and try running the game.&lt;br /&gt;
&lt;br /&gt;
== Commands ==&lt;br /&gt;
Installing individual exe games: open your Wine prefix’s virtual C: drive in Finder (open ~/my-game-prefix/drive_c) and copy your game into an appropriate subdirectory.&lt;br /&gt;
&lt;br /&gt;
'''A. Standard launching'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix 'C:\Program Files (x86)\Steam\steam.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This launches the given Windows game binary with a visible extended Metal Performance HUD and filters logging to output from the Game Porting Toolkit.&lt;br /&gt;
&lt;br /&gt;
'''B. Launching without a HUD'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit-no-hud ~/my-game-prefix 'C:\Program Files (x86)\Steam\steam.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''C. Launching with Wine ESYNC disabled'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit-no-esync ~/my-game-prefix 'C:\Program Files (x86)\Steam\steam.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To enter Winecfg:&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix winecfg&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Shortcut ==&lt;br /&gt;
{{Image|Game Porting Toolkit Steam icon.png|Made by user Omsier.|150px}}&lt;br /&gt;
You can make a shortcut for Steam for example by using macOS built-in Automator app.&lt;br /&gt;
*Open Automator.&lt;br /&gt;
*Select New Application.&lt;br /&gt;
*In the 2nd column select Run Shell Script.&lt;br /&gt;
*Copy and paste this code into the box:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/zsh&lt;br /&gt;
&lt;br /&gt;
export PATH=&amp;quot;/usr/local/bin:${PATH}&amp;quot;&lt;br /&gt;
&lt;br /&gt;
arch -x86_64 gameportingtoolkit ~/my-game-prefix 'C:\Program Files (x86)\Steam\steam.exe'&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the shortcut somewhere e.g. Applications.&lt;br /&gt;
*Above shortcut can be customised to any Wineprefix or game.&lt;br /&gt;
*Add an icon by selecting the shortcut, pressing {{key|cmd|I}} to Get Info, then dragging and dropping a PNG file onto the top left of the window.&lt;br /&gt;
&lt;br /&gt;
== Logging ==&lt;br /&gt;
The provided bin/gameportingtoolkit* scripts can be copied onto your path to facilitate different forms of logging and launching. You can run these scripts from any shell; you don’t need to switch to the Rosetta environment first.&lt;br /&gt;
&lt;br /&gt;
Logging output will appear in the Terminal window in which you launch your game as well as the system log, which can be viewed with the Console app found in Applications ▸ Utilities. Log messages from the Game Porting Toolkit are prefixed with D3DM. By default the gameportingtoolkit* scripts will filter to just the D3DM-prefixed messages.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
=== Steam login black screen ===&lt;br /&gt;
{{Image|GPTK Steam black screen.png|Steam login black screen issue.}}&lt;br /&gt;
&lt;br /&gt;
{{Fixbox|description=Alternate Steam launch command|ref=|fix=&lt;br /&gt;
Close the Terminal window and then reopen and retry the command, repeat several times.&lt;br /&gt;
&lt;br /&gt;
Alternate way of launching Steam (after installing):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
MTL_HUD_ENABLED=1 WINEESYNC=1 WINEPREFIX=~/my-game-prefix /usr/local/Cellar/game-porting-toolkit/1.0/bin/wine64 'C:\Program Files (x86)/Steam/steam.exe'&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If still not working then try using [[CrossOver]] and create a Steam bottle, then login, then redirect this WINEPREFIX to that bottle:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=&amp;quot;/Users/$USER/Library/Application Support/CrossOver/Bottles/Steam/&amp;quot; &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
{{Fixbox|description=Use macOS Steam login|ref=&amp;lt;ref&amp;gt;https://github.com/IsaacMarovitz/Whisky/issues/41#issuecomment-1585640483&amp;lt;/ref&amp;gt;|fix=&lt;br /&gt;
#Login to Steam macOS.&lt;br /&gt;
#From &amp;lt;code&amp;gt;/Users/$USER/Library/Application Support/Steam&amp;lt;/code&amp;gt;, copy three files/folders: config, registry.vdf, userdata.&lt;br /&gt;
#Paste into &amp;lt;code&amp;gt;~/my-game-prefix/drive_c/Program Files (x86)/Steam/&amp;lt;/code&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=== Steam crashes straight after opening ===&lt;br /&gt;
{{Fixbox|description=Disconnect external monitors|ref=&amp;lt;ref&amp;gt;Reference&amp;lt;/ref&amp;gt;|fix=&lt;br /&gt;
Disconnect any external monitors.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=== Battle.net launcher won't re-launch ===&lt;br /&gt;
Re-install the launcher to reopen, no other fix at the moment.&lt;br /&gt;
&lt;br /&gt;
===Windows version too old===&lt;br /&gt;
{{Fixbox|description=Name|ref=&amp;lt;ref&amp;gt;Reference&amp;lt;/ref&amp;gt;|fix=&lt;br /&gt;
'''My game won’t run because it thinks the version of Windows is too old. Some games detect specific minimum versions of Windows and need to be updated.''' Use this script to update your wineprefix with build 19042 which should work for most games e.g. Spider-Man Remastered.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion' /v CurrentBuild /t REG_SZ /d 19042 /f&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion' /v CurrentBuildNumber /t REG_SZ /d 19042 /f&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wineserver -k&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=== steamwebhelper.exe crashes ===&lt;br /&gt;
This is caused by Steam being run through macOS Ventura or below, most users should upgrade to macOS Sonoma. You can use the CrossOver workaround to login to Steam but you'll experience constant crashing.&lt;br /&gt;
&lt;br /&gt;
=== Nothing loads after a crash ===&lt;br /&gt;
Try closing all Wine threads:&lt;br /&gt;
&amp;lt;pre&amp;gt;killall -9 wineserver &amp;amp;&amp;amp; killall -9 wine64-preloader&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Anti-cheat and DRM ===&lt;br /&gt;
Likely there will be no fixes for any games that use anti-cheat, e.g. Easy Anti Cheat. Some games have workarounds e.g. Elden Ring. Other games that use say Denuvo may also be incompatible until that DRM is removed by the game's developer.&lt;br /&gt;
&lt;br /&gt;
=== My game won’t run because it requires Mono, .NET, or the MSVCRT runtime ===&lt;br /&gt;
The game porting toolkit’s evaluation environment does not pre-install these runtime support packages. If your game makes use of one of these packages, consider searching for and downloading appropriate installers (.exe or .msi) and installing them to your evaluation environment. Additional runtime installers can be run on your environment by just launching the installer and following its installation instructions:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 &amp;lt;some-installer.exe&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
And .MSI packages can be installed by launching the Windows uninstaller application and choosing to install a downloaded .msi package:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 uninstaller&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Controller issues ===&lt;br /&gt;
{{Fixbox|description=Steam beta|ref=&amp;lt;ref&amp;gt;Reference&amp;lt;/ref&amp;gt;|fix=&lt;br /&gt;
Issues may be fixed by enrolling into the Steam beta.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=== My game looks pixelated and the display resolution is limited ===&lt;br /&gt;
{{Fixbox|description=Enable Retina mode|ref=|fix=&lt;br /&gt;
Enable Retina (high resolution) mode:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_CURRENT_USER\Software\Wine\Mac Driver' /v RetinaMode /t REG_SZ /d 'Y' /f&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Some games will not run with Retina mode enabled. To disable it:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_CURRENT_USER\Software\Wine\Mac Driver' /v RetinaMode /t REG_SZ /d 'N' /f&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
===AVX===&lt;br /&gt;
AVX and AVX2 games are not supported by Apple's arm64 chipset, e.g. Red Dead Redemption 2.&lt;br /&gt;
&lt;br /&gt;
AVX requirement can be bypassed in some games, e.g Dying Light 2.&lt;br /&gt;
&lt;br /&gt;
{{Fixbox|description=AVX Fix for Dying Light 2|ref=&amp;lt;ref&amp;gt;Reference&amp;lt;/ref&amp;gt;|fix=&lt;br /&gt;
There is a workaround in Dying Light 2 which is to simply remove the &amp;quot;runtime_dx11.dll&amp;quot;&lt;br /&gt;
&lt;br /&gt;
#Right click on DL2 on steam&lt;br /&gt;
#Manage&lt;br /&gt;
#Local files&lt;br /&gt;
#Navigate to &amp;quot;ph\work\bin\x64&amp;quot;&lt;br /&gt;
#Delete &amp;quot;runtime_dx11.dll&amp;quot;&lt;br /&gt;
#Start the game&lt;br /&gt;
&lt;br /&gt;
If for some reason you need the &amp;quot;runtime_dx11.dll&amp;quot; back, just verify integrity of game files in Steam&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
== Game compatibility list ==&lt;br /&gt;
{{ii}} '''Total number of games: '''{{#cargo_query:tables=Compatibility_macOS|fields=COUNT(*)|group by=_pageNamespace|where=Compatibility_macOS.wine='perfect' OR Compatibility_macOS.wine='playable' OR Compatibility_macOS.wine='runs' OR Compatibility_macOS.wine='menu'}}&lt;br /&gt;
{{mm}} ''This list was last refreshed on '''{{CURRENTMONTHNAME}} {{CURRENTDAY}},  {{CURRENTYEAR}}'''. [{{fullurl:{{FULLPAGENAMEE}}|action=purge}} Purge] the page to refresh it.''&lt;br /&gt;
{{#cargo_query:&lt;br /&gt;
tables=Compatibility_macOS&lt;br /&gt;
|fields=Compatibility_macOS._pageName, Compatibility_macOS.wine&lt;br /&gt;
|where=Compatibility_macOS.wine='perfect' OR Compatibility_macOS.wine='playable' OR Compatibility_macOS.wine='runs' OR Compatibility_macOS.wine='menu'&lt;br /&gt;
|limit=500&lt;br /&gt;
|offset=0&lt;br /&gt;
|format=template&lt;br /&gt;
|intro={{ListOfGames/intro}}&lt;br /&gt;
|template=ListOfGames/row&lt;br /&gt;
|outro=&amp;lt;/table&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
Old list - this should be made into individual wiki articles in order to populate the automated list above, which tracks all game compatibility methods using Wine.&lt;br /&gt;
&lt;br /&gt;
Working games:&lt;br /&gt;
* [[Astroneer]]&lt;br /&gt;
* [[Assassins Creed 3 Remastered]]&lt;br /&gt;
* [[Batman: Arkham Knight]] - launches with steam&lt;br /&gt;
* [[Bloodstained: Ritual of the Night]]&lt;br /&gt;
* [[Brick Rigs]]&lt;br /&gt;
* [[Genshin Impact]] 3.7 (m2max with 4k 60fps stable) &lt;br /&gt;
* [[Control]] (DX12 mode, if downloaded from Heroic, needs to be ran by Terminal)&lt;br /&gt;
* [[Crysis Remastered]]&lt;br /&gt;
* [[Cultic]]&lt;br /&gt;
* [[Cuphead]]&lt;br /&gt;
* [[Cyberpunk 2077]]&lt;br /&gt;
* [[Deep Rock Galactic]]&lt;br /&gt;
* [[Deceive Inc.]] - works well if launched without EAC&lt;br /&gt;
* [[Derail Valley]] (awesome performance, no missing manuals - in-game objects for train operation - like on CrossOver)&lt;br /&gt;
* [[Diablo IV]] [https://www.reddit.com/r/macgaming/comments/14307be/comment/jn7dxzo/?utm_source=reddit&amp;amp;utm_medium=web2x&amp;amp;context=3 ]&lt;br /&gt;
* [[Dread Templar]]&lt;br /&gt;
* [[Dying Light 2]] (needs AVX fix above)&lt;br /&gt;
* [[Dyson Sphere Program]] (some objects and main character weren't visible before)&lt;br /&gt;
* [[Elden Ring]]&lt;br /&gt;
* [[Final Fantasy VII Remake Intergrade]] (~50 FPS on High settings at 1080p with M1 Pro)&lt;br /&gt;
* [[Friends vs. Friends]]&lt;br /&gt;
* [[Gloomwood]]&lt;br /&gt;
* [[God of War]] (Works somewhat well on M1 Pro (16gb), wouldn't recommend lesser hardware.)&lt;br /&gt;
* [[Going Medieval]]&lt;br /&gt;
* [[Guilty Gear Strive]]&lt;br /&gt;
* [[Grand Theft Auto V]]&lt;br /&gt;
* [[Green Hell]]&lt;br /&gt;
* [[Halo 3]] (MCC - No Online due to Easy Anti-Cheat Compatibility) [https://www.reddit.com/r/macgaming/comments/143zoos/halo_3_mcc_no_online_eac_m1_pro_game_porting/]&lt;br /&gt;
* [[Halo Reach]] (MCC) &lt;br /&gt;
* [[HI-Fi RUSH]]&lt;br /&gt;
* [[Hogwarts Legacy]] - launches fine first time but then won't relaunch - can be fixed by deleting ~/my-game-prefix/drive_c/ProgramData/Hogwarts Legacy - these are the files that are created at first launch that prevent relaunching&lt;br /&gt;
* [[Hatsune Miku: Project DIVA Mega Mix+]] - works with Retina mode; [https://github.com/blueskythlikesclouds/DivaModLoader/releases DivaModLoader] and [https://github.com/Still34/azura-diva/releases DivaNoSpy] recommended; run Steam with WINEDEBUG=-all WINEESYNC=0 WINEDLLOVERRIDES=&amp;quot;dinput8.dll=n,b&amp;quot;; may randomly crash at the title screen: use [https://github.com/nastys/IntroPatch/releases IntroPatch] as a workaround&lt;br /&gt;
* [[Kena: Bridge of Spirits]]&lt;br /&gt;
* [[Metal Gear Solid V: The Phantom Pain]]&lt;br /&gt;
* [[Overwatch 2]]&lt;br /&gt;
* [[QUBE 2]]&lt;br /&gt;
* [[People Playground]]&lt;br /&gt;
* [[Prodeus]]&lt;br /&gt;
* [[Ready or Not]]&lt;br /&gt;
* [[Risk of Rain 2]] (does not require `-disable-gpu-skinning` like Crossover 22)&lt;br /&gt;
* [[Scarlet Nexus]]&lt;br /&gt;
* [[Sonic GT]]&lt;br /&gt;
* [[Sonic illusions]]&lt;br /&gt;
* [[Sonic Omens]]&lt;br /&gt;
* [[Sonic P-06]]&lt;br /&gt;
* [[Spider-Man (2018)]]&lt;br /&gt;
* [[Spider-Man Miles Morales]] - ''requires Windows ver fix''&lt;br /&gt;
* [[SpongeBob SquarePants: The Cosmic Shake]]&lt;br /&gt;
* [[StarCraft: Remastered]] - Game runs fine but opening Option menu the second time will cause game not recognizing any inputs.&lt;br /&gt;
* [[Tetris Effect: Connected]] - Game window likes to be uncooperative; really doesn't like retina mode, works otherwise&lt;br /&gt;
* [[V Rising]]&lt;br /&gt;
* [[Warframe]] - ''To get installer/launcher working add dwrite (disabled) to library overrides in winecfg''&lt;br /&gt;
* [[WRATH: Aeon of Ruin]]&lt;br /&gt;
&lt;br /&gt;
Not working well:&lt;br /&gt;
* [[Horizon Zero Dawn]] - slowdown issues&lt;br /&gt;
* [[Genshin Impact]] - Launches, but stuck when calling menu using esc&lt;br /&gt;
&lt;br /&gt;
Not working yet:&lt;br /&gt;
* [[Apex Legends]] (it will stuck because of anti-cheat)&lt;br /&gt;
* Any games that use the EA Launcher&lt;br /&gt;
** [[Need for Speed Heat]]&lt;br /&gt;
** [[Need for Speed Unbound]]&lt;br /&gt;
** [[Tom Clancy's The Division 2]]&lt;br /&gt;
* [[Among Us]]&lt;br /&gt;
* [[Assassins Creed Odyssey]]&lt;br /&gt;
* [[Assassins Creed Valhalla]]&lt;br /&gt;
* [[BeamNG.Drive]] - Loads into Main Menu but crashes on last step of loading into a level with a &amp;quot;UI Process failed to respond in time&amp;quot; error&lt;br /&gt;
* [[Company of Heroes 3]]&lt;br /&gt;
* [[Death Stranding]]&lt;br /&gt;
* [[Doom (2016)]] - &amp;quot;FATAL ERROR: wglCreateContextAttribsARB failed&amp;quot; message on launch&lt;br /&gt;
* [[F1 20]] - Crash on launch (DX11 version running through GPT is slower compared to Crossover 21)&lt;br /&gt;
* [[F1 21]] - Crash on launch&lt;br /&gt;
* [[F1 22]] - Crash on launch (  &amp;quot;Exception&amp;quot;: &amp;quot;C0000005 EXCEPTION_ACCESS_VIOLATION at 0000000141bd8687&amp;quot;)&lt;br /&gt;
* [[Grand Theft Auto IV]] - Rockstar games launcher crashes on launch, cracked version should work fine&lt;br /&gt;
* [[Halo Infinite]] - Crash on launch&lt;br /&gt;
* [[Hitman 3]] - launcher works, crash at 0x0000014136dddd hitman3+0x136dddd: int $3&lt;br /&gt;
* [[Microsoft Flight Simulator 2020]] (Steam) - Crash on launch&lt;br /&gt;
* [[Monster Hunter Rise]] - DX12 Game, it launches but window goes dark after compiling shaders.&lt;br /&gt;
* [[Monster Hunter World]] - Black Screen on Launch&lt;br /&gt;
* [[New World]] - Game loaded but couldn't connect to server due to Easy Anti Cheat&lt;br /&gt;
* [[Payday 2]]&lt;br /&gt;
* [[Red Dead Redemption 2]]&lt;br /&gt;
* [[Rogue Company]] - anti-cheat conflict.&lt;br /&gt;
* [[s&amp;amp;box]] - crashes right on launch. (it should be DX11)&lt;br /&gt;
* [[Sea of Thieves]] - Launches, but the prompt to sign into an xbox live account appears blank and cannot&lt;br /&gt;
* [[Saints Row IV: Re-Elected]] - Launches, but crashes when trying to load into game&lt;br /&gt;
* [[Slime Rancher 2]] - Launches, but can't into game from main menu&lt;br /&gt;
* [[SpongeBob Squarepants: Battle for Bikini Bottom Rehydrated]] - Crashes when loading &lt;br /&gt;
* [[Teardown]] - When trying to launch, gives a error, &amp;quot;The program teardown.exe has encountered a serious problem and needs to close. We are sorry for the inconvenience.&amp;quot;&lt;br /&gt;
* [[The Elder Scrolls V: Skyrim Special Edition]] - the launcher gives a &amp;quot;The program teardown.exe has encountered a serious problem&amp;quot; message, not allowing us to get into the game&lt;br /&gt;
* [[theHunter: Call of the Wild]] - Crash on launch (Unhandled exception: page fault on read access to 0x0000000000000000 in 64-bit code (0x00000140b227f8))&lt;br /&gt;
* All DX9 games (duh, this is dx 11 &amp;amp; 12 only)&lt;br /&gt;
** [[30XX]] - &amp;quot;Failed to create D3D device&amp;quot; -&amp;gt; crash on launch; this is a rare 64-bit DX9 game&lt;br /&gt;
** [[Battleblock Theater]] - Black screen -&amp;gt; crash on launch&lt;br /&gt;
** [[Black Mesa]] - Starts to load to main menu at first but then crashes&lt;br /&gt;
** [[Castle Crashers]] - Black screen -&amp;gt; crash on launch&lt;br /&gt;
** [[Killing Floor 1]] - Crash on launch&lt;br /&gt;
** [[Left 4 Dead 2]] - Black screen -&amp;gt; crash on launch&lt;br /&gt;
** [[Lego Batman: The Videogame]] - Black screen -&amp;gt; crash on launch&lt;br /&gt;
** [[Lego Batman 2: DC Super Heros]] - Black screen -&amp;gt; crash on launch&lt;br /&gt;
** [[Lego Batman 3: Beyond Gotham]] - Black screen -&amp;gt; crash on launch (You can switch to DX11 but are currently unable to do so since the game will not launch)&lt;br /&gt;
** [[Mega Man Zero/ZX Legacy Collection]] - &amp;quot;Failed to create d3d9 device&amp;quot; -&amp;gt; crash on launch&lt;br /&gt;
** [[Sonic Mania]] - Crash on launch&lt;br /&gt;
** [[StarCraft II]] -&amp;gt; &amp;quot;Failed to initialize DirectX&amp;quot; error&lt;br /&gt;
** [[Star Wars: The Old Republic]]&lt;br /&gt;
** [[Battlefield 2]] - DirectX installation failed, won't launch, see the [https://gist.github.com/chrismwendt/1d01a306cdc8618a06bdfb555743e25c error log]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{References}}&lt;br /&gt;
[[Category:Lists]]&lt;/div&gt;</summary>
		<author><name>Andytizer</name></author>
	</entry>
	<entry>
		<id>https://www.applegamingwiki.com/w/index.php?title=Game_Porting_Toolkit&amp;diff=7747</id>
		<title>Game Porting Toolkit</title>
		<link rel="alternate" type="text/html" href="https://www.applegamingwiki.com/w/index.php?title=Game_Porting_Toolkit&amp;diff=7747"/>
		<updated>2023-06-11T06:54:15Z</updated>

		<summary type="html">&lt;p&gt;Andytizer: /* Troubleshooting */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Image|Game Porting Toolkit.png|Released 6th June, 2023 at WWDC23.}}&lt;br /&gt;
&lt;br /&gt;
Game Porting Toolkit is Apple's new translation layer released on 6th June, 2023. Game Porting Toolkit ('''GPT''') combines Wine with Apple's own D3DMetal which supports DirectX 11 and 12&amp;lt;ref&amp;gt;{{Refurl|url=https://mastodon.gamedev.place/@gavkar/110501451404624870|title=Gokhan Avkarogullari: &amp;quot;@yiningkarlli @aras @romainguy…&amp;quot; - Gamedev Mastodon}}&amp;lt;/ref&amp;gt;. This is less user-friendly method of installing Windows games on Apple Silicon Macs compared to [[CrossOver]] or [[Parallels]], however it unlocks the ability to play many DirectX 12 games. A lot more games work using GPTK, however, games that use anti-cheat or aggressive DRMs generally don't work, along with games that require AVX/AVX 2, e.g. The Last of Us Part I.&lt;br /&gt;
&lt;br /&gt;
== Toolkit install instructions ==&lt;br /&gt;
=== Requirements ===&lt;br /&gt;
*macOS Sonoma should be used, currently it is in beta. You can download the pkg installer from [https://mrmacintosh.com/macos-sonoma-full-installer-database-download-directly-from-apple/ Mr Macintosh blog].&lt;br /&gt;
*macOS Ventura causes large numbers of issues with steamwebhelper.exe crashing so it isn't recommended, use the macOS Sonoma beta.&lt;br /&gt;
*Visit [https://developer.apple.com/downloads Apple Developer Downloads site], these files are now free to download use for any logged in Apple account.&lt;br /&gt;
**Search for Command Line Tools for Xcode 15 beta and download the dmg file, then install it. &lt;br /&gt;
*If you have an old version Xcode installed, remove it.&lt;br /&gt;
**Search for Game Porting Toolkit and download it. Open the dmg file and then run the pkg.&lt;br /&gt;
&lt;br /&gt;
=== Homebrew ===&lt;br /&gt;
Note: if you have ever installed Homebrew before, then it is advised to remove ARM64 Homebrew as this can interfere with this build process. Either use a Homebrew uninstall script or delete the folder &amp;lt;code&amp;gt;/opt/homebrew/bin&amp;lt;/code&amp;gt;. If you prefer to keep both ARM64 and x86 versions of brew installed, you may add a &amp;quot;brew-switcher&amp;quot; to your &amp;lt;code&amp;gt;.zshrc&amp;lt;/code&amp;gt; file to allow either version to be used depending on the active architecture. You may follow the steps at the end of this section after installing Brew to achieve this.&lt;br /&gt;
&lt;br /&gt;
Open Terminal (search in Spotlight on macOS).&lt;br /&gt;
&lt;br /&gt;
Install Rosetta:&lt;br /&gt;
&amp;lt;pre&amp;gt;softwareupdate --install-rosetta&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Enter an x86_64 shell to continue the following steps in a Rosetta environment. All subsequent commands should be run within this shell.&lt;br /&gt;
&amp;lt;pre&amp;gt;arch -x86_64 zsh&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Install the x86_64 version of Homebrew if you don't already have it.&lt;br /&gt;
&amp;lt;pre&amp;gt;/bin/bash -c &amp;quot;$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)&amp;quot;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Set the path:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
(echo; echo 'eval &amp;quot;$(/usr/local/bin/brew shellenv)&amp;quot;') &amp;gt;&amp;gt; /Users/$USER/.zprofile&lt;br /&gt;
eval &amp;quot;$(/usr/local/bin/brew shellenv)&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Make sure the brew command is on your path:&lt;br /&gt;
&amp;lt;pre&amp;gt;which brew&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If this command does not print &amp;lt;code&amp;gt;/usr/local/bin/brew&amp;lt;/code&amp;gt;, you should use this command:&lt;br /&gt;
&amp;lt;pre&amp;gt;export PATH=/usr/local/bin:${PATH}&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Fixbox|description=Optionally retain both ARM64 and x86 versions of Brew|ref=|collapsed=yes|fix=&lt;br /&gt;
(Optional) If you want to have both ARM64 and x86 versions of Brew installed, begin by editing your &amp;lt;code&amp;gt;.zshrc&amp;lt;/code&amp;gt; file:&lt;br /&gt;
&amp;lt;pre&amp;gt;nano ~/.zshrc&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Scroll down (by using the arrow keys or Control + V) to the bottom of the file, and paste the following script:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
if [ &amp;quot;$(arch)&amp;quot; = &amp;quot;arm64&amp;quot; ]; then&lt;br /&gt;
    eval &amp;quot;$(/opt/homebrew/bin/brew shellenv)&amp;quot;&lt;br /&gt;
else&lt;br /&gt;
    eval &amp;quot;$(/usr/local/bin/brew shellenv)&amp;quot;&lt;br /&gt;
fi&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You may now restart your terminal and use the following command to return to an x86_64 shell:&lt;br /&gt;
&amp;lt;pre&amp;gt;arch -x86_64 zsh&amp;lt;/pre&amp;gt;&lt;br /&gt;
Your shell will now select the right installation of Brew, depending on your architecture.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=== Build ===&lt;br /&gt;
Run this command to download Apple tap:&lt;br /&gt;
&amp;lt;pre&amp;gt;brew tap apple/apple http://github.com/apple/homebrew-apple&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Install the game-porting-toolkit formula. This formula downloads and compiles several large software projects. How long this takes will depend on the speed of your computer. It can take over 1 hour to complete depending on the speed of your Mac.&lt;br /&gt;
&amp;lt;pre&amp;gt;brew -v install apple/apple/game-porting-toolkit&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If during installation you see an error such as '''“Error: game-porting-toolkit: unknown or unsupported macOS version: :dunno”, your version of Homebrew doesn’t have macOS Sonoma support. Update to the latest version of Homebrew and try again.'''&lt;br /&gt;
&amp;lt;pre&amp;gt;brew update brew -v install apple/apple/game-porting-toolkit&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Preparing the toolkit ===&lt;br /&gt;
Make sure the Game Porting Toolkit dmg downloaded earlier is mounted at /Volumes/Game Porting Toolkit-1.0. Use this script to copy the Game Porting Toolkit library directory into Wine’s library directory.&lt;br /&gt;
&amp;lt;pre&amp;gt;ditto /Volumes/Game\ Porting\ Toolkit-1.0/lib/ `brew --prefix game-porting-toolkit`/lib/&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Put the 3 scripts from the Game Porting Toolkit DMG into here &amp;lt;code&amp;gt;/usr/local/bin&amp;lt;/code&amp;gt; using this command:&lt;br /&gt;
&amp;lt;pre&amp;gt;cp /Volumes/Game\ Porting\ Toolkit*/gameportingtoolkit* /usr/local/bin&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Wine prefix ===&lt;br /&gt;
A Wine prefix contains a virtual C: drive, similar to a Bottle in [[CrossOver]]. You will install the toolkit and your game into this virtual C: drive. Run the following command to create a new Wine prefix named my-game-prefix in your home directory. This will create a Wine prefix called &amp;lt;code&amp;gt;my-game-prefix&amp;lt;/code&amp;gt; but could be renamed to anything.&lt;br /&gt;
&amp;lt;pre&amp;gt;WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 winecfg&amp;lt;/pre&amp;gt;&lt;br /&gt;
*A “Wine configuration” window should appear on your screen.&lt;br /&gt;
*Change the version of Windows to Windows 10.&lt;br /&gt;
*Choose Apply and then OK to exit winecfg.&lt;br /&gt;
&lt;br /&gt;
If the “Wine configuration” window does not appear, and no new icon appears in the Dock, verify that you have correctly installed the x86_64 version of Homebrew as well as the game-porting-toolkit formula.&lt;br /&gt;
&lt;br /&gt;
Now you are ready to install a launcher or individual Windows games into this Wine prefix, see below.&lt;br /&gt;
&lt;br /&gt;
== Steam ==&lt;br /&gt;
Download the [https://cdn.cloudflare.steamstatic.com/client/installer/SteamSetup.exe Windows version of Steam] and place in your Downloads folder.&lt;br /&gt;
&lt;br /&gt;
'''Install Steam'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix ~/Downloads/SteamSetup.exe&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Run Steam'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix 'C:\Program Files (x86)/Steam/steam.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Log into Steam'''&lt;br /&gt;
&lt;br /&gt;
A common issue is that Steam will present with a blank black window.&lt;br /&gt;
&lt;br /&gt;
Alternate way of launching Steam (after installing):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
MTL_HUD_ENABLED=1 WINEESYNC=1 WINEPREFIX=~/my-game-prefix /usr/local/Cellar/game-porting-toolkit/1.0/bin/wine64 'C:\Program Files (x86)\Steam\steam.exe'&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If this continues then close the Terminal window and then re-open and try again, repeat until the login screen opens. Now you should be able to download and launch Windows games through Steam.&lt;br /&gt;
&lt;br /&gt;
== Battle.net ==&lt;br /&gt;
Download the [https://download.battle.net/en-gb/?platform=windows Windows version of Battle.net] and place in your Downloads folder.&lt;br /&gt;
&lt;br /&gt;
Make a new Wineprefix for Battle.net, you can choose to use &amp;lt;code&amp;gt;my-game-prefix&amp;lt;/code&amp;gt; or change this to anything else.&lt;br /&gt;
&amp;lt;pre&amp;gt;WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 winecfg&amp;lt;/pre&amp;gt;&lt;br /&gt;
*A “Wine configuration” window should appear on your screen.&lt;br /&gt;
*Change the version of Windows to &amp;lt;code&amp;gt;Windows 10&amp;lt;/code&amp;gt;.&lt;br /&gt;
*Choose Apply and then OK to exit winecfg.&lt;br /&gt;
&lt;br /&gt;
If you are running Diablo IV, then you need to run this script to update the Wineprefix to appear as a more recent version of Windows:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion' /v CurrentBuild /t REG_SZ /d 19042 /f&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion' /v CurrentBuildNumber /t REG_SZ /d 19042 /f&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wineserver -k&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Run Battle.net launcher'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix ~/Downloads/Battle.net-Setup.exe&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Be aware that there is an issue launching Battle.net once installed, the only current way to re-login is to 'install' the launcher again. &lt;br /&gt;
&lt;br /&gt;
Start individual game without the launcher using this command:&lt;br /&gt;
&amp;lt;pre&amp;gt;arch -x86_64 gameportingtoolkit-no-hud ~/my-game-prefix 'C:\Program Files (x86)\Diablo IV\Diablo IV Launcher.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Epic and GOG.com support with the Heroic Games Launcher ==&lt;br /&gt;
This is particularly useful because '''as it currently stands, the real Epic Games Launcher fails to install under the Game Porting Toolkit'''. Heroic supports Epic and GOG.com games.&lt;br /&gt;
&lt;br /&gt;
* Install the [https://github.com/Heroic-Games-Launcher/HeroicGamesLauncher/releases native macOS Heroic Games Launcher] or from Homebrew.&lt;br /&gt;
* Open Heroic, and log into your Epic Games and/or GOG.com account.&lt;br /&gt;
* Go to the &amp;quot;Wine Manager&amp;quot; and install a '''numbered''' version of Wine, such that it won't auto update- we are going to modify it.&lt;br /&gt;
** At the time of writing this, the newest numbered version of Wine-Crossover is &amp;lt;code&amp;gt;Wine-Crossover-Wine-22.1.0&amp;lt;/code&amp;gt;&lt;br /&gt;
* Press the folder icon that appears after installing it to open the directory containing Heroic's Wine installations.&lt;br /&gt;
* Right-click on the version of Wine you just installed and press &amp;quot;Show Package Contents&amp;quot;.&lt;br /&gt;
* Open this directory in the Terminal.&lt;br /&gt;
** If you have &amp;quot;OpenInTerminal&amp;quot; this is one button, otherwise press &amp;quot;Show Path Bar&amp;quot; and navigate where it says with &amp;quot;cd&amp;quot;.&lt;br /&gt;
** It should be something like &amp;lt;code&amp;gt;cd ~/Library/Application\ Support/heroic/tools/wine/Wine-crossover-wine-22.1.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
* &amp;lt;pre&amp;gt;cd Contents/MacOS&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Remove the existing Wine: &amp;lt;pre&amp;gt;rm wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Create a symlink to Game Porting Toolkit's Wine: &lt;br /&gt;
** If using Game Porting Toolkit Wineprefix: &amp;lt;pre&amp;gt;ln -s `/usr/local/bin/brew --prefix game-porting-toolkit`/bin/wine64 wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
** If using Whisky: &amp;lt;pre&amp;gt;ln -s /Applications/Whisky.app/Contents/Resources/Libraries/Wine/bin/wine64 wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
* &amp;lt;pre&amp;gt;cd ../Resources&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Remove the existing Wine: &amp;lt;pre&amp;gt;rm -rfv wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Create a symlink to Game Porting Toolkit's Wine&lt;br /&gt;
** If using Game Porting Toolkit Wineprefix: &amp;lt;pre&amp;gt;ln -s `/usr/local/bin/brew --prefix game-porting-toolkit` wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
** If using Whisky: &amp;lt;pre&amp;gt;ln -s /Applications/Whisky.app/Contents/Resources/Libraries/Wine wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
* We are now done with Terminal. Install any games you want to try playing.&lt;br /&gt;
* Select the game you want to play, and press the settings button in the top-right.&lt;br /&gt;
* Make sure the version of Wine you just downloaded and modified is selected.&lt;br /&gt;
* Make sure your Game Porting Toolkit Wine Prefix is selected. If you followed Apple's guide this is &amp;lt;code&amp;gt;/Users/$USER/my-game-prefix&amp;lt;/code&amp;gt;.&lt;br /&gt;
* If you Open the &amp;quot;Other&amp;quot; section you can also add any environment variables you want like &amp;lt;code&amp;gt;WINEESYNC=1&amp;quot;&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;&amp;quot;MTL_HUD_ENABLED=1&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
* Close the settings and try running the game.&lt;br /&gt;
&lt;br /&gt;
== Commands ==&lt;br /&gt;
Installing individual exe games: open your Wine prefix’s virtual C: drive in Finder (open ~/my-game-prefix/drive_c) and copy your game into an appropriate subdirectory.&lt;br /&gt;
&lt;br /&gt;
'''A. Standard launching'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix 'C:\Program Files (x86)\Steam\steam.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This launches the given Windows game binary with a visible extended Metal Performance HUD and filters logging to output from the Game Porting Toolkit.&lt;br /&gt;
&lt;br /&gt;
'''B. Launching without a HUD'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit-no-hud ~/my-game-prefix 'C:\Program Files (x86)\Steam\steam.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''C. Launching with Wine ESYNC disabled'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit-no-esync ~/my-game-prefix 'C:\Program Files (x86)\Steam\steam.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To enter Winecfg:&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix winecfg&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Shortcut ==&lt;br /&gt;
{{Image|Game Porting Toolkit Steam icon.png|Made by user Omsier.|150px}}&lt;br /&gt;
You can make a shortcut for Steam for example by using macOS built-in Automator app.&lt;br /&gt;
*Open Automator.&lt;br /&gt;
*Select New Application.&lt;br /&gt;
*In the 2nd column select Run Shell Script.&lt;br /&gt;
*Copy and paste this code into the box:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/zsh&lt;br /&gt;
&lt;br /&gt;
export PATH=&amp;quot;/usr/local/bin:${PATH}&amp;quot;&lt;br /&gt;
&lt;br /&gt;
arch -x86_64 gameportingtoolkit ~/my-game-prefix 'C:\Program Files (x86)\Steam\steam.exe'&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the shortcut somewhere e.g. Applications.&lt;br /&gt;
*Above shortcut can be customised to any Wineprefix or game.&lt;br /&gt;
*Add an icon by selecting the shortcut, pressing {{key|cmd|I}} to Get Info, then dragging and dropping a PNG file onto the top left of the window.&lt;br /&gt;
&lt;br /&gt;
== Logging ==&lt;br /&gt;
The provided bin/gameportingtoolkit* scripts can be copied onto your path to facilitate different forms of logging and launching. You can run these scripts from any shell; you don’t need to switch to the Rosetta environment first.&lt;br /&gt;
&lt;br /&gt;
Logging output will appear in the Terminal window in which you launch your game as well as the system log, which can be viewed with the Console app found in Applications ▸ Utilities. Log messages from the Game Porting Toolkit are prefixed with D3DM. By default the gameportingtoolkit* scripts will filter to just the D3DM-prefixed messages.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
=== Steam login black screen ===&lt;br /&gt;
{{Image|GPTK Steam black screen.png|Steam login black screen issue.}}&lt;br /&gt;
&lt;br /&gt;
{{Fixbox|description=Alternate Steam launch command|ref=|fix=&lt;br /&gt;
Close the Terminal window and then reopen and retry the command, repeat several times.&lt;br /&gt;
&lt;br /&gt;
Alternate way of launching Steam (after installing):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
MTL_HUD_ENABLED=1 WINEESYNC=1 WINEPREFIX=~/my-game-prefix /usr/local/Cellar/game-porting-toolkit/1.0/bin/wine64 'C:\Program Files (x86)/Steam/steam.exe'&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If still not working then try using [[CrossOver]] and create a Steam bottle, then login, then redirect this WINEPREFIX to that bottle:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=&amp;quot;/Users/$USER/Library/Application Support/CrossOver/Bottles/Steam/&amp;quot; &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
{{Fixbox|description=Use macOS Steam login|ref=&amp;lt;ref&amp;gt;https://github.com/IsaacMarovitz/Whisky/issues/41#issuecomment-1585640483&amp;lt;/ref&amp;gt;|fix=&lt;br /&gt;
#Login to Steam macOS.&lt;br /&gt;
#From &amp;lt;code&amp;gt;/Users/$USER/Library/Application Support/Steam&amp;lt;/code&amp;gt;, copy three files/folders: config, registry.vdf, userdata.&lt;br /&gt;
#Paste into &amp;lt;code&amp;gt;~/my-game-prefix/drive_c/Program Files (x86)/Steam/&amp;lt;/code&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=== Steam crashes straight after opening ===&lt;br /&gt;
{{Fixbox|description=Disconnect external monitors|ref=&amp;lt;ref&amp;gt;Reference&amp;lt;/ref&amp;gt;|fix=&lt;br /&gt;
Disconnect any external monitors.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=== Battle.net launcher won't re-launch ===&lt;br /&gt;
Re-install the launcher to reopen, no other fix at the moment.&lt;br /&gt;
&lt;br /&gt;
===Windows version too old===&lt;br /&gt;
{{Fixbox|description=Name|ref=&amp;lt;ref&amp;gt;Reference&amp;lt;/ref&amp;gt;|fix=&lt;br /&gt;
'''My game won’t run because it thinks the version of Windows is too old. Some games detect specific minimum versions of Windows and need to be updated.''' Use this script to update your wineprefix with build 19042 which should work for most games e.g. Spider-Man Remastered.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion' /v CurrentBuild /t REG_SZ /d 19042 /f&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion' /v CurrentBuildNumber /t REG_SZ /d 19042 /f&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wineserver -k&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=== steamwebhelper.exe crashes ===&lt;br /&gt;
This is caused by Steam being run through macOS Ventura or below, most users should upgrade to macOS Sonoma. You can use the CrossOver workaround to login to Steam but you'll experience constant crashing.&lt;br /&gt;
&lt;br /&gt;
=== Nothing loads after a crash ==&lt;br /&gt;
Try closing all Wine threads:&lt;br /&gt;
&amp;lt;pre&amp;gt;killall -9 wineserver &amp;amp;&amp;amp; killall -9 wine64-preloader&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Anti-cheat and DRM ===&lt;br /&gt;
Likely there will be no fixes for any games that use anti-cheat, e.g. Easy Anti Cheat. Some games have workarounds e.g. Elden Ring. Other games that use say Denuvo may also be incompatible until that DRM is removed by the game's developer.&lt;br /&gt;
&lt;br /&gt;
=== My game won’t run because it requires Mono, .NET, or the MSVCRT runtime ===&lt;br /&gt;
The game porting toolkit’s evaluation environment does not pre-install these runtime support packages. If your game makes use of one of these packages, consider searching for and downloading appropriate installers (.exe or .msi) and installing them to your evaluation environment. Additional runtime installers can be run on your environment by just launching the installer and following its installation instructions:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 &amp;lt;some-installer.exe&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
And .MSI packages can be installed by launching the Windows uninstaller application and choosing to install a downloaded .msi package:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 uninstaller&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Controller issues ===&lt;br /&gt;
{{Fixbox|description=Steam beta|ref=&amp;lt;ref&amp;gt;Reference&amp;lt;/ref&amp;gt;|fix=&lt;br /&gt;
Issues may be fixed by enrolling into the Steam beta.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=== My game looks pixelated and the display resolution is limited ===&lt;br /&gt;
{{Fixbox|description=Enable Retina mode|ref=|fix=&lt;br /&gt;
Enable Retina (high resolution) mode:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_CURRENT_USER\Software\Wine\Mac Driver' /v RetinaMode /t REG_SZ /d 'Y' /f&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Some games will not run with Retina mode enabled. To disable it:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_CURRENT_USER\Software\Wine\Mac Driver' /v RetinaMode /t REG_SZ /d 'N' /f&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
===AVX===&lt;br /&gt;
AVX and AVX2 games are not supported by Apple's arm64 chipset, e.g. Red Dead Redemption 2.&lt;br /&gt;
&lt;br /&gt;
AVX requirement can be bypassed in some games, e.g Dying Light 2.&lt;br /&gt;
&lt;br /&gt;
{{Fixbox|description=AVX Fix for Dying Light 2|ref=&amp;lt;ref&amp;gt;Reference&amp;lt;/ref&amp;gt;|fix=&lt;br /&gt;
There is a workaround in Dying Light 2 which is to simply remove the &amp;quot;runtime_dx11.dll&amp;quot;&lt;br /&gt;
&lt;br /&gt;
#Right click on DL2 on steam&lt;br /&gt;
#Manage&lt;br /&gt;
#Local files&lt;br /&gt;
#Navigate to &amp;quot;ph\work\bin\x64&amp;quot;&lt;br /&gt;
#Delete &amp;quot;runtime_dx11.dll&amp;quot;&lt;br /&gt;
#Start the game&lt;br /&gt;
&lt;br /&gt;
If for some reason you need the &amp;quot;runtime_dx11.dll&amp;quot; back, just verify integrity of game files in Steam&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
== Game compatibility list ==&lt;br /&gt;
{{ii}} '''Total number of games: '''{{#cargo_query:tables=Compatibility_macOS|fields=COUNT(*)|group by=_pageNamespace|where=Compatibility_macOS.wine='perfect' OR Compatibility_macOS.wine='playable' OR Compatibility_macOS.wine='runs' OR Compatibility_macOS.wine='menu'}}&lt;br /&gt;
{{mm}} ''This list was last refreshed on '''{{CURRENTMONTHNAME}} {{CURRENTDAY}},  {{CURRENTYEAR}}'''. [{{fullurl:{{FULLPAGENAMEE}}|action=purge}} Purge] the page to refresh it.''&lt;br /&gt;
{{#cargo_query:&lt;br /&gt;
tables=Compatibility_macOS&lt;br /&gt;
|fields=Compatibility_macOS._pageName, Compatibility_macOS.wine&lt;br /&gt;
|where=Compatibility_macOS.wine='perfect' OR Compatibility_macOS.wine='playable' OR Compatibility_macOS.wine='runs' OR Compatibility_macOS.wine='menu'&lt;br /&gt;
|limit=500&lt;br /&gt;
|offset=0&lt;br /&gt;
|format=template&lt;br /&gt;
|intro={{ListOfGames/intro}}&lt;br /&gt;
|template=ListOfGames/row&lt;br /&gt;
|outro=&amp;lt;/table&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
Old list - this should be made into individual wiki articles in order to populate the automated list above, which tracks all game compatibility methods using Wine.&lt;br /&gt;
&lt;br /&gt;
Working games:&lt;br /&gt;
* [[Astroneer]]&lt;br /&gt;
* [[Assassins Creed 3 Remastered]]&lt;br /&gt;
* [[Batman: Arkham Knight]] - launches with steam&lt;br /&gt;
* [[Bloodstained: Ritual of the Night]]&lt;br /&gt;
* [[Brick Rigs]]&lt;br /&gt;
* [[Genshin Impact]] 3.7 (m2max with 4k 60fps stable) &lt;br /&gt;
* [[Control]] (DX12 mode, if downloaded from Heroic, needs to be ran by Terminal)&lt;br /&gt;
* [[Crysis Remastered]]&lt;br /&gt;
* [[Cultic]]&lt;br /&gt;
* [[Cuphead]]&lt;br /&gt;
* [[Cyberpunk 2077]]&lt;br /&gt;
* [[Deep Rock Galactic]]&lt;br /&gt;
* [[Deceive Inc.]] - works well if launched without EAC&lt;br /&gt;
* [[Derail Valley]] (awesome performance, no missing manuals - in-game objects for train operation - like on CrossOver)&lt;br /&gt;
* [[Diablo IV]] [https://www.reddit.com/r/macgaming/comments/14307be/comment/jn7dxzo/?utm_source=reddit&amp;amp;utm_medium=web2x&amp;amp;context=3 ]&lt;br /&gt;
* [[Dread Templar]]&lt;br /&gt;
* [[Dying Light 2]] (needs AVX fix above)&lt;br /&gt;
* [[Dyson Sphere Program]] (some objects and main character weren't visible before)&lt;br /&gt;
* [[Elden Ring]]&lt;br /&gt;
* [[Final Fantasy VII Remake Intergrade]] (~50 FPS on High settings at 1080p with M1 Pro)&lt;br /&gt;
* [[Friends vs. Friends]]&lt;br /&gt;
* [[Gloomwood]]&lt;br /&gt;
* [[God of War]] (Works somewhat well on M1 Pro (16gb), wouldn't recommend lesser hardware.)&lt;br /&gt;
* [[Going Medieval]]&lt;br /&gt;
* [[Guilty Gear Strive]]&lt;br /&gt;
* [[Grand Theft Auto V]]&lt;br /&gt;
* [[Green Hell]]&lt;br /&gt;
* [[Halo 3]] (MCC - No Online due to Easy Anti-Cheat Compatibility) [https://www.reddit.com/r/macgaming/comments/143zoos/halo_3_mcc_no_online_eac_m1_pro_game_porting/]&lt;br /&gt;
* [[Halo Reach]] (MCC) &lt;br /&gt;
* [[HI-Fi RUSH]]&lt;br /&gt;
* [[Hogwarts Legacy]] - launches fine first time but then won't relaunch - can be fixed by deleting ~/my-game-prefix/drive_c/ProgramData/Hogwarts Legacy - these are the files that are created at first launch that prevent relaunching&lt;br /&gt;
* [[Hatsune Miku: Project DIVA Mega Mix+]] - works with Retina mode; [https://github.com/blueskythlikesclouds/DivaModLoader/releases DivaModLoader] and [https://github.com/Still34/azura-diva/releases DivaNoSpy] recommended; run Steam with WINEDEBUG=-all WINEESYNC=0 WINEDLLOVERRIDES=&amp;quot;dinput8.dll=n,b&amp;quot;; may randomly crash at the title screen: use [https://github.com/nastys/IntroPatch/releases IntroPatch] as a workaround&lt;br /&gt;
* [[Kena: Bridge of Spirits]]&lt;br /&gt;
* [[Metal Gear Solid V: The Phantom Pain]]&lt;br /&gt;
* [[Overwatch 2]]&lt;br /&gt;
* [[QUBE 2]]&lt;br /&gt;
* [[People Playground]]&lt;br /&gt;
* [[Prodeus]]&lt;br /&gt;
* [[Ready or Not]]&lt;br /&gt;
* [[Risk of Rain 2]] (does not require `-disable-gpu-skinning` like Crossover 22)&lt;br /&gt;
* [[Scarlet Nexus]]&lt;br /&gt;
* [[Sonic GT]]&lt;br /&gt;
* [[Sonic illusions]]&lt;br /&gt;
* [[Sonic Omens]]&lt;br /&gt;
* [[Sonic P-06]]&lt;br /&gt;
* [[Spider-Man (2018)]]&lt;br /&gt;
* [[Spider-Man Miles Morales]] - ''requires Windows ver fix''&lt;br /&gt;
* [[SpongeBob SquarePants: The Cosmic Shake]]&lt;br /&gt;
* [[StarCraft: Remastered]] - Game runs fine but opening Option menu the second time will cause game not recognizing any inputs.&lt;br /&gt;
* [[Tetris Effect: Connected]] - Game window likes to be uncooperative; really doesn't like retina mode, works otherwise&lt;br /&gt;
* [[V Rising]]&lt;br /&gt;
* [[Warframe]] - ''To get installer/launcher working add dwrite (disabled) to library overrides in winecfg''&lt;br /&gt;
* [[WRATH: Aeon of Ruin]]&lt;br /&gt;
&lt;br /&gt;
Not working well:&lt;br /&gt;
* [[Horizon Zero Dawn]] - slowdown issues&lt;br /&gt;
* [[Genshin Impact]] - Launches, but stuck when calling menu using esc&lt;br /&gt;
&lt;br /&gt;
Not working yet:&lt;br /&gt;
* [[Apex Legends]] (it will stuck because of anti-cheat)&lt;br /&gt;
* Any games that use the EA Launcher&lt;br /&gt;
** [[Need for Speed Heat]]&lt;br /&gt;
** [[Need for Speed Unbound]]&lt;br /&gt;
** [[Tom Clancy's The Division 2]]&lt;br /&gt;
* [[Among Us]]&lt;br /&gt;
* [[Assassins Creed Odyssey]]&lt;br /&gt;
* [[Assassins Creed Valhalla]]&lt;br /&gt;
* [[BeamNG.Drive]] - Loads into Main Menu but crashes on last step of loading into a level with a &amp;quot;UI Process failed to respond in time&amp;quot; error&lt;br /&gt;
* [[Company of Heroes 3]]&lt;br /&gt;
* [[Death Stranding]]&lt;br /&gt;
* [[Doom (2016)]] - &amp;quot;FATAL ERROR: wglCreateContextAttribsARB failed&amp;quot; message on launch&lt;br /&gt;
* [[F1 20]] - Crash on launch (DX11 version running through GPT is slower compared to Crossover 21)&lt;br /&gt;
* [[F1 21]] - Crash on launch&lt;br /&gt;
* [[F1 22]] - Crash on launch (  &amp;quot;Exception&amp;quot;: &amp;quot;C0000005 EXCEPTION_ACCESS_VIOLATION at 0000000141bd8687&amp;quot;)&lt;br /&gt;
* [[Grand Theft Auto IV]] - Rockstar games launcher crashes on launch, cracked version should work fine&lt;br /&gt;
* [[Halo Infinite]] - Crash on launch&lt;br /&gt;
* [[Hitman 3]] - launcher works, crash at 0x0000014136dddd hitman3+0x136dddd: int $3&lt;br /&gt;
* [[Microsoft Flight Simulator 2020]] (Steam) - Crash on launch&lt;br /&gt;
* [[Monster Hunter Rise]] - DX12 Game, it launches but window goes dark after compiling shaders.&lt;br /&gt;
* [[Monster Hunter World]] - Black Screen on Launch&lt;br /&gt;
* [[New World]] - Game loaded but couldn't connect to server due to Easy Anti Cheat&lt;br /&gt;
* [[Payday 2]]&lt;br /&gt;
* [[Red Dead Redemption 2]]&lt;br /&gt;
* [[Rogue Company]] - anti-cheat conflict.&lt;br /&gt;
* [[s&amp;amp;box]] - crashes right on launch. (it should be DX11)&lt;br /&gt;
* [[Sea of Thieves]] - Launches, but the prompt to sign into an xbox live account appears blank and cannot&lt;br /&gt;
* [[Saints Row IV: Re-Elected]] - Launches, but crashes when trying to load into game&lt;br /&gt;
* [[Slime Rancher 2]] - Launches, but can't into game from main menu&lt;br /&gt;
* [[SpongeBob Squarepants: Battle for Bikini Bottom Rehydrated]] - Crashes when loading &lt;br /&gt;
* [[Teardown]] - When trying to launch, gives a error, &amp;quot;The program teardown.exe has encountered a serious problem and needs to close. We are sorry for the inconvenience.&amp;quot;&lt;br /&gt;
* [[The Elder Scrolls V: Skyrim Special Edition]] - the launcher gives a &amp;quot;The program teardown.exe has encountered a serious problem&amp;quot; message, not allowing us to get into the game&lt;br /&gt;
* [[theHunter: Call of the Wild]] - Crash on launch (Unhandled exception: page fault on read access to 0x0000000000000000 in 64-bit code (0x00000140b227f8))&lt;br /&gt;
* All DX9 games (duh, this is dx 11 &amp;amp; 12 only)&lt;br /&gt;
** [[30XX]] - &amp;quot;Failed to create D3D device&amp;quot; -&amp;gt; crash on launch; this is a rare 64-bit DX9 game&lt;br /&gt;
** [[Battleblock Theater]] - Black screen -&amp;gt; crash on launch&lt;br /&gt;
** [[Black Mesa]] - Starts to load to main menu at first but then crashes&lt;br /&gt;
** [[Castle Crashers]] - Black screen -&amp;gt; crash on launch&lt;br /&gt;
** [[Killing Floor 1]] - Crash on launch&lt;br /&gt;
** [[Left 4 Dead 2]] - Black screen -&amp;gt; crash on launch&lt;br /&gt;
** [[Lego Batman: The Videogame]] - Black screen -&amp;gt; crash on launch&lt;br /&gt;
** [[Lego Batman 2: DC Super Heros]] - Black screen -&amp;gt; crash on launch&lt;br /&gt;
** [[Lego Batman 3: Beyond Gotham]] - Black screen -&amp;gt; crash on launch (You can switch to DX11 but are currently unable to do so since the game will not launch)&lt;br /&gt;
** [[Mega Man Zero/ZX Legacy Collection]] - &amp;quot;Failed to create d3d9 device&amp;quot; -&amp;gt; crash on launch&lt;br /&gt;
** [[Sonic Mania]] - Crash on launch&lt;br /&gt;
** [[StarCraft II]] -&amp;gt; &amp;quot;Failed to initialize DirectX&amp;quot; error&lt;br /&gt;
** [[Star Wars: The Old Republic]]&lt;br /&gt;
** [[Battlefield 2]] - DirectX installation failed, won't launch, see the [https://gist.github.com/chrismwendt/1d01a306cdc8618a06bdfb555743e25c error log]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{References}}&lt;br /&gt;
[[Category:Lists]]&lt;/div&gt;</summary>
		<author><name>Andytizer</name></author>
	</entry>
	<entry>
		<id>https://www.applegamingwiki.com/w/index.php?title=Game_Porting_Toolkit&amp;diff=7746</id>
		<title>Game Porting Toolkit</title>
		<link rel="alternate" type="text/html" href="https://www.applegamingwiki.com/w/index.php?title=Game_Porting_Toolkit&amp;diff=7746"/>
		<updated>2023-06-11T06:45:04Z</updated>

		<summary type="html">&lt;p&gt;Andytizer: /* Toolkit install instructions */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Image|Game Porting Toolkit.png|Released 6th June, 2023 at WWDC23.}}&lt;br /&gt;
&lt;br /&gt;
Game Porting Toolkit is Apple's new translation layer released on 6th June, 2023. Game Porting Toolkit ('''GPT''') combines Wine with Apple's own D3DMetal which supports DirectX 11 and 12&amp;lt;ref&amp;gt;{{Refurl|url=https://mastodon.gamedev.place/@gavkar/110501451404624870|title=Gokhan Avkarogullari: &amp;quot;@yiningkarlli @aras @romainguy…&amp;quot; - Gamedev Mastodon}}&amp;lt;/ref&amp;gt;. This is less user-friendly method of installing Windows games on Apple Silicon Macs compared to [[CrossOver]] or [[Parallels]], however it unlocks the ability to play many DirectX 12 games. A lot more games work using GPTK, however, games that use anti-cheat or aggressive DRMs generally don't work, along with games that require AVX/AVX 2, e.g. The Last of Us Part I.&lt;br /&gt;
&lt;br /&gt;
== Toolkit install instructions ==&lt;br /&gt;
=== Requirements ===&lt;br /&gt;
*macOS Sonoma should be used, currently it is in beta. You can download the pkg installer from [https://mrmacintosh.com/macos-sonoma-full-installer-database-download-directly-from-apple/ Mr Macintosh blog].&lt;br /&gt;
*macOS Ventura causes large numbers of issues with steamwebhelper.exe crashing so it isn't recommended, use the macOS Sonoma beta.&lt;br /&gt;
*Visit [https://developer.apple.com/downloads Apple Developer Downloads site], these files are now free to download use for any logged in Apple account.&lt;br /&gt;
**Search for Command Line Tools for Xcode 15 beta and download the dmg file, then install it. &lt;br /&gt;
*If you have an old version Xcode installed, remove it.&lt;br /&gt;
**Search for Game Porting Toolkit and download it. Open the dmg file and then run the pkg.&lt;br /&gt;
&lt;br /&gt;
=== Homebrew ===&lt;br /&gt;
Note: if you have ever installed Homebrew before, then it is advised to remove ARM64 Homebrew as this can interfere with this build process. Either use a Homebrew uninstall script or delete the folder &amp;lt;code&amp;gt;/opt/homebrew/bin&amp;lt;/code&amp;gt;. If you prefer to keep both ARM64 and x86 versions of brew installed, you may add a &amp;quot;brew-switcher&amp;quot; to your &amp;lt;code&amp;gt;.zshrc&amp;lt;/code&amp;gt; file to allow either version to be used depending on the active architecture. You may follow the steps at the end of this section after installing Brew to achieve this.&lt;br /&gt;
&lt;br /&gt;
Open Terminal (search in Spotlight on macOS).&lt;br /&gt;
&lt;br /&gt;
Install Rosetta:&lt;br /&gt;
&amp;lt;pre&amp;gt;softwareupdate --install-rosetta&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Enter an x86_64 shell to continue the following steps in a Rosetta environment. All subsequent commands should be run within this shell.&lt;br /&gt;
&amp;lt;pre&amp;gt;arch -x86_64 zsh&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Install the x86_64 version of Homebrew if you don't already have it.&lt;br /&gt;
&amp;lt;pre&amp;gt;/bin/bash -c &amp;quot;$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)&amp;quot;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Set the path:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
(echo; echo 'eval &amp;quot;$(/usr/local/bin/brew shellenv)&amp;quot;') &amp;gt;&amp;gt; /Users/$USER/.zprofile&lt;br /&gt;
eval &amp;quot;$(/usr/local/bin/brew shellenv)&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Make sure the brew command is on your path:&lt;br /&gt;
&amp;lt;pre&amp;gt;which brew&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If this command does not print &amp;lt;code&amp;gt;/usr/local/bin/brew&amp;lt;/code&amp;gt;, you should use this command:&lt;br /&gt;
&amp;lt;pre&amp;gt;export PATH=/usr/local/bin:${PATH}&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Fixbox|description=Optionally retain both ARM64 and x86 versions of Brew|ref=|collapsed=yes|fix=&lt;br /&gt;
(Optional) If you want to have both ARM64 and x86 versions of Brew installed, begin by editing your &amp;lt;code&amp;gt;.zshrc&amp;lt;/code&amp;gt; file:&lt;br /&gt;
&amp;lt;pre&amp;gt;nano ~/.zshrc&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Scroll down (by using the arrow keys or Control + V) to the bottom of the file, and paste the following script:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
if [ &amp;quot;$(arch)&amp;quot; = &amp;quot;arm64&amp;quot; ]; then&lt;br /&gt;
    eval &amp;quot;$(/opt/homebrew/bin/brew shellenv)&amp;quot;&lt;br /&gt;
else&lt;br /&gt;
    eval &amp;quot;$(/usr/local/bin/brew shellenv)&amp;quot;&lt;br /&gt;
fi&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You may now restart your terminal and use the following command to return to an x86_64 shell:&lt;br /&gt;
&amp;lt;pre&amp;gt;arch -x86_64 zsh&amp;lt;/pre&amp;gt;&lt;br /&gt;
Your shell will now select the right installation of Brew, depending on your architecture.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=== Build ===&lt;br /&gt;
Run this command to download Apple tap:&lt;br /&gt;
&amp;lt;pre&amp;gt;brew tap apple/apple http://github.com/apple/homebrew-apple&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Install the game-porting-toolkit formula. This formula downloads and compiles several large software projects. How long this takes will depend on the speed of your computer. It can take over 1 hour to complete depending on the speed of your Mac.&lt;br /&gt;
&amp;lt;pre&amp;gt;brew -v install apple/apple/game-porting-toolkit&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If during installation you see an error such as '''“Error: game-porting-toolkit: unknown or unsupported macOS version: :dunno”, your version of Homebrew doesn’t have macOS Sonoma support. Update to the latest version of Homebrew and try again.'''&lt;br /&gt;
&amp;lt;pre&amp;gt;brew update brew -v install apple/apple/game-porting-toolkit&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Preparing the toolkit ===&lt;br /&gt;
Make sure the Game Porting Toolkit dmg downloaded earlier is mounted at /Volumes/Game Porting Toolkit-1.0. Use this script to copy the Game Porting Toolkit library directory into Wine’s library directory.&lt;br /&gt;
&amp;lt;pre&amp;gt;ditto /Volumes/Game\ Porting\ Toolkit-1.0/lib/ `brew --prefix game-porting-toolkit`/lib/&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Put the 3 scripts from the Game Porting Toolkit DMG into here &amp;lt;code&amp;gt;/usr/local/bin&amp;lt;/code&amp;gt; using this command:&lt;br /&gt;
&amp;lt;pre&amp;gt;cp /Volumes/Game\ Porting\ Toolkit*/gameportingtoolkit* /usr/local/bin&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Wine prefix ===&lt;br /&gt;
A Wine prefix contains a virtual C: drive, similar to a Bottle in [[CrossOver]]. You will install the toolkit and your game into this virtual C: drive. Run the following command to create a new Wine prefix named my-game-prefix in your home directory. This will create a Wine prefix called &amp;lt;code&amp;gt;my-game-prefix&amp;lt;/code&amp;gt; but could be renamed to anything.&lt;br /&gt;
&amp;lt;pre&amp;gt;WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 winecfg&amp;lt;/pre&amp;gt;&lt;br /&gt;
*A “Wine configuration” window should appear on your screen.&lt;br /&gt;
*Change the version of Windows to Windows 10.&lt;br /&gt;
*Choose Apply and then OK to exit winecfg.&lt;br /&gt;
&lt;br /&gt;
If the “Wine configuration” window does not appear, and no new icon appears in the Dock, verify that you have correctly installed the x86_64 version of Homebrew as well as the game-porting-toolkit formula.&lt;br /&gt;
&lt;br /&gt;
Now you are ready to install a launcher or individual Windows games into this Wine prefix, see below.&lt;br /&gt;
&lt;br /&gt;
== Steam ==&lt;br /&gt;
Download the [https://cdn.cloudflare.steamstatic.com/client/installer/SteamSetup.exe Windows version of Steam] and place in your Downloads folder.&lt;br /&gt;
&lt;br /&gt;
'''Install Steam'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix ~/Downloads/SteamSetup.exe&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Run Steam'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix 'C:\Program Files (x86)/Steam/steam.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Log into Steam'''&lt;br /&gt;
&lt;br /&gt;
A common issue is that Steam will present with a blank black window.&lt;br /&gt;
&lt;br /&gt;
Alternate way of launching Steam (after installing):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
MTL_HUD_ENABLED=1 WINEESYNC=1 WINEPREFIX=~/my-game-prefix /usr/local/Cellar/game-porting-toolkit/1.0/bin/wine64 'C:\Program Files (x86)\Steam\steam.exe'&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If this continues then close the Terminal window and then re-open and try again, repeat until the login screen opens. Now you should be able to download and launch Windows games through Steam.&lt;br /&gt;
&lt;br /&gt;
== Battle.net ==&lt;br /&gt;
Download the [https://download.battle.net/en-gb/?platform=windows Windows version of Battle.net] and place in your Downloads folder.&lt;br /&gt;
&lt;br /&gt;
Make a new Wineprefix for Battle.net, you can choose to use &amp;lt;code&amp;gt;my-game-prefix&amp;lt;/code&amp;gt; or change this to anything else.&lt;br /&gt;
&amp;lt;pre&amp;gt;WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 winecfg&amp;lt;/pre&amp;gt;&lt;br /&gt;
*A “Wine configuration” window should appear on your screen.&lt;br /&gt;
*Change the version of Windows to &amp;lt;code&amp;gt;Windows 10&amp;lt;/code&amp;gt;.&lt;br /&gt;
*Choose Apply and then OK to exit winecfg.&lt;br /&gt;
&lt;br /&gt;
If you are running Diablo IV, then you need to run this script to update the Wineprefix to appear as a more recent version of Windows:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion' /v CurrentBuild /t REG_SZ /d 19042 /f&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion' /v CurrentBuildNumber /t REG_SZ /d 19042 /f&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wineserver -k&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Run Battle.net launcher'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix ~/Downloads/Battle.net-Setup.exe&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Be aware that there is an issue launching Battle.net once installed, the only current way to re-login is to 'install' the launcher again. &lt;br /&gt;
&lt;br /&gt;
Start individual game without the launcher using this command:&lt;br /&gt;
&amp;lt;pre&amp;gt;arch -x86_64 gameportingtoolkit-no-hud ~/my-game-prefix 'C:\Program Files (x86)\Diablo IV\Diablo IV Launcher.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Epic and GOG.com support with the Heroic Games Launcher ==&lt;br /&gt;
This is particularly useful because '''as it currently stands, the real Epic Games Launcher fails to install under the Game Porting Toolkit'''. Heroic supports Epic and GOG.com games.&lt;br /&gt;
&lt;br /&gt;
* Install the [https://github.com/Heroic-Games-Launcher/HeroicGamesLauncher/releases native macOS Heroic Games Launcher] or from Homebrew.&lt;br /&gt;
* Open Heroic, and log into your Epic Games and/or GOG.com account.&lt;br /&gt;
* Go to the &amp;quot;Wine Manager&amp;quot; and install a '''numbered''' version of Wine, such that it won't auto update- we are going to modify it.&lt;br /&gt;
** At the time of writing this, the newest numbered version of Wine-Crossover is &amp;lt;code&amp;gt;Wine-Crossover-Wine-22.1.0&amp;lt;/code&amp;gt;&lt;br /&gt;
* Press the folder icon that appears after installing it to open the directory containing Heroic's Wine installations.&lt;br /&gt;
* Right-click on the version of Wine you just installed and press &amp;quot;Show Package Contents&amp;quot;.&lt;br /&gt;
* Open this directory in the Terminal.&lt;br /&gt;
** If you have &amp;quot;OpenInTerminal&amp;quot; this is one button, otherwise press &amp;quot;Show Path Bar&amp;quot; and navigate where it says with &amp;quot;cd&amp;quot;.&lt;br /&gt;
** It should be something like &amp;lt;code&amp;gt;cd ~/Library/Application\ Support/heroic/tools/wine/Wine-crossover-wine-22.1.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
* &amp;lt;pre&amp;gt;cd Contents/MacOS&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Remove the existing Wine: &amp;lt;pre&amp;gt;rm wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Create a symlink to Game Porting Toolkit's Wine: &lt;br /&gt;
** If using Game Porting Toolkit Wineprefix: &amp;lt;pre&amp;gt;ln -s `/usr/local/bin/brew --prefix game-porting-toolkit`/bin/wine64 wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
** If using Whisky: &amp;lt;pre&amp;gt;ln -s /Applications/Whisky.app/Contents/Resources/Libraries/Wine/bin/wine64 wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
* &amp;lt;pre&amp;gt;cd ../Resources&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Remove the existing Wine: &amp;lt;pre&amp;gt;rm -rfv wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Create a symlink to Game Porting Toolkit's Wine&lt;br /&gt;
** If using Game Porting Toolkit Wineprefix: &amp;lt;pre&amp;gt;ln -s `/usr/local/bin/brew --prefix game-porting-toolkit` wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
** If using Whisky: &amp;lt;pre&amp;gt;ln -s /Applications/Whisky.app/Contents/Resources/Libraries/Wine wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
* We are now done with Terminal. Install any games you want to try playing.&lt;br /&gt;
* Select the game you want to play, and press the settings button in the top-right.&lt;br /&gt;
* Make sure the version of Wine you just downloaded and modified is selected.&lt;br /&gt;
* Make sure your Game Porting Toolkit Wine Prefix is selected. If you followed Apple's guide this is &amp;lt;code&amp;gt;/Users/$USER/my-game-prefix&amp;lt;/code&amp;gt;.&lt;br /&gt;
* If you Open the &amp;quot;Other&amp;quot; section you can also add any environment variables you want like &amp;lt;code&amp;gt;WINEESYNC=1&amp;quot;&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;&amp;quot;MTL_HUD_ENABLED=1&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
* Close the settings and try running the game.&lt;br /&gt;
&lt;br /&gt;
== Commands ==&lt;br /&gt;
Installing individual exe games: open your Wine prefix’s virtual C: drive in Finder (open ~/my-game-prefix/drive_c) and copy your game into an appropriate subdirectory.&lt;br /&gt;
&lt;br /&gt;
'''A. Standard launching'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix 'C:\Program Files (x86)\Steam\steam.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This launches the given Windows game binary with a visible extended Metal Performance HUD and filters logging to output from the Game Porting Toolkit.&lt;br /&gt;
&lt;br /&gt;
'''B. Launching without a HUD'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit-no-hud ~/my-game-prefix 'C:\Program Files (x86)\Steam\steam.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''C. Launching with Wine ESYNC disabled'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit-no-esync ~/my-game-prefix 'C:\Program Files (x86)\Steam\steam.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To enter Winecfg:&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix winecfg&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Shortcut ==&lt;br /&gt;
{{Image|Game Porting Toolkit Steam icon.png|Made by user Omsier.|150px}}&lt;br /&gt;
You can make a shortcut for Steam for example by using macOS built-in Automator app.&lt;br /&gt;
*Open Automator.&lt;br /&gt;
*Select New Application.&lt;br /&gt;
*In the 2nd column select Run Shell Script.&lt;br /&gt;
*Copy and paste this code into the box:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/zsh&lt;br /&gt;
&lt;br /&gt;
export PATH=&amp;quot;/usr/local/bin:${PATH}&amp;quot;&lt;br /&gt;
&lt;br /&gt;
arch -x86_64 gameportingtoolkit ~/my-game-prefix 'C:\Program Files (x86)\Steam\steam.exe'&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the shortcut somewhere e.g. Applications.&lt;br /&gt;
*Above shortcut can be customised to any Wineprefix or game.&lt;br /&gt;
*Add an icon by selecting the shortcut, pressing {{key|cmd|I}} to Get Info, then dragging and dropping a PNG file onto the top left of the window.&lt;br /&gt;
&lt;br /&gt;
== Logging ==&lt;br /&gt;
The provided bin/gameportingtoolkit* scripts can be copied onto your path to facilitate different forms of logging and launching. You can run these scripts from any shell; you don’t need to switch to the Rosetta environment first.&lt;br /&gt;
&lt;br /&gt;
Logging output will appear in the Terminal window in which you launch your game as well as the system log, which can be viewed with the Console app found in Applications ▸ Utilities. Log messages from the Game Porting Toolkit are prefixed with D3DM. By default the gameportingtoolkit* scripts will filter to just the D3DM-prefixed messages.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
=== Steam login black screen ===&lt;br /&gt;
{{Image|GPTK Steam black screen.png|Steam login black screen issue.}}&lt;br /&gt;
&lt;br /&gt;
{{Fixbox|description=Alternate Steam launch command|ref=|fix=&lt;br /&gt;
Close the Terminal window and then reopen and retry the command, repeat several times.&lt;br /&gt;
&lt;br /&gt;
Alternate way of launching Steam (after installing):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
MTL_HUD_ENABLED=1 WINEESYNC=1 WINEPREFIX=~/my-game-prefix /usr/local/Cellar/game-porting-toolkit/1.0/bin/wine64 'C:\Program Files (x86)/Steam/steam.exe'&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If still not working then try using [[CrossOver]] and create a Steam bottle, then login, then redirect this WINEPREFIX to that bottle:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=&amp;quot;/Users/$USER/Library/Application Support/CrossOver/Bottles/Steam/&amp;quot; &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
{{Fixbox|description=Use macOS Steam login|ref=&amp;lt;ref&amp;gt;https://github.com/IsaacMarovitz/Whisky/issues/41#issuecomment-1585640483&amp;lt;/ref&amp;gt;|fix=&lt;br /&gt;
#Login to Steam macOS.&lt;br /&gt;
#From &amp;lt;code&amp;gt;/Users/$USER/Library/Application Support/Steam&amp;lt;/code&amp;gt;, copy three files/folders: config, registry.vdf, userdata.&lt;br /&gt;
#Paste into &amp;lt;code&amp;gt;~/my-game-prefix/drive_c/Program Files (x86)/Steam/&amp;lt;/code&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=== Steam crashes straight after opening ===&lt;br /&gt;
{{Fixbox|description=Disconnect external monitors|ref=&amp;lt;ref&amp;gt;Reference&amp;lt;/ref&amp;gt;|fix=&lt;br /&gt;
Disconnect any external monitors.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=== Battle.net launcher won't re-launch ===&lt;br /&gt;
Re-install the launcher to reopen, no other fix at the moment.&lt;br /&gt;
&lt;br /&gt;
===Windows version too old===&lt;br /&gt;
{{Fixbox|description=Name|ref=&amp;lt;ref&amp;gt;Reference&amp;lt;/ref&amp;gt;|fix=&lt;br /&gt;
'''My game won’t run because it thinks the version of Windows is too old. Some games detect specific minimum versions of Windows and need to be updated.''' Use this script to update your wineprefix with build 19042 which should work for most games e.g. Spider-Man Remastered.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion' /v CurrentBuild /t REG_SZ /d 19042 /f&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion' /v CurrentBuildNumber /t REG_SZ /d 19042 /f&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wineserver -k&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=== steamwebhelper.exe crashes ===&lt;br /&gt;
This is caused by Steam being run through macOS Ventura or below, most users should upgrade to macOS Sonoma. You can use the CrossOver workaround to login to Steam but you'll experience constant crashing.&lt;br /&gt;
&lt;br /&gt;
=== Anti-cheat and DRM ===&lt;br /&gt;
Likely there will be no fixes for any games that use anti-cheat, e.g. Easy Anti Cheat. Some games have workarounds e.g. Elden Ring. Other games that use say Denuvo may also be incompatible until that DRM is removed by the game's developer.&lt;br /&gt;
&lt;br /&gt;
=== My game won’t run because it requires Mono, .NET, or the MSVCRT runtime ===&lt;br /&gt;
The game porting toolkit’s evaluation environment does not pre-install these runtime support packages. If your game makes use of one of these packages, consider searching for and downloading appropriate installers (.exe or .msi) and installing them to your evaluation environment. Additional runtime installers can be run on your environment by just launching the installer and following its installation instructions:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 &amp;lt;some-installer.exe&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
And .MSI packages can be installed by launching the Windows uninstaller application and choosing to install a downloaded .msi package:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 uninstaller&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Controller issues ===&lt;br /&gt;
{{Fixbox|description=Steam beta|ref=&amp;lt;ref&amp;gt;Reference&amp;lt;/ref&amp;gt;|fix=&lt;br /&gt;
Issues may be fixed by enrolling into the Steam beta.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=== My game looks pixelated and the display resolution is limited ===&lt;br /&gt;
{{Fixbox|description=Enable Retina mode|ref=|fix=&lt;br /&gt;
Enable Retina (high resolution) mode:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_CURRENT_USER\Software\Wine\Mac Driver' /v RetinaMode /t REG_SZ /d 'Y' /f&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Some games will not run with Retina mode enabled. To disable it:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_CURRENT_USER\Software\Wine\Mac Driver' /v RetinaMode /t REG_SZ /d 'N' /f&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
===AVX===&lt;br /&gt;
AVX and AVX2 games are not supported by Apple's arm64 chipset, e.g. Red Dead Redemption 2.&lt;br /&gt;
&lt;br /&gt;
AVX requirement can be bypassed in some games, e.g Dying Light 2.&lt;br /&gt;
&lt;br /&gt;
{{Fixbox|description=AVX Fix for Dying Light 2|ref=&amp;lt;ref&amp;gt;Reference&amp;lt;/ref&amp;gt;|fix=&lt;br /&gt;
There is a workaround in Dying Light 2 which is to simply remove the &amp;quot;runtime_dx11.dll&amp;quot;&lt;br /&gt;
&lt;br /&gt;
#Right click on DL2 on steam&lt;br /&gt;
#Manage&lt;br /&gt;
#Local files&lt;br /&gt;
#Navigate to &amp;quot;ph\work\bin\x64&amp;quot;&lt;br /&gt;
#Delete &amp;quot;runtime_dx11.dll&amp;quot;&lt;br /&gt;
#Start the game&lt;br /&gt;
&lt;br /&gt;
If for some reason you need the &amp;quot;runtime_dx11.dll&amp;quot; back, just verify integrity of game files in Steam&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
== Game compatibility list ==&lt;br /&gt;
{{ii}} '''Total number of games: '''{{#cargo_query:tables=Compatibility_macOS|fields=COUNT(*)|group by=_pageNamespace|where=Compatibility_macOS.wine='perfect' OR Compatibility_macOS.wine='playable' OR Compatibility_macOS.wine='runs' OR Compatibility_macOS.wine='menu'}}&lt;br /&gt;
{{mm}} ''This list was last refreshed on '''{{CURRENTMONTHNAME}} {{CURRENTDAY}},  {{CURRENTYEAR}}'''. [{{fullurl:{{FULLPAGENAMEE}}|action=purge}} Purge] the page to refresh it.''&lt;br /&gt;
{{#cargo_query:&lt;br /&gt;
tables=Compatibility_macOS&lt;br /&gt;
|fields=Compatibility_macOS._pageName, Compatibility_macOS.wine&lt;br /&gt;
|where=Compatibility_macOS.wine='perfect' OR Compatibility_macOS.wine='playable' OR Compatibility_macOS.wine='runs' OR Compatibility_macOS.wine='menu'&lt;br /&gt;
|limit=500&lt;br /&gt;
|offset=0&lt;br /&gt;
|format=template&lt;br /&gt;
|intro={{ListOfGames/intro}}&lt;br /&gt;
|template=ListOfGames/row&lt;br /&gt;
|outro=&amp;lt;/table&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
Old list - this should be made into individual wiki articles in order to populate the automated list above, which tracks all game compatibility methods using Wine.&lt;br /&gt;
&lt;br /&gt;
Working games:&lt;br /&gt;
* [[Astroneer]]&lt;br /&gt;
* [[Assassins Creed 3 Remastered]]&lt;br /&gt;
* [[Batman: Arkham Knight]] - launches with steam&lt;br /&gt;
* [[Bloodstained: Ritual of the Night]]&lt;br /&gt;
* [[Brick Rigs]]&lt;br /&gt;
* [[Genshin Impact]] 3.7 (m2max with 4k 60fps stable) &lt;br /&gt;
* [[Control]] (DX12 mode, if downloaded from Heroic, needs to be ran by Terminal)&lt;br /&gt;
* [[Crysis Remastered]]&lt;br /&gt;
* [[Cultic]]&lt;br /&gt;
* [[Cuphead]]&lt;br /&gt;
* [[Cyberpunk 2077]]&lt;br /&gt;
* [[Deep Rock Galactic]]&lt;br /&gt;
* [[Deceive Inc.]] - works well if launched without EAC&lt;br /&gt;
* [[Derail Valley]] (awesome performance, no missing manuals - in-game objects for train operation - like on CrossOver)&lt;br /&gt;
* [[Diablo IV]] [https://www.reddit.com/r/macgaming/comments/14307be/comment/jn7dxzo/?utm_source=reddit&amp;amp;utm_medium=web2x&amp;amp;context=3 ]&lt;br /&gt;
* [[Dread Templar]]&lt;br /&gt;
* [[Dying Light 2]] (needs AVX fix above)&lt;br /&gt;
* [[Dyson Sphere Program]] (some objects and main character weren't visible before)&lt;br /&gt;
* [[Elden Ring]]&lt;br /&gt;
* [[Final Fantasy VII Remake Intergrade]] (~50 FPS on High settings at 1080p with M1 Pro)&lt;br /&gt;
* [[Friends vs. Friends]]&lt;br /&gt;
* [[Gloomwood]]&lt;br /&gt;
* [[God of War]] (Works somewhat well on M1 Pro (16gb), wouldn't recommend lesser hardware.)&lt;br /&gt;
* [[Going Medieval]]&lt;br /&gt;
* [[Guilty Gear Strive]]&lt;br /&gt;
* [[Grand Theft Auto V]]&lt;br /&gt;
* [[Green Hell]]&lt;br /&gt;
* [[Halo 3]] (MCC - No Online due to Easy Anti-Cheat Compatibility) [https://www.reddit.com/r/macgaming/comments/143zoos/halo_3_mcc_no_online_eac_m1_pro_game_porting/]&lt;br /&gt;
* [[Halo Reach]] (MCC) &lt;br /&gt;
* [[HI-Fi RUSH]]&lt;br /&gt;
* [[Hogwarts Legacy]] - launches fine first time but then won't relaunch - can be fixed by deleting ~/my-game-prefix/drive_c/ProgramData/Hogwarts Legacy - these are the files that are created at first launch that prevent relaunching&lt;br /&gt;
* [[Hatsune Miku: Project DIVA Mega Mix+]] - works with Retina mode; [https://github.com/blueskythlikesclouds/DivaModLoader/releases DivaModLoader] and [https://github.com/Still34/azura-diva/releases DivaNoSpy] recommended; run Steam with WINEDEBUG=-all WINEESYNC=0 WINEDLLOVERRIDES=&amp;quot;dinput8.dll=n,b&amp;quot;; may randomly crash at the title screen: use [https://github.com/nastys/IntroPatch/releases IntroPatch] as a workaround&lt;br /&gt;
* [[Kena: Bridge of Spirits]]&lt;br /&gt;
* [[Metal Gear Solid V: The Phantom Pain]]&lt;br /&gt;
* [[Overwatch 2]]&lt;br /&gt;
* [[QUBE 2]]&lt;br /&gt;
* [[People Playground]]&lt;br /&gt;
* [[Prodeus]]&lt;br /&gt;
* [[Ready or Not]]&lt;br /&gt;
* [[Risk of Rain 2]] (does not require `-disable-gpu-skinning` like Crossover 22)&lt;br /&gt;
* [[Scarlet Nexus]]&lt;br /&gt;
* [[Sonic GT]]&lt;br /&gt;
* [[Sonic illusions]]&lt;br /&gt;
* [[Sonic Omens]]&lt;br /&gt;
* [[Sonic P-06]]&lt;br /&gt;
* [[Spider-Man (2018)]]&lt;br /&gt;
* [[Spider-Man Miles Morales]] - ''requires Windows ver fix''&lt;br /&gt;
* [[SpongeBob SquarePants: The Cosmic Shake]]&lt;br /&gt;
* [[StarCraft: Remastered]] - Game runs fine but opening Option menu the second time will cause game not recognizing any inputs.&lt;br /&gt;
* [[Tetris Effect: Connected]] - Game window likes to be uncooperative; really doesn't like retina mode, works otherwise&lt;br /&gt;
* [[V Rising]]&lt;br /&gt;
* [[Warframe]] - ''To get installer/launcher working add dwrite (disabled) to library overrides in winecfg''&lt;br /&gt;
* [[WRATH: Aeon of Ruin]]&lt;br /&gt;
&lt;br /&gt;
Not working well:&lt;br /&gt;
* [[Horizon Zero Dawn]] - slowdown issues&lt;br /&gt;
* [[Genshin Impact]] - Launches, but stuck when calling menu using esc&lt;br /&gt;
&lt;br /&gt;
Not working yet:&lt;br /&gt;
* [[Apex Legends]] (it will stuck because of anti-cheat)&lt;br /&gt;
* Any games that use the EA Launcher&lt;br /&gt;
** [[Need for Speed Heat]]&lt;br /&gt;
** [[Need for Speed Unbound]]&lt;br /&gt;
** [[Tom Clancy's The Division 2]]&lt;br /&gt;
* [[Among Us]]&lt;br /&gt;
* [[Assassins Creed Odyssey]]&lt;br /&gt;
* [[Assassins Creed Valhalla]]&lt;br /&gt;
* [[BeamNG.Drive]] - Loads into Main Menu but crashes on last step of loading into a level with a &amp;quot;UI Process failed to respond in time&amp;quot; error&lt;br /&gt;
* [[Company of Heroes 3]]&lt;br /&gt;
* [[Death Stranding]]&lt;br /&gt;
* [[Doom (2016)]] - &amp;quot;FATAL ERROR: wglCreateContextAttribsARB failed&amp;quot; message on launch&lt;br /&gt;
* [[F1 20]] - Crash on launch (DX11 version running through GPT is slower compared to Crossover 21)&lt;br /&gt;
* [[F1 21]] - Crash on launch&lt;br /&gt;
* [[F1 22]] - Crash on launch (  &amp;quot;Exception&amp;quot;: &amp;quot;C0000005 EXCEPTION_ACCESS_VIOLATION at 0000000141bd8687&amp;quot;)&lt;br /&gt;
* [[Grand Theft Auto IV]] - Rockstar games launcher crashes on launch, cracked version should work fine&lt;br /&gt;
* [[Halo Infinite]] - Crash on launch&lt;br /&gt;
* [[Hitman 3]] - launcher works, crash at 0x0000014136dddd hitman3+0x136dddd: int $3&lt;br /&gt;
* [[Microsoft Flight Simulator 2020]] (Steam) - Crash on launch&lt;br /&gt;
* [[Monster Hunter Rise]] - DX12 Game, it launches but window goes dark after compiling shaders.&lt;br /&gt;
* [[Monster Hunter World]] - Black Screen on Launch&lt;br /&gt;
* [[New World]] - Game loaded but couldn't connect to server due to Easy Anti Cheat&lt;br /&gt;
* [[Payday 2]]&lt;br /&gt;
* [[Red Dead Redemption 2]]&lt;br /&gt;
* [[Rogue Company]] - anti-cheat conflict.&lt;br /&gt;
* [[s&amp;amp;box]] - crashes right on launch. (it should be DX11)&lt;br /&gt;
* [[Sea of Thieves]] - Launches, but the prompt to sign into an xbox live account appears blank and cannot&lt;br /&gt;
* [[Saints Row IV: Re-Elected]] - Launches, but crashes when trying to load into game&lt;br /&gt;
* [[Slime Rancher 2]] - Launches, but can't into game from main menu&lt;br /&gt;
* [[SpongeBob Squarepants: Battle for Bikini Bottom Rehydrated]] - Crashes when loading &lt;br /&gt;
* [[Teardown]] - When trying to launch, gives a error, &amp;quot;The program teardown.exe has encountered a serious problem and needs to close. We are sorry for the inconvenience.&amp;quot;&lt;br /&gt;
* [[The Elder Scrolls V: Skyrim Special Edition]] - the launcher gives a &amp;quot;The program teardown.exe has encountered a serious problem&amp;quot; message, not allowing us to get into the game&lt;br /&gt;
* [[theHunter: Call of the Wild]] - Crash on launch (Unhandled exception: page fault on read access to 0x0000000000000000 in 64-bit code (0x00000140b227f8))&lt;br /&gt;
* All DX9 games (duh, this is dx 11 &amp;amp; 12 only)&lt;br /&gt;
** [[30XX]] - &amp;quot;Failed to create D3D device&amp;quot; -&amp;gt; crash on launch; this is a rare 64-bit DX9 game&lt;br /&gt;
** [[Battleblock Theater]] - Black screen -&amp;gt; crash on launch&lt;br /&gt;
** [[Black Mesa]] - Starts to load to main menu at first but then crashes&lt;br /&gt;
** [[Castle Crashers]] - Black screen -&amp;gt; crash on launch&lt;br /&gt;
** [[Killing Floor 1]] - Crash on launch&lt;br /&gt;
** [[Left 4 Dead 2]] - Black screen -&amp;gt; crash on launch&lt;br /&gt;
** [[Lego Batman: The Videogame]] - Black screen -&amp;gt; crash on launch&lt;br /&gt;
** [[Lego Batman 2: DC Super Heros]] - Black screen -&amp;gt; crash on launch&lt;br /&gt;
** [[Lego Batman 3: Beyond Gotham]] - Black screen -&amp;gt; crash on launch (You can switch to DX11 but are currently unable to do so since the game will not launch)&lt;br /&gt;
** [[Mega Man Zero/ZX Legacy Collection]] - &amp;quot;Failed to create d3d9 device&amp;quot; -&amp;gt; crash on launch&lt;br /&gt;
** [[Sonic Mania]] - Crash on launch&lt;br /&gt;
** [[StarCraft II]] -&amp;gt; &amp;quot;Failed to initialize DirectX&amp;quot; error&lt;br /&gt;
** [[Star Wars: The Old Republic]]&lt;br /&gt;
** [[Battlefield 2]] - DirectX installation failed, won't launch, see the [https://gist.github.com/chrismwendt/1d01a306cdc8618a06bdfb555743e25c error log]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{References}}&lt;br /&gt;
[[Category:Lists]]&lt;/div&gt;</summary>
		<author><name>Andytizer</name></author>
	</entry>
	<entry>
		<id>https://www.applegamingwiki.com/w/index.php?title=Game_Porting_Toolkit&amp;diff=7738</id>
		<title>Game Porting Toolkit</title>
		<link rel="alternate" type="text/html" href="https://www.applegamingwiki.com/w/index.php?title=Game_Porting_Toolkit&amp;diff=7738"/>
		<updated>2023-06-10T23:20:21Z</updated>

		<summary type="html">&lt;p&gt;Andytizer: /* Game compatibility list */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Image|Game Porting Toolkit.png|Released 6th June, 2023 at WWDC23.}}&lt;br /&gt;
&lt;br /&gt;
Game Porting Toolkit is Apple's new translation layer released on 6th June, 2023. Game Porting Toolkit ('''GPT''') combines Wine with Apple's own D3DMetal which supports DirectX 11 and 12&amp;lt;ref&amp;gt;{{Refurl|url=https://mastodon.gamedev.place/@gavkar/110501451404624870|title=Gokhan Avkarogullari: &amp;quot;@yiningkarlli @aras @romainguy…&amp;quot; - Gamedev Mastodon}}&amp;lt;/ref&amp;gt;. This is less user-friendly method of installing Windows games on Apple Silicon Macs compared to [[CrossOver]] or [[Parallels]], however it unlocks the ability to play many DirectX 12 games. A lot more games work using GPTK, however, games that use anti-cheat or aggressive DRMs generally don't work, along with games that require AVX/AVX 2, e.g. The Last of Us Part I.&lt;br /&gt;
&lt;br /&gt;
== Toolkit install instructions ==&lt;br /&gt;
=== Requirements ===&lt;br /&gt;
*macOS Sonoma should be used, currently it is in beta. You can download the pkg installer from [https://mrmacintosh.com/macos-sonoma-full-installer-database-download-directly-from-apple/ Mr Macintosh blog].&lt;br /&gt;
*macOS Ventura causes large numbers of issues with steamwebhelper.exe crashing so it isn't recommended, use the macOS Sonoma beta.&lt;br /&gt;
*Visit [https://developer.apple.com/downloads Apple Developer Downloads site], these files are now free to download use for any logged in Apple account.&lt;br /&gt;
**Search for Command Line Tools for Xcode 15 beta and download the dmg file, then install it. *If you have an old version Xcode installed, remove it.&lt;br /&gt;
**Search for Game Porting Toolkit and download it. Open the dmg file and then run the pkg.&lt;br /&gt;
&lt;br /&gt;
=== Homebrew ===&lt;br /&gt;
Note: if you have ever installed Homebrew before, then it is advised to remove ARM64 Homebrew as this can interfere with this build process. Either use a Homebrew uninstall script or delete the folder &amp;lt;code&amp;gt;/opt/homebrew/bin&amp;lt;/code&amp;gt;. If you prefer to keep both ARM64 and x86 versions of brew installed, you may add a &amp;quot;brew-switcher&amp;quot; to your &amp;lt;code&amp;gt;.zshrc&amp;lt;/code&amp;gt; file to allow either version to be used depending on the active architecture. You may follow the steps at the end of this section after installing Brew to achieve this.&lt;br /&gt;
&lt;br /&gt;
Open Terminal (search in Spotlight on macOS).&lt;br /&gt;
&lt;br /&gt;
Install Rosetta:&lt;br /&gt;
&amp;lt;pre&amp;gt;softwareupdate --install-rosetta&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Enter an x86_64 shell to continue the following steps in a Rosetta environment. All subsequent commands should be run within this shell.&lt;br /&gt;
&amp;lt;pre&amp;gt;arch -x86_64 zsh&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Install the x86_64 version of Homebrew if you don't already have it.&lt;br /&gt;
&amp;lt;pre&amp;gt;/bin/bash -c &amp;quot;$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)&amp;quot;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Set the path:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
(echo; echo 'eval &amp;quot;$(/usr/local/bin/brew shellenv)&amp;quot;') &amp;gt;&amp;gt; /Users/$USER/.zprofile&lt;br /&gt;
eval &amp;quot;$(/usr/local/bin/brew shellenv)&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Make sure the brew command is on your path:&lt;br /&gt;
&amp;lt;pre&amp;gt;which brew&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If this command does not print &amp;lt;code&amp;gt;/usr/local/bin/brew&amp;lt;/code&amp;gt;, you should use this command:&lt;br /&gt;
&amp;lt;pre&amp;gt;export PATH=/usr/local/bin:${PATH}&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Fixbox|description=Optionally retain both ARM64 and x86 versions of Brew|ref=|collapsed=yes|fix=&lt;br /&gt;
(Optional) If you want to have both ARM64 and x86 versions of Brew installed, begin by editing your &amp;lt;code&amp;gt;.zshrc&amp;lt;/code&amp;gt; file:&lt;br /&gt;
&amp;lt;pre&amp;gt;nano ~/.zshrc&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Scroll down (by using the arrow keys or Control + V) to the bottom of the file, and paste the following script:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
if [ &amp;quot;$(arch)&amp;quot; = &amp;quot;arm64&amp;quot; ]; then&lt;br /&gt;
    eval &amp;quot;$(/opt/homebrew/bin/brew shellenv)&amp;quot;&lt;br /&gt;
else&lt;br /&gt;
    eval &amp;quot;$(/usr/local/bin/brew shellenv)&amp;quot;&lt;br /&gt;
fi&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You may now restart your terminal and use the following command to return to an x86_64 shell:&lt;br /&gt;
&amp;lt;pre&amp;gt;arch -x86_64 zsh&amp;lt;/pre&amp;gt;&lt;br /&gt;
Your shell will now select the right installation of Brew, depending on your architecture.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=== Build ===&lt;br /&gt;
Run this command to download Apple tap:&lt;br /&gt;
&amp;lt;pre&amp;gt;brew tap apple/apple http://github.com/apple/homebrew-apple&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Install the game-porting-toolkit formula. This formula downloads and compiles several large software projects. How long this takes will depend on the speed of your computer. It can take over 1 hour to complete depending on the speed of your Mac.&lt;br /&gt;
&amp;lt;pre&amp;gt;brew -v install apple/apple/game-porting-toolkit&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If during installation you see an error such as '''“Error: game-porting-toolkit: unknown or unsupported macOS version: :dunno”, your version of Homebrew doesn’t have macOS Sonoma support. Update to the latest version of Homebrew and try again.'''&lt;br /&gt;
&amp;lt;pre&amp;gt;brew update brew -v install apple/apple/game-porting-toolkit&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Preparing the toolkit ===&lt;br /&gt;
Make sure the Game Porting Toolkit dmg downloaded earlier is mounted at /Volumes/Game Porting Toolkit-1.0. Use this script to copy the Game Porting Toolkit library directory into Wine’s library directory.&lt;br /&gt;
&amp;lt;pre&amp;gt;ditto /Volumes/Game\ Porting\ Toolkit-1.0/lib/ `brew --prefix game-porting-toolkit`/lib/&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Put the 3 scripts from the Game Porting Toolkit DMG into here &amp;lt;code&amp;gt;/usr/local/bin&amp;lt;/code&amp;gt; using this command:&lt;br /&gt;
&amp;lt;pre&amp;gt;cp /Volumes/Game\ Porting\ Toolkit*/gameportingtoolkit* /usr/local/bin&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Wine prefix ===&lt;br /&gt;
A Wine prefix contains a virtual C: drive, similar to a Bottle in [[CrossOver]]. You will install the toolkit and your game into this virtual C: drive. Run the following command to create a new Wine prefix named my-game-prefix in your home directory. This will create a Wine prefix called &amp;lt;code&amp;gt;my-game-prefix&amp;lt;/code&amp;gt; but could be renamed to anything.&lt;br /&gt;
&amp;lt;pre&amp;gt;WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 winecfg&amp;lt;/pre&amp;gt;&lt;br /&gt;
*A “Wine configuration” window should appear on your screen.&lt;br /&gt;
*Change the version of Windows to Windows 10.&lt;br /&gt;
*Choose Apply and then OK to exit winecfg.&lt;br /&gt;
&lt;br /&gt;
If the “Wine configuration” window does not appear, and no new icon appears in the Dock, verify that you have correctly installed the x86_64 version of Homebrew as well as the game-porting-toolkit formula.&lt;br /&gt;
&lt;br /&gt;
Now you are ready to install a launcher or individual Windows games into this Wine prefix, see below.&lt;br /&gt;
&lt;br /&gt;
== Steam ==&lt;br /&gt;
Download the [https://cdn.cloudflare.steamstatic.com/client/installer/SteamSetup.exe Windows version of Steam] and place in your Downloads folder.&lt;br /&gt;
&lt;br /&gt;
'''Install Steam'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix ~/Downloads/SteamSetup.exe&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Run Steam'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix 'C:\Program Files (x86)/Steam/steam.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Log into Steam'''&lt;br /&gt;
&lt;br /&gt;
A common issue is that Steam will present with a blank black window.&lt;br /&gt;
&lt;br /&gt;
Alternate way of launching Steam (after installing):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
MTL_HUD_ENABLED=1 WINEESYNC=1 WINEPREFIX=~/my-game-prefix /usr/local/Cellar/game-porting-toolkit/1.0/bin/wine64 'C:\Program Files (x86)\Steam\steam.exe'&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If this continues then close the Terminal window and then re-open and try again, repeat until the login screen opens. Now you should be able to download and launch Windows games through Steam.&lt;br /&gt;
&lt;br /&gt;
== Battle.net ==&lt;br /&gt;
Download the [https://download.battle.net/en-gb/?platform=windows Windows version of Battle.net] and place in your Downloads folder.&lt;br /&gt;
&lt;br /&gt;
Make a new Wineprefix for Battle.net, you can choose to use &amp;lt;code&amp;gt;my-game-prefix&amp;lt;/code&amp;gt; or change this to anything else.&lt;br /&gt;
&amp;lt;pre&amp;gt;WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 winecfg&amp;lt;/pre&amp;gt;&lt;br /&gt;
*A “Wine configuration” window should appear on your screen.&lt;br /&gt;
*Change the version of Windows to &amp;lt;code&amp;gt;Windows 10&amp;lt;/code&amp;gt;.&lt;br /&gt;
*Choose Apply and then OK to exit winecfg.&lt;br /&gt;
&lt;br /&gt;
If you are running Diablo IV, then you need to run this script to update the Wineprefix to appear as a more recent version of Windows:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion' /v CurrentBuild /t REG_SZ /d 19042 /f&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion' /v CurrentBuildNumber /t REG_SZ /d 19042 /f&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wineserver -k&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Run Battle.net launcher'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix ~/Downloads/Battle.net-Setup.exe&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Be aware that there is an issue launching Battle.net once installed, the only current way to re-login is to 'install' the launcher again. &lt;br /&gt;
&lt;br /&gt;
Start individual game without the launcher using this command:&lt;br /&gt;
&amp;lt;pre&amp;gt;arch -x86_64 gameportingtoolkit-no-hud ~/my-game-prefix 'C:\Program Files (x86)\Diablo IV\Diablo IV Launcher.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Epic and GOG.com support with the Heroic Games Launcher ==&lt;br /&gt;
This is particularly useful because '''as it currently stands, the real Epic Games Launcher fails to install under the Game Porting Toolkit'''. Heroic supports Epic and GOG.com games.&lt;br /&gt;
&lt;br /&gt;
* Install the [https://github.com/Heroic-Games-Launcher/HeroicGamesLauncher/releases native macOS Heroic Games Launcher] or from Homebrew.&lt;br /&gt;
* Open Heroic, and log into your Epic Games and/or GOG.com account.&lt;br /&gt;
* Go to the &amp;quot;Wine Manager&amp;quot; and install a '''numbered''' version of Wine, such that it won't auto update- we are going to modify it.&lt;br /&gt;
** At the time of writing this, the newest numbered version of Wine-Crossover is &amp;lt;code&amp;gt;Wine-Crossover-Wine-22.1.0&amp;lt;/code&amp;gt;&lt;br /&gt;
* Press the folder icon that appears after installing it to open the directory containing Heroic's Wine installations.&lt;br /&gt;
* Right-click on the version of Wine you just installed and press &amp;quot;Show Package Contents&amp;quot;.&lt;br /&gt;
* Open this directory in the Terminal.&lt;br /&gt;
** If you have &amp;quot;OpenInTerminal&amp;quot; this is one button, otherwise press &amp;quot;Show Path Bar&amp;quot; and navigate where it says with &amp;quot;cd&amp;quot;.&lt;br /&gt;
** It should be something like &amp;lt;code&amp;gt;cd ~/Library/Application\ Support/heroic/tools/wine/Wine-crossover-wine-22.1.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
* &amp;lt;pre&amp;gt;cd Contents/MacOS&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Remove the existing Wine: &amp;lt;pre&amp;gt;rm wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Create a symlink to Game Porting Toolkit's Wine: &lt;br /&gt;
** If using Game Porting Toolkit Wineprefix: &amp;lt;pre&amp;gt;ln -s `/usr/local/bin/brew --prefix game-porting-toolkit`/bin/wine64 wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
** If using Whisky: &amp;lt;pre&amp;gt;ln -s /Applications/Whisky.app/Contents/Resources/Libraries/Wine/bin/wine64 wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
* &amp;lt;pre&amp;gt;cd ../Resources&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Remove the existing Wine: &amp;lt;pre&amp;gt;rm -rfv wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Create a symlink to Game Porting Toolkit's Wine&lt;br /&gt;
** If using Game Porting Toolkit Wineprefix: &amp;lt;pre&amp;gt;ln -s `/usr/local/bin/brew --prefix game-porting-toolkit` wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
** If using Whisky: &amp;lt;pre&amp;gt;ln -s /Applications/Whisky.app/Contents/Resources/Libraries/Wine wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
* We are now done with Terminal. Install any games you want to try playing.&lt;br /&gt;
* Select the game you want to play, and press the settings button in the top-right.&lt;br /&gt;
* Make sure the version of Wine you just downloaded and modified is selected.&lt;br /&gt;
* Make sure your Game Porting Toolkit Wine Prefix is selected. If you followed Apple's guide this is &amp;lt;code&amp;gt;/Users/$USER/my-game-prefix&amp;lt;/code&amp;gt;.&lt;br /&gt;
* If you Open the &amp;quot;Other&amp;quot; section you can also add any environment variables you want like &amp;lt;code&amp;gt;WINEESYNC=1&amp;quot;&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;&amp;quot;MTL_HUD_ENABLED=1&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
* Close the settings and try running the game.&lt;br /&gt;
&lt;br /&gt;
== Commands ==&lt;br /&gt;
Installing individual exe games: open your Wine prefix’s virtual C: drive in Finder (open ~/my-game-prefix/drive_c) and copy your game into an appropriate subdirectory.&lt;br /&gt;
&lt;br /&gt;
'''A. Standard launching'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix 'C:\Program Files (x86)\Steam\steam.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This launches the given Windows game binary with a visible extended Metal Performance HUD and filters logging to output from the Game Porting Toolkit.&lt;br /&gt;
&lt;br /&gt;
'''B. Launching without a HUD'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit-no-hud ~/my-game-prefix 'C:\Program Files (x86)\Steam\steam.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''C. Launching with Wine ESYNC disabled'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit-no-esync ~/my-game-prefix 'C:\Program Files (x86)\Steam\steam.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To enter Winecfg:&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix winecfg&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Shortcut ==&lt;br /&gt;
{{Image|Game Porting Toolkit Steam icon.png|Made by user Omsier.|150px}}&lt;br /&gt;
You can make a shortcut for Steam for example by using macOS built-in Automator app.&lt;br /&gt;
*Open Automator.&lt;br /&gt;
*Select New Application.&lt;br /&gt;
*In the 2nd column select Run Shell Script.&lt;br /&gt;
*Copy and paste this code into the box:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/zsh&lt;br /&gt;
&lt;br /&gt;
export PATH=&amp;quot;/usr/local/bin:${PATH}&amp;quot;&lt;br /&gt;
&lt;br /&gt;
arch -x86_64 gameportingtoolkit ~/my-game-prefix 'C:\Program Files (x86)\Steam\steam.exe'&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the shortcut somewhere e.g. Applications.&lt;br /&gt;
*Above shortcut can be customised to any Wineprefix or game.&lt;br /&gt;
*Add an icon by selecting the shortcut, pressing {{key|cmd|I}} to Get Info, then dragging and dropping a PNG file onto the top left of the window.&lt;br /&gt;
&lt;br /&gt;
== Logging ==&lt;br /&gt;
The provided bin/gameportingtoolkit* scripts can be copied onto your path to facilitate different forms of logging and launching. You can run these scripts from any shell; you don’t need to switch to the Rosetta environment first.&lt;br /&gt;
&lt;br /&gt;
Logging output will appear in the Terminal window in which you launch your game as well as the system log, which can be viewed with the Console app found in Applications ▸ Utilities. Log messages from the Game Porting Toolkit are prefixed with D3DM. By default the gameportingtoolkit* scripts will filter to just the D3DM-prefixed messages.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
=== Steam login black screen ===&lt;br /&gt;
{{Image|GPTK Steam black screen.png|Steam login black screen issue.}}&lt;br /&gt;
&lt;br /&gt;
{{Fixbox|description=Alternate Steam launch command|ref=|fix=&lt;br /&gt;
Close the Terminal window and then reopen and retry the command, repeat several times.&lt;br /&gt;
&lt;br /&gt;
Alternate way of launching Steam (after installing):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
MTL_HUD_ENABLED=1 WINEESYNC=1 WINEPREFIX=~/my-game-prefix /usr/local/Cellar/game-porting-toolkit/1.0/bin/wine64 'C:\Program Files (x86)/Steam/steam.exe'&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If still not working then try using [[CrossOver]] and create a Steam bottle, then login, then redirect this WINEPREFIX to that bottle:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=&amp;quot;/Users/$USER/Library/Application Support/CrossOver/Bottles/Steam/&amp;quot; &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
{{Fixbox|description=Use macOS Steam login|ref=&amp;lt;ref&amp;gt;https://github.com/IsaacMarovitz/Whisky/issues/41#issuecomment-1585640483&amp;lt;/ref&amp;gt;|fix=&lt;br /&gt;
#Login to Steam macOS.&lt;br /&gt;
#From &amp;lt;code&amp;gt;/Users/$USER/Library/Application Support/Steam&amp;lt;/code&amp;gt;, copy three files/folders: config, registry.vdf, userdata.&lt;br /&gt;
#Paste into &amp;lt;code&amp;gt;~/my-game-prefix/drive_c/Program Files (x86)/Steam/&amp;lt;/code&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=== Steam crashes straight after opening ===&lt;br /&gt;
{{Fixbox|description=Disconnect external monitors|ref=&amp;lt;ref&amp;gt;Reference&amp;lt;/ref&amp;gt;|fix=&lt;br /&gt;
Disconnect any external monitors.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=== Battle.net launcher won't re-launch ===&lt;br /&gt;
Re-install the launcher to reopen, no other fix at the moment.&lt;br /&gt;
&lt;br /&gt;
===Windows version too old===&lt;br /&gt;
{{Fixbox|description=Name|ref=&amp;lt;ref&amp;gt;Reference&amp;lt;/ref&amp;gt;|fix=&lt;br /&gt;
'''My game won’t run because it thinks the version of Windows is too old. Some games detect specific minimum versions of Windows and need to be updated.''' Use this script to update your wineprefix with build 19042 which should work for most games e.g. Spider-Man Remastered.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion' /v CurrentBuild /t REG_SZ /d 19042 /f&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion' /v CurrentBuildNumber /t REG_SZ /d 19042 /f&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wineserver -k&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=== steamwebhelper.exe crashes ===&lt;br /&gt;
This is caused by Steam being run through macOS Ventura or below, most users should upgrade to macOS Sonoma. You can use the CrossOver workaround to login to Steam but you'll experience constant crashing.&lt;br /&gt;
&lt;br /&gt;
=== AVX ===&lt;br /&gt;
AVX and AVX2 games are not supported by Apple's arm64 chipset, e.g. Red Dead Redemption 2.&lt;br /&gt;
&lt;br /&gt;
=== Anti-cheat and DRM ===&lt;br /&gt;
Likely there will be no fixes for any games that use anti-cheat, e.g. Easy Anti Cheat. Some games have workarounds e.g. Elden Ring. Other games that use say Denuvo may also be incompatible until that DRM is removed by the game's developer.&lt;br /&gt;
&lt;br /&gt;
=== My game won’t run because it requires Mono, .NET, or the MSVCRT runtime ===&lt;br /&gt;
The game porting toolkit’s evaluation environment does not pre-install these runtime support packages. If your game makes use of one of these packages, consider searching for and downloading appropriate installers (.exe or .msi) and installing them to your evaluation environment. Additional runtime installers can be run on your environment by just launching the installer and following its installation instructions:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 &amp;lt;some-installer.exe&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
And .MSI packages can be installed by launching the Windows uninstaller application and choosing to install a downloaded .msi package:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 uninstaller&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Controller issues ===&lt;br /&gt;
{{Fixbox|description=Steam beta|ref=&amp;lt;ref&amp;gt;Reference&amp;lt;/ref&amp;gt;|fix=&lt;br /&gt;
Issues may be fixed by enrolling into the Steam beta.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=== My game looks pixelated and the display resolution is limited ===&lt;br /&gt;
{{Fixbox|description=Enable Retina mode|ref=|fix=&lt;br /&gt;
Enable Retina (high resolution) mode:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_CURRENT_USER\Software\Wine\Mac Driver' /v RetinaMode /t REG_SZ /d 'Y' /f&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Some games will not run with Retina mode enabled. To disable it:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_CURRENT_USER\Software\Wine\Mac Driver' /v RetinaMode /t REG_SZ /d 'N' /f&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
== Game compatibility list ==&lt;br /&gt;
{{ii}} '''Total number of games: '''{{#cargo_query:tables=Compatibility_macOS|fields=COUNT(*)|group by=_pageNamespace|where=Compatibility_macOS.wine='perfect' OR Compatibility_macOS.wine='playable' OR Compatibility_macOS.wine='runs' OR Compatibility_macOS.wine='menu'}}&lt;br /&gt;
{{mm}} ''This list was last refreshed on '''{{CURRENTMONTHNAME}} {{CURRENTDAY}},  {{CURRENTYEAR}}'''. [{{fullurl:{{FULLPAGENAMEE}}|action=purge}} Purge] the page to refresh it.''&lt;br /&gt;
{{#cargo_query:&lt;br /&gt;
tables=Compatibility_macOS&lt;br /&gt;
|fields=Compatibility_macOS._pageName, Compatibility_macOS.wine&lt;br /&gt;
|where=Compatibility_macOS.wine='perfect' OR Compatibility_macOS.wine='playable' OR Compatibility_macOS.wine='runs' OR Compatibility_macOS.wine='menu'&lt;br /&gt;
|limit=500&lt;br /&gt;
|offset=0&lt;br /&gt;
|format=template&lt;br /&gt;
|intro={{ListOfGames/intro}}&lt;br /&gt;
|template=ListOfGames/row&lt;br /&gt;
|outro=&amp;lt;/table&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
Old list - this should be made into individual wiki articles in order to populate the automated list above, which tracks all game compatibility methods using Wine.&lt;br /&gt;
&lt;br /&gt;
Working games:&lt;br /&gt;
* [[Astroneer]]&lt;br /&gt;
* [[Assassins Creed 3 Remastered]]&lt;br /&gt;
* [[Batman: Arkham Knight]] - launches with steam&lt;br /&gt;
* [[Bloodstained: Ritual of the Night]]&lt;br /&gt;
* [[Brick Rigs]]&lt;br /&gt;
* [[Genshin Impact]] 3.7 (m2max with 4k 60fps stable) &lt;br /&gt;
* [[Control]] (DX12 mode, if downloaded from Heroic, needs to be ran by Terminal)&lt;br /&gt;
* [[Crysis Remastered]]&lt;br /&gt;
* [[Cultic]]&lt;br /&gt;
* [[Cuphead]]&lt;br /&gt;
* [[Cyberpunk 2077]]&lt;br /&gt;
* [[Deep Rock Galactic]]&lt;br /&gt;
* Deceive Inc. - works well if launched without EAC&lt;br /&gt;
* Derail Valley (awesome performance, no missing manuals - in-game objects for train operation - like on CrossOver)&lt;br /&gt;
* [[Diablo IV]] [https://www.reddit.com/r/macgaming/comments/14307be/comment/jn7dxzo/?utm_source=reddit&amp;amp;utm_medium=web2x&amp;amp;context=3 ]&lt;br /&gt;
* Dread Templar&lt;br /&gt;
* Dyson Sphere Program (some objects and main character weren't visible before)&lt;br /&gt;
* Elden Ring&lt;br /&gt;
* Final Fantasy VII Remake Intergrade (~50 FPS on High settings at 1080p with M1 Pro)&lt;br /&gt;
* Friends vs. Friends&lt;br /&gt;
* Gloomwood&lt;br /&gt;
* God of War (Works somewhat well on M1 Pro (16gb), wouldn't recommend lesser hardware.)&lt;br /&gt;
* Going Medieval&lt;br /&gt;
* Guilty Gear Strive&lt;br /&gt;
* Grand Theft Auto V&lt;br /&gt;
* Green Hell&lt;br /&gt;
* Halo 3 (MCC - No Online due to Easy Anti-Cheat Compatibility) [https://www.reddit.com/r/macgaming/comments/143zoos/halo_3_mcc_no_online_eac_m1_pro_game_porting/]&lt;br /&gt;
* Halo Reach (MCC) &lt;br /&gt;
* HI-Fi RUSH&lt;br /&gt;
* Hogwarts Legacy - launches fine first time but then won't relaunch - can be fixed by deleting ~/my-game-prefix/drive_c/ProgramData/Hogwarts Legacy - these are the files that are created at first launch that prevent relaunching&lt;br /&gt;
* Hatsune Miku: Project DIVA Mega Mix+ - works with Retina mode; [https://github.com/blueskythlikesclouds/DivaModLoader/releases DivaModLoader] and [https://github.com/Still34/azura-diva/releases DivaNoSpy] recommended; run Steam with WINEDEBUG=-all WINEESYNC=0 WINEDLLOVERRIDES=&amp;quot;dinput8.dll=n,b&amp;quot;; may randomly crash at the title screen: use [https://github.com/nastys/IntroPatch/releases IntroPatch] as a workaround&lt;br /&gt;
* Kena: Bridge of Spirits&lt;br /&gt;
* Metal Gear Solid V: The Phantom Pain&lt;br /&gt;
* Overwatch 2&lt;br /&gt;
* QUBE 2&lt;br /&gt;
* People Playground&lt;br /&gt;
* Prodeus&lt;br /&gt;
* Risk of Rain 2 (does not require `-disable-gpu-skinning` like Crossover 22)&lt;br /&gt;
* Scarlet Nexus&lt;br /&gt;
* Sonic GT&lt;br /&gt;
* Sonic illusions&lt;br /&gt;
* Sonic Omens&lt;br /&gt;
* Sonic P-06&lt;br /&gt;
* Spider-Man (2018)&lt;br /&gt;
* Spider-Man Miles Morales - ''requires Windows ver fix''&lt;br /&gt;
* SpongeBob SquarePants: The Cosmic Shake&lt;br /&gt;
* StarCraft: Remastered - Game runs fine but opening Option menu the second time will cause game not recognizing any inputs.&lt;br /&gt;
* Tetris Effect: Connected - Game window likes to be uncooperative; really doesn't like retina mode, works otherwise&lt;br /&gt;
* V Rising&lt;br /&gt;
* Warframe - ''To get installer/launcher working add dwrite (disabled) to library overrides in winecfg''&lt;br /&gt;
* WRATH: Aeon of Ruin&lt;br /&gt;
&lt;br /&gt;
Not working well:&lt;br /&gt;
* Horizon Zero Dawn - slowdown issues&lt;br /&gt;
* Genshin Impact - Launches, but stuck when calling menu using esc&lt;br /&gt;
&lt;br /&gt;
Not working yet:&lt;br /&gt;
* Apex (it will stuck because of anti-cheat)&lt;br /&gt;
* Any games that use the EA Launcher&lt;br /&gt;
** Need for Speed Heat&lt;br /&gt;
** Need for Speed Unbound&lt;br /&gt;
** Tom Clancy's The Division 2&lt;br /&gt;
* Among Us&lt;br /&gt;
* Assassins Creed Odyssey&lt;br /&gt;
* Assassins Creed Valhalla&lt;br /&gt;
* BeamNG.Drive - Loads into Main Menu but crashes on last step of loading into a level with a &amp;quot;UI Process failed to respond in time&amp;quot; error&lt;br /&gt;
* Company of Heroes 3&lt;br /&gt;
* Doom (2016) - &amp;quot;FATAL ERROR: wglCreateContextAttribsARB failed&amp;quot; message on launch&lt;br /&gt;
* F1 20 - Crash on launch (DX11 version running through GPT is slower compared to Crossover 21)&lt;br /&gt;
* F1 21 - Crash on launch&lt;br /&gt;
* F1 22 - Crash on launch (  &amp;quot;Exception&amp;quot;: &amp;quot;C0000005 EXCEPTION_ACCESS_VIOLATION at 0000000141bd8687&amp;quot;)&lt;br /&gt;
* Halo Infinite - Crash on launch&lt;br /&gt;
* Hitman 3 - launcher works, crash at 0x0000014136dddd hitman3+0x136dddd: int $3&lt;br /&gt;
* Microsoft Flight Simulator 2020 (Steam) - Crash on launch&lt;br /&gt;
* Monster Hunter Rise - DX12 Game, it launches but window goes dark after compiling shaders.&lt;br /&gt;
* Monster Hunter World - Black Screen on Launch&lt;br /&gt;
* New World - Game loaded but couldn't connect to server due to Easy Anti Cheat&lt;br /&gt;
* Red Dead Redemption 2&lt;br /&gt;
* Rogue Company - anti-cheat conflict.&lt;br /&gt;
* s&amp;amp;box - crashes right on launch. (it should be DX11)&lt;br /&gt;
* Sea of Thieves - Launches, but the prompt to sign into an xbox live account appears blank and cannot&lt;br /&gt;
* Saints Row IV: Re-Elected - Launches, but crashes when trying to load into game&lt;br /&gt;
* Slime Rancher 2 - Launches, but can't into game from main menu&lt;br /&gt;
* SpongeBob Squarepants: Battle for Bikini Bottom Rehydrated - Crashes when loading &lt;br /&gt;
* Teardown - When trying to launch, gives a error, &amp;quot;The program teardown.exe has encountered a serious problem and needs to close. We are sorry for the inconvenience.&amp;quot;&lt;br /&gt;
* The Elder Scrolls V: Skyrim Special Edition - the launcher gives a &amp;quot;The program teardown.exe has encountered a serious problem&amp;quot; message, not allowing us to get into the game&lt;br /&gt;
* theHunter: Call of the Wild - Crash on launch (Unhandled exception: page fault on read access to 0x0000000000000000 in 64-bit code (0x00000140b227f8))&lt;br /&gt;
* All DX9 games (duh, this is dx 11 &amp;amp; 12 only)&lt;br /&gt;
** 30XX - &amp;quot;Failed to create D3D device&amp;quot; -&amp;gt; crash on launch; this is a rare 64-bit DX9 game&lt;br /&gt;
** Battleblock Theater - Black screen -&amp;gt; crash on launch&lt;br /&gt;
** Black Mesa - Starts to load to main menu at first but then crashes&lt;br /&gt;
** Castle Crashers - Black screen -&amp;gt; crash on launch&lt;br /&gt;
** Killing Floor 1 - Crash on launch&lt;br /&gt;
** Left 4 Dead 2 - Black screen -&amp;gt; crash on launch&lt;br /&gt;
** Lego Batman: The Videogame - Black screen -&amp;gt; crash on launch&lt;br /&gt;
** Lego Batman 2: DC Super Heros - Black screen -&amp;gt; crash on launch&lt;br /&gt;
** Lego Batman 3: Beyond Gotham - Black screen -&amp;gt; crash on launch (You can switch to DX11 but are currently unable to do so since the game will not launch)&lt;br /&gt;
** Mega Man Zero/ZX Legacy Collection - &amp;quot;Failed to create d3d9 device&amp;quot; -&amp;gt; crash on launch&lt;br /&gt;
** Sonic Mania - Crash on launch&lt;br /&gt;
** StarCraft II -&amp;gt; &amp;quot;Failed to initialize DirectX&amp;quot; error&lt;br /&gt;
** Star Wars: The Old Republic&lt;br /&gt;
** Battlefield 2 - DirectX installation failed, won't launch, see the [https://gist.github.com/chrismwendt/1d01a306cdc8618a06bdfb555743e25c error log]&lt;br /&gt;
&lt;br /&gt;
{{References}}&lt;br /&gt;
[[Category:Lists]]&lt;/div&gt;</summary>
		<author><name>Andytizer</name></author>
	</entry>
	<entry>
		<id>https://www.applegamingwiki.com/w/index.php?title=Game_Porting_Toolkit&amp;diff=7737</id>
		<title>Game Porting Toolkit</title>
		<link rel="alternate" type="text/html" href="https://www.applegamingwiki.com/w/index.php?title=Game_Porting_Toolkit&amp;diff=7737"/>
		<updated>2023-06-10T23:19:35Z</updated>

		<summary type="html">&lt;p&gt;Andytizer: /* Game compatibility list */ Started articlising&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Image|Game Porting Toolkit.png|Released 6th June, 2023 at WWDC23.}}&lt;br /&gt;
&lt;br /&gt;
Game Porting Toolkit is Apple's new translation layer released on 6th June, 2023. Game Porting Toolkit ('''GPT''') combines Wine with Apple's own D3DMetal which supports DirectX 11 and 12&amp;lt;ref&amp;gt;{{Refurl|url=https://mastodon.gamedev.place/@gavkar/110501451404624870|title=Gokhan Avkarogullari: &amp;quot;@yiningkarlli @aras @romainguy…&amp;quot; - Gamedev Mastodon}}&amp;lt;/ref&amp;gt;. This is less user-friendly method of installing Windows games on Apple Silicon Macs compared to [[CrossOver]] or [[Parallels]], however it unlocks the ability to play many DirectX 12 games. A lot more games work using GPTK, however, games that use anti-cheat or aggressive DRMs generally don't work, along with games that require AVX/AVX 2, e.g. The Last of Us Part I.&lt;br /&gt;
&lt;br /&gt;
== Toolkit install instructions ==&lt;br /&gt;
=== Requirements ===&lt;br /&gt;
*macOS Sonoma should be used, currently it is in beta. You can download the pkg installer from [https://mrmacintosh.com/macos-sonoma-full-installer-database-download-directly-from-apple/ Mr Macintosh blog].&lt;br /&gt;
*macOS Ventura causes large numbers of issues with steamwebhelper.exe crashing so it isn't recommended, use the macOS Sonoma beta.&lt;br /&gt;
*Visit [https://developer.apple.com/downloads Apple Developer Downloads site], these files are now free to download use for any logged in Apple account.&lt;br /&gt;
**Search for Command Line Tools for Xcode 15 beta and download the dmg file, then install it. *If you have an old version Xcode installed, remove it.&lt;br /&gt;
**Search for Game Porting Toolkit and download it. Open the dmg file and then run the pkg.&lt;br /&gt;
&lt;br /&gt;
=== Homebrew ===&lt;br /&gt;
Note: if you have ever installed Homebrew before, then it is advised to remove ARM64 Homebrew as this can interfere with this build process. Either use a Homebrew uninstall script or delete the folder &amp;lt;code&amp;gt;/opt/homebrew/bin&amp;lt;/code&amp;gt;. If you prefer to keep both ARM64 and x86 versions of brew installed, you may add a &amp;quot;brew-switcher&amp;quot; to your &amp;lt;code&amp;gt;.zshrc&amp;lt;/code&amp;gt; file to allow either version to be used depending on the active architecture. You may follow the steps at the end of this section after installing Brew to achieve this.&lt;br /&gt;
&lt;br /&gt;
Open Terminal (search in Spotlight on macOS).&lt;br /&gt;
&lt;br /&gt;
Install Rosetta:&lt;br /&gt;
&amp;lt;pre&amp;gt;softwareupdate --install-rosetta&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Enter an x86_64 shell to continue the following steps in a Rosetta environment. All subsequent commands should be run within this shell.&lt;br /&gt;
&amp;lt;pre&amp;gt;arch -x86_64 zsh&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Install the x86_64 version of Homebrew if you don't already have it.&lt;br /&gt;
&amp;lt;pre&amp;gt;/bin/bash -c &amp;quot;$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)&amp;quot;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Set the path:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
(echo; echo 'eval &amp;quot;$(/usr/local/bin/brew shellenv)&amp;quot;') &amp;gt;&amp;gt; /Users/$USER/.zprofile&lt;br /&gt;
eval &amp;quot;$(/usr/local/bin/brew shellenv)&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Make sure the brew command is on your path:&lt;br /&gt;
&amp;lt;pre&amp;gt;which brew&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If this command does not print &amp;lt;code&amp;gt;/usr/local/bin/brew&amp;lt;/code&amp;gt;, you should use this command:&lt;br /&gt;
&amp;lt;pre&amp;gt;export PATH=/usr/local/bin:${PATH}&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Fixbox|description=Optionally retain both ARM64 and x86 versions of Brew|ref=|collapsed=yes|fix=&lt;br /&gt;
(Optional) If you want to have both ARM64 and x86 versions of Brew installed, begin by editing your &amp;lt;code&amp;gt;.zshrc&amp;lt;/code&amp;gt; file:&lt;br /&gt;
&amp;lt;pre&amp;gt;nano ~/.zshrc&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Scroll down (by using the arrow keys or Control + V) to the bottom of the file, and paste the following script:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
if [ &amp;quot;$(arch)&amp;quot; = &amp;quot;arm64&amp;quot; ]; then&lt;br /&gt;
    eval &amp;quot;$(/opt/homebrew/bin/brew shellenv)&amp;quot;&lt;br /&gt;
else&lt;br /&gt;
    eval &amp;quot;$(/usr/local/bin/brew shellenv)&amp;quot;&lt;br /&gt;
fi&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You may now restart your terminal and use the following command to return to an x86_64 shell:&lt;br /&gt;
&amp;lt;pre&amp;gt;arch -x86_64 zsh&amp;lt;/pre&amp;gt;&lt;br /&gt;
Your shell will now select the right installation of Brew, depending on your architecture.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=== Build ===&lt;br /&gt;
Run this command to download Apple tap:&lt;br /&gt;
&amp;lt;pre&amp;gt;brew tap apple/apple http://github.com/apple/homebrew-apple&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Install the game-porting-toolkit formula. This formula downloads and compiles several large software projects. How long this takes will depend on the speed of your computer. It can take over 1 hour to complete depending on the speed of your Mac.&lt;br /&gt;
&amp;lt;pre&amp;gt;brew -v install apple/apple/game-porting-toolkit&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If during installation you see an error such as '''“Error: game-porting-toolkit: unknown or unsupported macOS version: :dunno”, your version of Homebrew doesn’t have macOS Sonoma support. Update to the latest version of Homebrew and try again.'''&lt;br /&gt;
&amp;lt;pre&amp;gt;brew update brew -v install apple/apple/game-porting-toolkit&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Preparing the toolkit ===&lt;br /&gt;
Make sure the Game Porting Toolkit dmg downloaded earlier is mounted at /Volumes/Game Porting Toolkit-1.0. Use this script to copy the Game Porting Toolkit library directory into Wine’s library directory.&lt;br /&gt;
&amp;lt;pre&amp;gt;ditto /Volumes/Game\ Porting\ Toolkit-1.0/lib/ `brew --prefix game-porting-toolkit`/lib/&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Put the 3 scripts from the Game Porting Toolkit DMG into here &amp;lt;code&amp;gt;/usr/local/bin&amp;lt;/code&amp;gt; using this command:&lt;br /&gt;
&amp;lt;pre&amp;gt;cp /Volumes/Game\ Porting\ Toolkit*/gameportingtoolkit* /usr/local/bin&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Wine prefix ===&lt;br /&gt;
A Wine prefix contains a virtual C: drive, similar to a Bottle in [[CrossOver]]. You will install the toolkit and your game into this virtual C: drive. Run the following command to create a new Wine prefix named my-game-prefix in your home directory. This will create a Wine prefix called &amp;lt;code&amp;gt;my-game-prefix&amp;lt;/code&amp;gt; but could be renamed to anything.&lt;br /&gt;
&amp;lt;pre&amp;gt;WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 winecfg&amp;lt;/pre&amp;gt;&lt;br /&gt;
*A “Wine configuration” window should appear on your screen.&lt;br /&gt;
*Change the version of Windows to Windows 10.&lt;br /&gt;
*Choose Apply and then OK to exit winecfg.&lt;br /&gt;
&lt;br /&gt;
If the “Wine configuration” window does not appear, and no new icon appears in the Dock, verify that you have correctly installed the x86_64 version of Homebrew as well as the game-porting-toolkit formula.&lt;br /&gt;
&lt;br /&gt;
Now you are ready to install a launcher or individual Windows games into this Wine prefix, see below.&lt;br /&gt;
&lt;br /&gt;
== Steam ==&lt;br /&gt;
Download the [https://cdn.cloudflare.steamstatic.com/client/installer/SteamSetup.exe Windows version of Steam] and place in your Downloads folder.&lt;br /&gt;
&lt;br /&gt;
'''Install Steam'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix ~/Downloads/SteamSetup.exe&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Run Steam'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix 'C:\Program Files (x86)/Steam/steam.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Log into Steam'''&lt;br /&gt;
&lt;br /&gt;
A common issue is that Steam will present with a blank black window.&lt;br /&gt;
&lt;br /&gt;
Alternate way of launching Steam (after installing):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
MTL_HUD_ENABLED=1 WINEESYNC=1 WINEPREFIX=~/my-game-prefix /usr/local/Cellar/game-porting-toolkit/1.0/bin/wine64 'C:\Program Files (x86)\Steam\steam.exe'&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If this continues then close the Terminal window and then re-open and try again, repeat until the login screen opens. Now you should be able to download and launch Windows games through Steam.&lt;br /&gt;
&lt;br /&gt;
== Battle.net ==&lt;br /&gt;
Download the [https://download.battle.net/en-gb/?platform=windows Windows version of Battle.net] and place in your Downloads folder.&lt;br /&gt;
&lt;br /&gt;
Make a new Wineprefix for Battle.net, you can choose to use &amp;lt;code&amp;gt;my-game-prefix&amp;lt;/code&amp;gt; or change this to anything else.&lt;br /&gt;
&amp;lt;pre&amp;gt;WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 winecfg&amp;lt;/pre&amp;gt;&lt;br /&gt;
*A “Wine configuration” window should appear on your screen.&lt;br /&gt;
*Change the version of Windows to &amp;lt;code&amp;gt;Windows 10&amp;lt;/code&amp;gt;.&lt;br /&gt;
*Choose Apply and then OK to exit winecfg.&lt;br /&gt;
&lt;br /&gt;
If you are running Diablo IV, then you need to run this script to update the Wineprefix to appear as a more recent version of Windows:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion' /v CurrentBuild /t REG_SZ /d 19042 /f&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion' /v CurrentBuildNumber /t REG_SZ /d 19042 /f&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wineserver -k&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Run Battle.net launcher'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix ~/Downloads/Battle.net-Setup.exe&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Be aware that there is an issue launching Battle.net once installed, the only current way to re-login is to 'install' the launcher again. &lt;br /&gt;
&lt;br /&gt;
Start individual game without the launcher using this command:&lt;br /&gt;
&amp;lt;pre&amp;gt;arch -x86_64 gameportingtoolkit-no-hud ~/my-game-prefix 'C:\Program Files (x86)\Diablo IV\Diablo IV Launcher.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Epic and GOG.com support with the Heroic Games Launcher ==&lt;br /&gt;
This is particularly useful because '''as it currently stands, the real Epic Games Launcher fails to install under the Game Porting Toolkit'''. Heroic supports Epic and GOG.com games.&lt;br /&gt;
&lt;br /&gt;
* Install the [https://github.com/Heroic-Games-Launcher/HeroicGamesLauncher/releases native macOS Heroic Games Launcher] or from Homebrew.&lt;br /&gt;
* Open Heroic, and log into your Epic Games and/or GOG.com account.&lt;br /&gt;
* Go to the &amp;quot;Wine Manager&amp;quot; and install a '''numbered''' version of Wine, such that it won't auto update- we are going to modify it.&lt;br /&gt;
** At the time of writing this, the newest numbered version of Wine-Crossover is &amp;lt;code&amp;gt;Wine-Crossover-Wine-22.1.0&amp;lt;/code&amp;gt;&lt;br /&gt;
* Press the folder icon that appears after installing it to open the directory containing Heroic's Wine installations.&lt;br /&gt;
* Right-click on the version of Wine you just installed and press &amp;quot;Show Package Contents&amp;quot;.&lt;br /&gt;
* Open this directory in the Terminal.&lt;br /&gt;
** If you have &amp;quot;OpenInTerminal&amp;quot; this is one button, otherwise press &amp;quot;Show Path Bar&amp;quot; and navigate where it says with &amp;quot;cd&amp;quot;.&lt;br /&gt;
** It should be something like &amp;lt;code&amp;gt;cd ~/Library/Application\ Support/heroic/tools/wine/Wine-crossover-wine-22.1.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
* &amp;lt;pre&amp;gt;cd Contents/MacOS&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Remove the existing Wine: &amp;lt;pre&amp;gt;rm wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Create a symlink to Game Porting Toolkit's Wine: &lt;br /&gt;
** If using Game Porting Toolkit Wineprefix: &amp;lt;pre&amp;gt;ln -s `/usr/local/bin/brew --prefix game-porting-toolkit`/bin/wine64 wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
** If using Whisky: &amp;lt;pre&amp;gt;ln -s /Applications/Whisky.app/Contents/Resources/Libraries/Wine/bin/wine64 wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
* &amp;lt;pre&amp;gt;cd ../Resources&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Remove the existing Wine: &amp;lt;pre&amp;gt;rm -rfv wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Create a symlink to Game Porting Toolkit's Wine&lt;br /&gt;
** If using Game Porting Toolkit Wineprefix: &amp;lt;pre&amp;gt;ln -s `/usr/local/bin/brew --prefix game-porting-toolkit` wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
** If using Whisky: &amp;lt;pre&amp;gt;ln -s /Applications/Whisky.app/Contents/Resources/Libraries/Wine wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
* We are now done with Terminal. Install any games you want to try playing.&lt;br /&gt;
* Select the game you want to play, and press the settings button in the top-right.&lt;br /&gt;
* Make sure the version of Wine you just downloaded and modified is selected.&lt;br /&gt;
* Make sure your Game Porting Toolkit Wine Prefix is selected. If you followed Apple's guide this is &amp;lt;code&amp;gt;/Users/$USER/my-game-prefix&amp;lt;/code&amp;gt;.&lt;br /&gt;
* If you Open the &amp;quot;Other&amp;quot; section you can also add any environment variables you want like &amp;lt;code&amp;gt;WINEESYNC=1&amp;quot;&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;&amp;quot;MTL_HUD_ENABLED=1&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
* Close the settings and try running the game.&lt;br /&gt;
&lt;br /&gt;
== Commands ==&lt;br /&gt;
Installing individual exe games: open your Wine prefix’s virtual C: drive in Finder (open ~/my-game-prefix/drive_c) and copy your game into an appropriate subdirectory.&lt;br /&gt;
&lt;br /&gt;
'''A. Standard launching'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix 'C:\Program Files (x86)\Steam\steam.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This launches the given Windows game binary with a visible extended Metal Performance HUD and filters logging to output from the Game Porting Toolkit.&lt;br /&gt;
&lt;br /&gt;
'''B. Launching without a HUD'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit-no-hud ~/my-game-prefix 'C:\Program Files (x86)\Steam\steam.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''C. Launching with Wine ESYNC disabled'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit-no-esync ~/my-game-prefix 'C:\Program Files (x86)\Steam\steam.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To enter Winecfg:&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix winecfg&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Shortcut ==&lt;br /&gt;
{{Image|Game Porting Toolkit Steam icon.png|Made by user Omsier.|150px}}&lt;br /&gt;
You can make a shortcut for Steam for example by using macOS built-in Automator app.&lt;br /&gt;
*Open Automator.&lt;br /&gt;
*Select New Application.&lt;br /&gt;
*In the 2nd column select Run Shell Script.&lt;br /&gt;
*Copy and paste this code into the box:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/zsh&lt;br /&gt;
&lt;br /&gt;
export PATH=&amp;quot;/usr/local/bin:${PATH}&amp;quot;&lt;br /&gt;
&lt;br /&gt;
arch -x86_64 gameportingtoolkit ~/my-game-prefix 'C:\Program Files (x86)\Steam\steam.exe'&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the shortcut somewhere e.g. Applications.&lt;br /&gt;
*Above shortcut can be customised to any Wineprefix or game.&lt;br /&gt;
*Add an icon by selecting the shortcut, pressing {{key|cmd|I}} to Get Info, then dragging and dropping a PNG file onto the top left of the window.&lt;br /&gt;
&lt;br /&gt;
== Logging ==&lt;br /&gt;
The provided bin/gameportingtoolkit* scripts can be copied onto your path to facilitate different forms of logging and launching. You can run these scripts from any shell; you don’t need to switch to the Rosetta environment first.&lt;br /&gt;
&lt;br /&gt;
Logging output will appear in the Terminal window in which you launch your game as well as the system log, which can be viewed with the Console app found in Applications ▸ Utilities. Log messages from the Game Porting Toolkit are prefixed with D3DM. By default the gameportingtoolkit* scripts will filter to just the D3DM-prefixed messages.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
=== Steam login black screen ===&lt;br /&gt;
{{Image|GPTK Steam black screen.png|Steam login black screen issue.}}&lt;br /&gt;
&lt;br /&gt;
{{Fixbox|description=Alternate Steam launch command|ref=|fix=&lt;br /&gt;
Close the Terminal window and then reopen and retry the command, repeat several times.&lt;br /&gt;
&lt;br /&gt;
Alternate way of launching Steam (after installing):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
MTL_HUD_ENABLED=1 WINEESYNC=1 WINEPREFIX=~/my-game-prefix /usr/local/Cellar/game-porting-toolkit/1.0/bin/wine64 'C:\Program Files (x86)/Steam/steam.exe'&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If still not working then try using [[CrossOver]] and create a Steam bottle, then login, then redirect this WINEPREFIX to that bottle:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=&amp;quot;/Users/$USER/Library/Application Support/CrossOver/Bottles/Steam/&amp;quot; &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
{{Fixbox|description=Use macOS Steam login|ref=&amp;lt;ref&amp;gt;https://github.com/IsaacMarovitz/Whisky/issues/41#issuecomment-1585640483&amp;lt;/ref&amp;gt;|fix=&lt;br /&gt;
#Login to Steam macOS.&lt;br /&gt;
#From &amp;lt;code&amp;gt;/Users/$USER/Library/Application Support/Steam&amp;lt;/code&amp;gt;, copy three files/folders: config, registry.vdf, userdata.&lt;br /&gt;
#Paste into &amp;lt;code&amp;gt;~/my-game-prefix/drive_c/Program Files (x86)/Steam/&amp;lt;/code&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=== Steam crashes straight after opening ===&lt;br /&gt;
{{Fixbox|description=Disconnect external monitors|ref=&amp;lt;ref&amp;gt;Reference&amp;lt;/ref&amp;gt;|fix=&lt;br /&gt;
Disconnect any external monitors.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=== Battle.net launcher won't re-launch ===&lt;br /&gt;
Re-install the launcher to reopen, no other fix at the moment.&lt;br /&gt;
&lt;br /&gt;
===Windows version too old===&lt;br /&gt;
{{Fixbox|description=Name|ref=&amp;lt;ref&amp;gt;Reference&amp;lt;/ref&amp;gt;|fix=&lt;br /&gt;
'''My game won’t run because it thinks the version of Windows is too old. Some games detect specific minimum versions of Windows and need to be updated.''' Use this script to update your wineprefix with build 19042 which should work for most games e.g. Spider-Man Remastered.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion' /v CurrentBuild /t REG_SZ /d 19042 /f&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion' /v CurrentBuildNumber /t REG_SZ /d 19042 /f&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wineserver -k&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=== steamwebhelper.exe crashes ===&lt;br /&gt;
This is caused by Steam being run through macOS Ventura or below, most users should upgrade to macOS Sonoma. You can use the CrossOver workaround to login to Steam but you'll experience constant crashing.&lt;br /&gt;
&lt;br /&gt;
=== AVX ===&lt;br /&gt;
AVX and AVX2 games are not supported by Apple's arm64 chipset, e.g. Red Dead Redemption 2.&lt;br /&gt;
&lt;br /&gt;
=== Anti-cheat and DRM ===&lt;br /&gt;
Likely there will be no fixes for any games that use anti-cheat, e.g. Easy Anti Cheat. Some games have workarounds e.g. Elden Ring. Other games that use say Denuvo may also be incompatible until that DRM is removed by the game's developer.&lt;br /&gt;
&lt;br /&gt;
=== My game won’t run because it requires Mono, .NET, or the MSVCRT runtime ===&lt;br /&gt;
The game porting toolkit’s evaluation environment does not pre-install these runtime support packages. If your game makes use of one of these packages, consider searching for and downloading appropriate installers (.exe or .msi) and installing them to your evaluation environment. Additional runtime installers can be run on your environment by just launching the installer and following its installation instructions:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 &amp;lt;some-installer.exe&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
And .MSI packages can be installed by launching the Windows uninstaller application and choosing to install a downloaded .msi package:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 uninstaller&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Controller issues ===&lt;br /&gt;
{{Fixbox|description=Steam beta|ref=&amp;lt;ref&amp;gt;Reference&amp;lt;/ref&amp;gt;|fix=&lt;br /&gt;
Issues may be fixed by enrolling into the Steam beta.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=== My game looks pixelated and the display resolution is limited ===&lt;br /&gt;
{{Fixbox|description=Enable Retina mode|ref=|fix=&lt;br /&gt;
Enable Retina (high resolution) mode:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_CURRENT_USER\Software\Wine\Mac Driver' /v RetinaMode /t REG_SZ /d 'Y' /f&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Some games will not run with Retina mode enabled. To disable it:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_CURRENT_USER\Software\Wine\Mac Driver' /v RetinaMode /t REG_SZ /d 'N' /f&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
== Game compatibility list ==&lt;br /&gt;
{{ii}} '''Total number of games: '''{{#cargo_query:tables=Compatibility_macOS|fields=COUNT(*)|group by=_pageNamespace|where=Compatibility_macOS.wine='perfect' OR Compatibility_macOS.wine='playable' OR Compatibility_macOS.wine='runs' OR Compatibility_macOS.wine='menu'}}&lt;br /&gt;
{{mm}} ''This list was last refreshed on '''{{CURRENTMONTHNAME}} {{CURRENTDAY}},  {{CURRENTYEAR}}'''. [{{fullurl:{{FULLPAGENAMEE}}|action=purge}} Purge] the page to refresh it.''&lt;br /&gt;
{{#cargo_query:&lt;br /&gt;
tables=Compatibility_macOS&lt;br /&gt;
|fields=Compatibility_macOS._pageName, Compatibility_macOS.wine&lt;br /&gt;
|where=Compatibility_macOS.wine='perfect' OR Compatibility_macOS.wine='playable' OR Compatibility_macOS.wine='runs' OR Compatibility_macOS.wine='menu'&lt;br /&gt;
|limit=500&lt;br /&gt;
|offset=0&lt;br /&gt;
|format=template&lt;br /&gt;
|intro={{ListOfGames/intro}}&lt;br /&gt;
|template=ListOfGames/row&lt;br /&gt;
|outro=&amp;lt;/table&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
Old list - this should be made into individual wiki articles in order to populate the automated list above, which tracks all game compatibility methods using Wine.&lt;br /&gt;
&lt;br /&gt;
Working games:&lt;br /&gt;
* [[Astroneer]]&lt;br /&gt;
* [[Assassins Creed 3 Remastered]]&lt;br /&gt;
* [[Batman: Arkham Knight]] - launches with steam&lt;br /&gt;
* [[Bloodstained: Ritual of the Night]]&lt;br /&gt;
* [[Brick Rigs]&lt;br /&gt;
* [[Genshin Impact]] 3.7 (m2max with 4k 60fps stable) &lt;br /&gt;
* [[Control]] (DX12 mode, if downloaded from Heroic, needs to be ran by Terminal)&lt;br /&gt;
* [[Crysis Remastered]]&lt;br /&gt;
* [[Cultic]]&lt;br /&gt;
* [[Cuphead]]&lt;br /&gt;
* [[Cyberpunk 2077]]&lt;br /&gt;
* [[Deep Rock Galactic]]&lt;br /&gt;
* Deceive Inc. - works well if launched without EAC&lt;br /&gt;
* Derail Valley (awesome performance, no missing manuals - in-game objects for train operation - like on CrossOver)&lt;br /&gt;
* Diablo IV [https://www.reddit.com/r/macgaming/comments/14307be/comment/jn7dxzo/?utm_source=reddit&amp;amp;utm_medium=web2x&amp;amp;context=3 ]&lt;br /&gt;
* Dread Templar&lt;br /&gt;
* Dyson Sphere Program (some objects and main character weren't visible before)&lt;br /&gt;
* Elden Ring&lt;br /&gt;
* Final Fantasy VII Remake Intergrade (~50 FPS on High settings at 1080p with M1 Pro)&lt;br /&gt;
* Friends vs. Friends&lt;br /&gt;
* Gloomwood&lt;br /&gt;
* God of War (Works somewhat well on M1 Pro (16gb), wouldn't recommend lesser hardware.)&lt;br /&gt;
* Going Medieval&lt;br /&gt;
* Guilty Gear Strive&lt;br /&gt;
* Grand Theft Auto V&lt;br /&gt;
* Green Hell&lt;br /&gt;
* Halo 3 (MCC - No Online due to Easy Anti-Cheat Compatibility) [https://www.reddit.com/r/macgaming/comments/143zoos/halo_3_mcc_no_online_eac_m1_pro_game_porting/]&lt;br /&gt;
* Halo Reach (MCC) &lt;br /&gt;
* HI-Fi RUSH&lt;br /&gt;
* Hogwarts Legacy - launches fine first time but then won't relaunch - can be fixed by deleting ~/my-game-prefix/drive_c/ProgramData/Hogwarts Legacy - these are the files that are created at first launch that prevent relaunching&lt;br /&gt;
* Hatsune Miku: Project DIVA Mega Mix+ - works with Retina mode; [https://github.com/blueskythlikesclouds/DivaModLoader/releases DivaModLoader] and [https://github.com/Still34/azura-diva/releases DivaNoSpy] recommended; run Steam with WINEDEBUG=-all WINEESYNC=0 WINEDLLOVERRIDES=&amp;quot;dinput8.dll=n,b&amp;quot;; may randomly crash at the title screen: use [https://github.com/nastys/IntroPatch/releases IntroPatch] as a workaround&lt;br /&gt;
* Kena: Bridge of Spirits&lt;br /&gt;
* Metal Gear Solid V: The Phantom Pain&lt;br /&gt;
* Overwatch 2&lt;br /&gt;
* QUBE 2&lt;br /&gt;
* People Playground&lt;br /&gt;
* Prodeus&lt;br /&gt;
* Risk of Rain 2 (does not require `-disable-gpu-skinning` like Crossover 22)&lt;br /&gt;
* Scarlet Nexus&lt;br /&gt;
* Sonic GT&lt;br /&gt;
* Sonic illusions&lt;br /&gt;
* Sonic Omens&lt;br /&gt;
* Sonic P-06&lt;br /&gt;
* Spider-Man (2018)&lt;br /&gt;
* Spider-Man Miles Morales - ''requires Windows ver fix''&lt;br /&gt;
* SpongeBob SquarePants: The Cosmic Shake&lt;br /&gt;
* StarCraft: Remastered - Game runs fine but opening Option menu the second time will cause game not recognizing any inputs.&lt;br /&gt;
* Tetris Effect: Connected - Game window likes to be uncooperative; really doesn't like retina mode, works otherwise&lt;br /&gt;
* V Rising&lt;br /&gt;
* Warframe - ''To get installer/launcher working add dwrite (disabled) to library overrides in winecfg''&lt;br /&gt;
* WRATH: Aeon of Ruin&lt;br /&gt;
&lt;br /&gt;
Not working well:&lt;br /&gt;
* Horizon Zero Dawn - slowdown issues&lt;br /&gt;
* Genshin Impact - Launches, but stuck when calling menu using esc&lt;br /&gt;
&lt;br /&gt;
Not working yet:&lt;br /&gt;
* Apex (it will stuck because of anti-cheat)&lt;br /&gt;
* Any games that use the EA Launcher&lt;br /&gt;
** Need for Speed Heat&lt;br /&gt;
** Need for Speed Unbound&lt;br /&gt;
** Tom Clancy's The Division 2&lt;br /&gt;
* Among Us&lt;br /&gt;
* Assassins Creed Odyssey&lt;br /&gt;
* Assassins Creed Valhalla&lt;br /&gt;
* BeamNG.Drive - Loads into Main Menu but crashes on last step of loading into a level with a &amp;quot;UI Process failed to respond in time&amp;quot; error&lt;br /&gt;
* Company of Heroes 3&lt;br /&gt;
* Doom (2016) - &amp;quot;FATAL ERROR: wglCreateContextAttribsARB failed&amp;quot; message on launch&lt;br /&gt;
* F1 20 - Crash on launch (DX11 version running through GPT is slower compared to Crossover 21)&lt;br /&gt;
* F1 21 - Crash on launch&lt;br /&gt;
* F1 22 - Crash on launch (  &amp;quot;Exception&amp;quot;: &amp;quot;C0000005 EXCEPTION_ACCESS_VIOLATION at 0000000141bd8687&amp;quot;)&lt;br /&gt;
* Halo Infinite - Crash on launch&lt;br /&gt;
* Hitman 3 - launcher works, crash at 0x0000014136dddd hitman3+0x136dddd: int $3&lt;br /&gt;
* Microsoft Flight Simulator 2020 (Steam) - Crash on launch&lt;br /&gt;
* Monster Hunter Rise - DX12 Game, it launches but window goes dark after compiling shaders.&lt;br /&gt;
* Monster Hunter World - Black Screen on Launch&lt;br /&gt;
* New World - Game loaded but couldn't connect to server due to Easy Anti Cheat&lt;br /&gt;
* Red Dead Redemption 2&lt;br /&gt;
* Rogue Company - anti-cheat conflict.&lt;br /&gt;
* s&amp;amp;box - crashes right on launch. (it should be DX11)&lt;br /&gt;
* Sea of Thieves - Launches, but the prompt to sign into an xbox live account appears blank and cannot&lt;br /&gt;
* Saints Row IV: Re-Elected - Launches, but crashes when trying to load into game&lt;br /&gt;
* Slime Rancher 2 - Launches, but can't into game from main menu&lt;br /&gt;
* SpongeBob Squarepants: Battle for Bikini Bottom Rehydrated - Crashes when loading &lt;br /&gt;
* Teardown - When trying to launch, gives a error, &amp;quot;The program teardown.exe has encountered a serious problem and needs to close. We are sorry for the inconvenience.&amp;quot;&lt;br /&gt;
* The Elder Scrolls V: Skyrim Special Edition - the launcher gives a &amp;quot;The program teardown.exe has encountered a serious problem&amp;quot; message, not allowing us to get into the game&lt;br /&gt;
* theHunter: Call of the Wild - Crash on launch (Unhandled exception: page fault on read access to 0x0000000000000000 in 64-bit code (0x00000140b227f8))&lt;br /&gt;
* All DX9 games (duh, this is dx 11 &amp;amp; 12 only)&lt;br /&gt;
** 30XX - &amp;quot;Failed to create D3D device&amp;quot; -&amp;gt; crash on launch; this is a rare 64-bit DX9 game&lt;br /&gt;
** Battleblock Theater - Black screen -&amp;gt; crash on launch&lt;br /&gt;
** Black Mesa - Starts to load to main menu at first but then crashes&lt;br /&gt;
** Castle Crashers - Black screen -&amp;gt; crash on launch&lt;br /&gt;
** Killing Floor 1 - Crash on launch&lt;br /&gt;
** Left 4 Dead 2 - Black screen -&amp;gt; crash on launch&lt;br /&gt;
** Lego Batman: The Videogame - Black screen -&amp;gt; crash on launch&lt;br /&gt;
** Lego Batman 2: DC Super Heros - Black screen -&amp;gt; crash on launch&lt;br /&gt;
** Lego Batman 3: Beyond Gotham - Black screen -&amp;gt; crash on launch (You can switch to DX11 but are currently unable to do so since the game will not launch)&lt;br /&gt;
** Mega Man Zero/ZX Legacy Collection - &amp;quot;Failed to create d3d9 device&amp;quot; -&amp;gt; crash on launch&lt;br /&gt;
** Sonic Mania - Crash on launch&lt;br /&gt;
** StarCraft II -&amp;gt; &amp;quot;Failed to initialize DirectX&amp;quot; error&lt;br /&gt;
** Star Wars: The Old Republic&lt;br /&gt;
** Battlefield 2 - DirectX installation failed, won't launch, see the [https://gist.github.com/chrismwendt/1d01a306cdc8618a06bdfb555743e25c error log]&lt;br /&gt;
&lt;br /&gt;
{{References}}&lt;br /&gt;
[[Category:Lists]]&lt;/div&gt;</summary>
		<author><name>Andytizer</name></author>
	</entry>
	<entry>
		<id>https://www.applegamingwiki.com/w/index.php?title=Game_Porting_Toolkit&amp;diff=7721</id>
		<title>Game Porting Toolkit</title>
		<link rel="alternate" type="text/html" href="https://www.applegamingwiki.com/w/index.php?title=Game_Porting_Toolkit&amp;diff=7721"/>
		<updated>2023-06-10T18:17:24Z</updated>

		<summary type="html">&lt;p&gt;Andytizer: /* Game compatibility list */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Image|Game Porting Toolkit.png|Released 6th June, 2023 at WWDC23.}}&lt;br /&gt;
&lt;br /&gt;
Game Porting Toolkit is Apple's new translation layer released on 6th June, 2023. Game Porting Toolkit ('''GPT''') combines Wine with Apple's own D3DMetal which supports DirectX 11 and 12&amp;lt;ref&amp;gt;{{Refurl|url=https://mastodon.gamedev.place/@gavkar/110501451404624870|title=Gokhan Avkarogullari: &amp;quot;@yiningkarlli @aras @romainguy…&amp;quot; - Gamedev Mastodon}}&amp;lt;/ref&amp;gt;. This is less user-friendly method of installing Windows games on Apple Silicon Macs compared to [[CrossOver]] or [[Parallels]], however it unlocks the ability to play many DirectX 12 games. A lot more games work using GPTK, however, games that use anti-cheat or aggressive DRMs generally don't work, along with games that require AVX/AVX 2, e.g. The Last of Us Part I.&lt;br /&gt;
&lt;br /&gt;
== Toolkit install instructions ==&lt;br /&gt;
=== Requirements ===&lt;br /&gt;
*macOS Sonoma should be used, currently it is in beta. You can download the pkg installer from [https://mrmacintosh.com/macos-sonoma-full-installer-database-download-directly-from-apple/ Mr Macintosh blog].&lt;br /&gt;
*macOS Ventura causes large numbers of issues with steamwebhelper.exe crashing so it isn't recommended, use the macOS Sonoma beta.&lt;br /&gt;
*Visit [https://developer.apple.com/downloads Apple Developer Downloads site], these files are now free to download use for any logged in Apple account.&lt;br /&gt;
**Search for Command Line Tools for Xcode 15 beta and download the dmg file, then install it. *If you have an old version Xcode installed, remove it.&lt;br /&gt;
**Search for Game Porting Toolkit and download it. Open the dmg file and then run the pkg.&lt;br /&gt;
&lt;br /&gt;
=== Homebrew ===&lt;br /&gt;
Note: if you have ever installed Homebrew before, then it is advised to remove ARM64 Homebrew as this can interfere with this build process. Either use a Homebrew uninstall script or delete the folder &amp;lt;code&amp;gt;/opt/homebrew/bin&amp;lt;/code&amp;gt;. If you prefer to keep both ARM64 and x86 versions of brew installed, you may add a &amp;quot;brew-switcher&amp;quot; to your &amp;lt;code&amp;gt;.zshrc&amp;lt;/code&amp;gt; file to allow either version to be used depending on the active architecture. You may follow the steps at the end of this section after installing Brew to achieve this.&lt;br /&gt;
&lt;br /&gt;
Open Terminal (search in Spotlight on macOS).&lt;br /&gt;
&lt;br /&gt;
Install Rosetta:&lt;br /&gt;
&amp;lt;pre&amp;gt;softwareupdate --install-rosetta&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Enter an x86_64 shell to continue the following steps in a Rosetta environment. All subsequent commands should be run within this shell.&lt;br /&gt;
&amp;lt;pre&amp;gt;arch -x86_64 zsh&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Install the x86_64 version of Homebrew if you don't already have it.&lt;br /&gt;
&amp;lt;pre&amp;gt;/bin/bash -c &amp;quot;$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)&amp;quot;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Set the path:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
(echo; echo 'eval &amp;quot;$(/usr/local/bin/brew shellenv)&amp;quot;') &amp;gt;&amp;gt; /Users/[your macOS username]/.zprofile&lt;br /&gt;
eval &amp;quot;$(/usr/local/bin/brew shellenv)&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Make sure the brew command is on your path:&lt;br /&gt;
&amp;lt;pre&amp;gt;which brew&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If this command does not print &amp;lt;code&amp;gt;/usr/local/bin/brew&amp;lt;/code&amp;gt;, you should use this command:&lt;br /&gt;
&amp;lt;pre&amp;gt;export PATH=/usr/local/bin:${PATH}&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Fixbox|description=Optionally retain both ARM64 and x86 versions of Brew|ref=|collapsed=yes|fix=&lt;br /&gt;
(Optional) If you want to have both ARM64 and x86 versions of Brew installed, begin by editing your &amp;lt;code&amp;gt;.zshrc&amp;lt;/code&amp;gt; file:&lt;br /&gt;
&amp;lt;pre&amp;gt;nano ~/.zshrc&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Scroll down (by using the arrow keys or Control + V) to the bottom of the file, and paste the following script:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
if [ &amp;quot;$(arch)&amp;quot; = &amp;quot;arm64&amp;quot; ]; then&lt;br /&gt;
    eval &amp;quot;$(/opt/homebrew/bin/brew shellenv)&amp;quot;&lt;br /&gt;
else&lt;br /&gt;
    eval &amp;quot;$(/usr/local/bin/brew shellenv)&amp;quot;&lt;br /&gt;
fi&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You may now restart your terminal and use the following command to return to an x86_64 shell:&lt;br /&gt;
&amp;lt;pre&amp;gt;arch -x86_64 zsh&amp;lt;/pre&amp;gt;&lt;br /&gt;
Your shell will now select the right installation of Brew, depending on your architecture.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=== Build ===&lt;br /&gt;
Run this command to download Apple tap:&lt;br /&gt;
&amp;lt;pre&amp;gt;brew tap apple/apple http://github.com/apple/homebrew-apple&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Install the game-porting-toolkit formula. This formula downloads and compiles several large software projects. How long this takes will depend on the speed of your computer. It can take over 1 hour to complete depending on the speed of your Mac.&lt;br /&gt;
&amp;lt;pre&amp;gt;brew -v install apple/apple/game-porting-toolkit&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If during installation you see an error such as '''“Error: game-porting-toolkit: unknown or unsupported macOS version: :dunno”, your version of Homebrew doesn’t have macOS Sonoma support. Update to the latest version of Homebrew and try again.'''&lt;br /&gt;
&amp;lt;pre&amp;gt;brew update brew -v install apple/apple/game-porting-toolkit&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Preparing the toolkit ===&lt;br /&gt;
Make sure the Game Porting Toolkit dmg downloaded earlier is mounted at /Volumes/Game Porting Toolkit-1.0. Use this script to copy the Game Porting Toolkit library directory into Wine’s library directory.&lt;br /&gt;
&amp;lt;pre&amp;gt;ditto /Volumes/Game\ Porting\ Toolkit-1.0/lib/ `brew --prefix game-porting-toolkit`/lib/&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Put the 3 scripts from the Game Porting Toolkit DMG into here &amp;lt;code&amp;gt;/usr/local/bin&amp;lt;/code&amp;gt; using this command:&lt;br /&gt;
&amp;lt;pre&amp;gt;cp /Volumes/Game\ Porting\ Toolkit*/gameportingtoolkit* /usr/local/bin&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Wine prefix ===&lt;br /&gt;
A Wine prefix contains a virtual C: drive, similar to a Bottle in [[CrossOver]]. You will install the toolkit and your game into this virtual C: drive. Run the following command to create a new Wine prefix named my-game-prefix in your home directory. This will create a Wine prefix called &amp;lt;code&amp;gt;my-game-prefix&amp;lt;/code&amp;gt; but could be renamed to anything.&lt;br /&gt;
&amp;lt;pre&amp;gt;WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 winecfg&amp;lt;/pre&amp;gt;&lt;br /&gt;
*A “Wine configuration” window should appear on your screen.&lt;br /&gt;
*Change the version of Windows to Windows 10.&lt;br /&gt;
*Choose Apply and then OK to exit winecfg.&lt;br /&gt;
&lt;br /&gt;
If the “Wine configuration” window does not appear, and no new icon appears in the Dock, verify that you have correctly installed the x86_64 version of Homebrew as well as the game-porting-toolkit formula.&lt;br /&gt;
&lt;br /&gt;
Now you are ready to install a launcher or individual Windows games into this Wine prefix, see below.&lt;br /&gt;
&lt;br /&gt;
== Steam ==&lt;br /&gt;
Download the [https://cdn.cloudflare.steamstatic.com/client/installer/SteamSetup.exe Windows version of Steam] and place in your Downloads folder.&lt;br /&gt;
&lt;br /&gt;
'''Install Steam'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix ~/Downloads/SteamSetup.exe&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Run Steam'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix 'C:\Program Files (x86)/Steam/steam.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Log into Steam'''&lt;br /&gt;
&lt;br /&gt;
A common issue is that Steam will present with a blank black window.&lt;br /&gt;
&lt;br /&gt;
Alternate way of launching Steam (after installing):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
MTL_HUD_ENABLED=1 WINEESYNC=1 WINEPREFIX=~/my-game-prefix /usr/local/Cellar/game-porting-toolkit/1.0/bin/wine64 'C:\Program Files (x86)\Steam\steam.exe'&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If this continues then close the Terminal window and then re-open and try again, repeat until the login screen opens. Now you should be able to download and launch Windows games through Steam.&lt;br /&gt;
&lt;br /&gt;
== Battle.net ==&lt;br /&gt;
Download the [https://download.battle.net/en-gb/?platform=windows Windows version of Battle.net] and place in your Downloads folder.&lt;br /&gt;
&lt;br /&gt;
Make a new Wineprefix for Battle.net, you can choose to use &amp;lt;code&amp;gt;my-game-prefix&amp;lt;/code&amp;gt; or change this to anything else.&lt;br /&gt;
&amp;lt;pre&amp;gt;WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 winecfg&amp;lt;/pre&amp;gt;&lt;br /&gt;
*A “Wine configuration” window should appear on your screen.&lt;br /&gt;
*Change the version of Windows to &amp;lt;code&amp;gt;Windows 10&amp;lt;/code&amp;gt;.&lt;br /&gt;
*Choose Apply and then OK to exit winecfg.&lt;br /&gt;
&lt;br /&gt;
If you are running Diablo IV, then you need to run this script to update the Wineprefix to appear as a more recent version of Windows:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion' /v CurrentBuild /t REG_SZ /d 19042 /f&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion' /v CurrentBuildNumber /t REG_SZ /d 19042 /f&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wineserver -k&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Run Battle.net launcher'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix ~/Downloads/Battle.net-Setup.exe&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Be aware that there is an issue launching Battle.net once installed, the only current way to re-login is to 'install' the launcher again. &lt;br /&gt;
&lt;br /&gt;
Start individual game without the launcher using this command:&lt;br /&gt;
&amp;lt;pre&amp;gt;arch -x86_64 gameportingtoolkit-no-hud ~/my-game-prefix 'C:\Program Files (x86)\Diablo IV\Diablo IV Launcher.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Epic and GOG.com support with the Heroic Games Launcher ==&lt;br /&gt;
This is particularly useful because '''as it currently stands, the real Epic Games Launcher fails to install under the Game Porting Toolkit'''. Heroic supports Epic and GOG.com games.&lt;br /&gt;
&lt;br /&gt;
* Install the [https://github.com/Heroic-Games-Launcher/HeroicGamesLauncher/releases native macOS Heroic Games Launcher] or from Homebrew.&lt;br /&gt;
* Open Heroic, and log into your Epic Games and/or GOG.com account.&lt;br /&gt;
* Go to the &amp;quot;Wine Manager&amp;quot; and install a '''numbered''' version of Wine, such that it won't auto update- we are going to modify it.&lt;br /&gt;
** At the time of writing this, the newest numbered version of Wine-Crossover is &amp;lt;code&amp;gt;Wine-Crossover-Wine-22.1.0&amp;lt;/code&amp;gt;&lt;br /&gt;
* Press the folder icon that appears after installing it to open the directory containing Heroic's Wine installations.&lt;br /&gt;
* Right-click on the version of Wine you just installed and press &amp;quot;Show Package Contents&amp;quot;.&lt;br /&gt;
* Open this directory in the Terminal.&lt;br /&gt;
** If you have &amp;quot;OpenInTerminal&amp;quot; this is one button, otherwise press &amp;quot;Show Path Bar&amp;quot; and navigate where it says with &amp;quot;cd&amp;quot;.&lt;br /&gt;
** It should be something like &amp;lt;code&amp;gt;cd ~/Library/Application\ Support/heroic/tools/wine/Wine-crossover-wine-22.1.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
* &amp;lt;pre&amp;gt;cd Contents/MacOS&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Remove the existing Wine: &amp;lt;pre&amp;gt;rm wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Create a symlink to Game Porting Toolkit's Wine: &lt;br /&gt;
** If using Game Porting Toolkit Wineprefix: &amp;lt;pre&amp;gt;ln -s `/usr/local/bin/brew --prefix game-porting-toolkit`/bin/wine64 wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
** If using Whisky: &amp;lt;pre&amp;gt;ln -s /Applications/Whisky.app/Contents/Resources/Libraries/Wine/bin/wine64 wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
* &amp;lt;pre&amp;gt;cd ../Resources&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Remove the existing Wine: &amp;lt;pre&amp;gt;rm -rfv wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Create a symlink to Game Porting Toolkit's Wine&lt;br /&gt;
** If using Game Porting Toolkit Wineprefix: &amp;lt;pre&amp;gt;ln -s `/usr/local/bin/brew --prefix game-porting-toolkit` wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
** If using Whisky: &amp;lt;pre&amp;gt;ln -s /Applications/Whisky.app/Contents/Resources/Libraries/Wine wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
* We are now done with Terminal. Install any games you want to try playing.&lt;br /&gt;
* Select the game you want to play, and press the settings button in the top-right.&lt;br /&gt;
* Make sure the version of Wine you just downloaded and modified is selected.&lt;br /&gt;
* Make sure your Game Porting Toolkit Wine Prefix is selected. If you followed Apple's guide this is &amp;lt;code&amp;gt;/Users/you/my-game-prefix&amp;lt;/code&amp;gt;.&lt;br /&gt;
* If you Open the &amp;quot;Other&amp;quot; section you can also add any environment variables you want like &amp;lt;code&amp;gt;WINEESYNC=1&amp;quot;&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;&amp;quot;MTL_HUD_ENABLED=1&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
* Close the settings and try running the game.&lt;br /&gt;
&lt;br /&gt;
== Commands ==&lt;br /&gt;
Installing individual exe games: open your Wine prefix’s virtual C: drive in Finder (open ~/my-game-prefix/drive_c) and copy your game into an appropriate subdirectory.&lt;br /&gt;
&lt;br /&gt;
'''A. Standard launching'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix 'C:\Program Files (x86)\Steam\steam.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This launches the given Windows game binary with a visible extended Metal Performance HUD and filters logging to output from the Game Porting Toolkit.&lt;br /&gt;
&lt;br /&gt;
'''B. Launching without a HUD'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit-no-hud ~/my-game-prefix 'C:\Program Files (x86)\Steam\steam.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''C. Launching with Wine ESYNC disabled'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit-no-esync ~/my-game-prefix 'C:\Program Files (x86)\Steam\steam.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To enter Winecfg:&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix winecfg&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Shortcut ==&lt;br /&gt;
{{Image|Game Porting Toolkit Steam icon.png|Made by user Omsier.|150px}}&lt;br /&gt;
You can make a shortcut for Steam for example by using macOS built-in Automator app.&lt;br /&gt;
*Open Automator.&lt;br /&gt;
*Select New Application.&lt;br /&gt;
*In the 2nd column select Run Shell Script.&lt;br /&gt;
*Copy and paste this code into the box:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/zsh&lt;br /&gt;
&lt;br /&gt;
export PATH=&amp;quot;/usr/local/bin:${PATH}&amp;quot;&lt;br /&gt;
&lt;br /&gt;
arch -x86_64 gameportingtoolkit ~/my-game-prefix 'C:\Program Files (x86)\Steam\steam.exe'&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the shortcut somewhere e.g. Applications.&lt;br /&gt;
*Above shortcut can be customised to any Wineprefix or game.&lt;br /&gt;
*Add an icon by selecting the shortcut, pressing {{key|cmd|I}} to Get Info, then dragging and dropping a PNG file onto the top left of the window.&lt;br /&gt;
&lt;br /&gt;
== Logging ==&lt;br /&gt;
The provided bin/gameportingtoolkit* scripts can be copied onto your path to facilitate different forms of logging and launching. You can run these scripts from any shell; you don’t need to switch to the Rosetta environment first.&lt;br /&gt;
&lt;br /&gt;
Logging output will appear in the Terminal window in which you launch your game as well as the system log, which can be viewed with the Console app found in Applications ▸ Utilities. Log messages from the Game Porting Toolkit are prefixed with D3DM. By default the gameportingtoolkit* scripts will filter to just the D3DM-prefixed messages.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
=== Steam login black screen ===&lt;br /&gt;
{{Image|GPTK Steam black screen.png|Steam login black screen issue.}}&lt;br /&gt;
&lt;br /&gt;
{{Fixbox|description=Alternate Steam launch command|ref=|fix=&lt;br /&gt;
Close the Terminal window and then reopen and retry the command, repeat several times.&lt;br /&gt;
&lt;br /&gt;
Alternate way of launching Steam (after installing):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
MTL_HUD_ENABLED=1 WINEESYNC=1 WINEPREFIX=~/my-game-prefix /usr/local/Cellar/game-porting-toolkit/1.0/bin/wine64 'C:\Program Files (x86)/Steam/steam.exe'&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If still not working then try using [[CrossOver]] and create a Steam bottle, then login, then redirect this WINEPREFIX to that bottle:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=&amp;quot;/Users/[username]/Library/Application Support/CrossOver/Bottles/Steam/&amp;quot; &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
{{Fixbox|description=Use macOS Steam login|ref=&amp;lt;ref&amp;gt;https://github.com/IsaacMarovitz/Whisky/issues/41#issuecomment-1585640483&amp;lt;/ref&amp;gt;|fix=&lt;br /&gt;
#Login to Steam macOS.&lt;br /&gt;
#From &amp;lt;code&amp;gt;/Users/?????/Library/Application Support/Steam&amp;lt;/code&amp;gt;, copy three files/folders: config, registry.vdf, userdata.&lt;br /&gt;
#Paste into &amp;lt;code&amp;gt;~/my-game-prefix/drive_c/Program Files (x86)/Steam/&amp;lt;/code&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=== Steam crashes straight after opening ===&lt;br /&gt;
{{Fixbox|description=Disconnect external monitors|ref=&amp;lt;ref&amp;gt;Reference&amp;lt;/ref&amp;gt;|fix=&lt;br /&gt;
Disconnect any external monitors.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=== Battle.net launcher won't re-launch ===&lt;br /&gt;
Re-install the launcher to reopen, no other fix at the moment.&lt;br /&gt;
&lt;br /&gt;
===Windows version too old===&lt;br /&gt;
{{Fixbox|description=Name|ref=&amp;lt;ref&amp;gt;Reference&amp;lt;/ref&amp;gt;|fix=&lt;br /&gt;
'''My game won’t run because it thinks the version of Windows is too old. Some games detect specific minimum versions of Windows and need to be updated.''' Use this script to update your wineprefix with build 19042 which should work for most games e.g. Spider-Man Remastered.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion' /v CurrentBuild /t REG_SZ /d 19042 /f&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion' /v CurrentBuildNumber /t REG_SZ /d 19042 /f&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wineserver -k&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=== steamwebhelper.exe crashes ===&lt;br /&gt;
This is caused by Steam being run through macOS Ventura or below, most users should upgrade to macOS Sonoma. You can use the CrossOver workaround to login to Steam but you'll experience constant crashing.&lt;br /&gt;
&lt;br /&gt;
=== AVX ===&lt;br /&gt;
AVX and AVX2 games are not supported by Apple's arm64 chipset, e.g. Red Dead Redemption 2.&lt;br /&gt;
&lt;br /&gt;
=== Anti-cheat and DRM ===&lt;br /&gt;
Likely there will be no fixes for any games that use anti-cheat, e.g. Easy Anti Cheat. Some games have workarounds e.g. Elden Ring. Other games that use say Denuvo may also be incompatible until that DRM is removed by the game's developer.&lt;br /&gt;
&lt;br /&gt;
=== My game won’t run because it requires Mono, .NET, or the MSVCRT runtime ===&lt;br /&gt;
The game porting toolkit’s evaluation environment does not pre-install these runtime support packages. If your game makes use of one of these packages, consider searching for and downloading appropriate installers (.exe or .msi) and installing them to your evaluation environment. Additional runtime installers can be run on your environment by just launching the installer and following its installation instructions:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 &amp;lt;some-installer.exe&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
And .MSI packages can be installed by launching the Windows uninstaller application and choosing to install a downloaded .msi package:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 uninstaller&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Controller issues ===&lt;br /&gt;
{{Fixbox|description=Steam beta|ref=&amp;lt;ref&amp;gt;Reference&amp;lt;/ref&amp;gt;|fix=&lt;br /&gt;
Issues may be fixed by enrolling into the Steam beta.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=== My game looks pixelated and the display resolution is limited ===&lt;br /&gt;
{{Fixbox|description=Enable Retina mode|ref=|fix=&lt;br /&gt;
Enable Retina (high resolution) mode:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_CURRENT_USER\Software\Wine\Mac Driver' /v RetinaMode /t REG_SZ /d 'Y' /f&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Some games will not run with Retina mode enabled. To disable it:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_CURRENT_USER\Software\Wine\Mac Driver' /v RetinaMode /t REG_SZ /d 'N' /f&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
== Game compatibility list ==&lt;br /&gt;
{{ii}} '''Total number of games: '''{{#cargo_query:tables=Compatibility_macOS|fields=COUNT(*)|group by=_pageNamespace|where=Compatibility_macOS.wine='perfect' OR Compatibility_macOS.wine='playable' OR Compatibility_macOS.wine='runs' OR Compatibility_macOS.wine='menu'}}&lt;br /&gt;
{{mm}} ''This list was last refreshed on '''{{CURRENTMONTHNAME}} {{CURRENTDAY}},  {{CURRENTYEAR}}'''. [{{fullurl:{{FULLPAGENAMEE}}|action=purge}} Purge] the page to refresh it.''&lt;br /&gt;
{{#cargo_query:&lt;br /&gt;
tables=Compatibility_macOS&lt;br /&gt;
|fields=Compatibility_macOS._pageName, Compatibility_macOS.wine&lt;br /&gt;
|where=Compatibility_macOS.wine='perfect' OR Compatibility_macOS.wine='playable' OR Compatibility_macOS.wine='runs' OR Compatibility_macOS.wine='menu'&lt;br /&gt;
|limit=500&lt;br /&gt;
|offset=0&lt;br /&gt;
|format=template&lt;br /&gt;
|intro={{ListOfGames/intro}}&lt;br /&gt;
|template=ListOfGames/row&lt;br /&gt;
|outro=&amp;lt;/table&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
Old list - this should be made into individual wiki articles in order to populate the automated list above, which tracks all game compatibility methods using Wine.&lt;br /&gt;
&lt;br /&gt;
Working games:&lt;br /&gt;
* Astroneer&lt;br /&gt;
* Assassins Creed 3 Remastered&lt;br /&gt;
* Batman: Arkham Knight - launches with steam&lt;br /&gt;
* Bloodstained: Ritual of the Night&lt;br /&gt;
* Brick Rigs&lt;br /&gt;
* Genshin Impact 3.7 (m2max with 4k 60fps stable) &lt;br /&gt;
* Control (DX12 mode, if downloaded from Heroic, needs to be ran by Terminal)&lt;br /&gt;
* Crysis Remastered&lt;br /&gt;
* Cuphead&lt;br /&gt;
* Cyberpunk 2077&lt;br /&gt;
* Deep Rock Galactic&lt;br /&gt;
* Deceive Inc. - works well if launched without EAC&lt;br /&gt;
* Derail Valley (awesome performance, no missing manuals - in-game objects for train operation - like on CrossOver)&lt;br /&gt;
* Diablo IV [https://www.reddit.com/r/macgaming/comments/14307be/comment/jn7dxzo/?utm_source=reddit&amp;amp;utm_medium=web2x&amp;amp;context=3 ]&lt;br /&gt;
* Dyson Sphere Program (some objects and main character weren't visible before)&lt;br /&gt;
* Elden Ring&lt;br /&gt;
* Final Fantasy VII Remake Intergrade (~50 FPS on High settings at 1080p with M1 Pro)&lt;br /&gt;
* Friends vs. Friends&lt;br /&gt;
* God of War (Works somewhat well on M1 Pro (16gb), wouldn't recommend lesser hardware.)&lt;br /&gt;
* Going Medieval&lt;br /&gt;
* Guilty Gear Strive&lt;br /&gt;
* Grand Theft Auto V&lt;br /&gt;
* Green Hell&lt;br /&gt;
* Halo 3 (MCC - No Online due to Easy Anti-Cheat Compatibility) [https://www.reddit.com/r/macgaming/comments/143zoos/halo_3_mcc_no_online_eac_m1_pro_game_porting/]&lt;br /&gt;
* Halo Reach (MCC) &lt;br /&gt;
* HI-Fi RUSH&lt;br /&gt;
* Hogwarts Legacy - launches fine first time but then won't relaunch - can be fixed by deleting ~/my-game-prefix/drive_c/ProgramData/Hogwarts Legacy - these are the files that are created at first launch that prevent relaunching&lt;br /&gt;
* Hatsune Miku: Project DIVA Mega Mix+ - works with Retina mode; [https://github.com/blueskythlikesclouds/DivaModLoader/releases DivaModLoader] and [https://github.com/Still34/azura-diva/releases DivaNoSpy] recommended; run Steam with WINEDEBUG=-all WINEESYNC=0 WINEDLLOVERRIDES=&amp;quot;dinput8.dll=n,b&amp;quot;; may randomly crash at the title screen: use [https://github.com/nastys/IntroPatch/releases IntroPatch] as a workaround&lt;br /&gt;
* Kena: Bridge of Spirits&lt;br /&gt;
* Metal Gear Solid V: The Phantom Pain&lt;br /&gt;
* Overwatch 2&lt;br /&gt;
* QUBE 2&lt;br /&gt;
* People Playground&lt;br /&gt;
* Risk of Rain 2 (does not require `-disable-gpu-skinning` like Crossover 22)&lt;br /&gt;
* Scarlet Nexus&lt;br /&gt;
* Sonic GT&lt;br /&gt;
* Sonic illusions&lt;br /&gt;
* Sonic Omens&lt;br /&gt;
* Sonic P-06&lt;br /&gt;
* Spider-Man (2018)&lt;br /&gt;
* Spider-Man Miles Morales - ''requires Windows ver fix''&lt;br /&gt;
* SpongeBob SquarePants: The Cosmic Shake&lt;br /&gt;
* StarCraft: Remastered - Game runs fine but opening Option menu the second time will cause game not recognizing any inputs.&lt;br /&gt;
* Tetris Effect: Connected - Game window likes to be uncooperative; really doesn't like retina mode, works otherwise&lt;br /&gt;
* V Rising&lt;br /&gt;
* Warframe - ''To get installer/launcher working add dwrite (disabled) to library overrides in winecfg''&lt;br /&gt;
&lt;br /&gt;
Not working well:&lt;br /&gt;
* Horizon Zero Dawn - slowdown issues&lt;br /&gt;
* Genshin Impact - Launches, but stuck when calling menu using esc&lt;br /&gt;
&lt;br /&gt;
Not working yet:&lt;br /&gt;
* Apex (it will stuck because of anti-cheat)&lt;br /&gt;
* Any games that use the EA Launcher&lt;br /&gt;
** Need for Speed Heat&lt;br /&gt;
** Need for Speed Unbound&lt;br /&gt;
** Tom Clancy's The Division 2&lt;br /&gt;
* Among Us&lt;br /&gt;
* Assassins Creed Odyssey&lt;br /&gt;
* Assassins Creed Valhalla&lt;br /&gt;
* BeamNG.Drive - Loads into Main Menu but crashes on last step of loading into a level with a &amp;quot;UI Process failed to respond in time&amp;quot; error&lt;br /&gt;
* Company of Heroes 3&lt;br /&gt;
* Doom (2016) - &amp;quot;FATAL ERROR: wglCreateContextAttribsARB failed&amp;quot; message on launch&lt;br /&gt;
* F1 20 - Crash on launch (DX11 version running through GPT is slower compared to Crossover 21)&lt;br /&gt;
* F1 21 - Crash on launch&lt;br /&gt;
* F1 22 - Crash on launch (  &amp;quot;Exception&amp;quot;: &amp;quot;C0000005 EXCEPTION_ACCESS_VIOLATION at 0000000141bd8687&amp;quot;)&lt;br /&gt;
* Halo Infinite - Crash on launch&lt;br /&gt;
* Hitman 3 - launcher works, crash at 0x0000014136dddd hitman3+0x136dddd: int $3&lt;br /&gt;
* Microsoft Flight Simulator 2020 (Steam) - Crash on launch&lt;br /&gt;
* Monster Hunter Rise - DX12 Game, it launches but window goes dark after compiling shaders.&lt;br /&gt;
* Monster Hunter World - Black Screen on Launch&lt;br /&gt;
* New World - Game loaded but couldn't connect to server due to Easy Anti Cheat&lt;br /&gt;
* Red Dead Redemption 2&lt;br /&gt;
* Rogue Company - anti-cheat conflict.&lt;br /&gt;
* s&amp;amp;box - crashes right on launch. (it should be DX11)&lt;br /&gt;
* Sea of Thieves - Launches, but the prompt to sign into an xbox live account appears blank and cannot&lt;br /&gt;
* Saints Row IV: Re-Elected - Launches, but crashes when trying to load into game&lt;br /&gt;
* Slime Rancher 2 - Launches, but can't into game from main menu&lt;br /&gt;
* SpongeBob Squarepants: Battle for Bikini Bottom Rehydrated - Crashes when loading &lt;br /&gt;
* Teardown - When trying to launch, gives a error, &amp;quot;The program teardown.exe has encountered a serious problem and needs to close. We are sorry for the inconvenience.&amp;quot;&lt;br /&gt;
* The Elder Scrolls V: Skyrim Special Edition - the launcher gives a &amp;quot;The program teardown.exe has encountered a serious problem&amp;quot; message, not allowing us to get into the game&lt;br /&gt;
* theHunter: Call of the Wild - Crash on launch (Unhandled exception: page fault on read access to 0x0000000000000000 in 64-bit code (0x00000140b227f8))&lt;br /&gt;
* All DX9 games (duh, this is dx 11 &amp;amp; 12 only)&lt;br /&gt;
** 30XX - &amp;quot;Failed to create D3D device&amp;quot; -&amp;gt; crash on launch; this is a rare 64-bit DX9 game&lt;br /&gt;
** Battleblock Theater - Black screen -&amp;gt; crash on launch&lt;br /&gt;
** Black Mesa - Starts to load to main menu at first but then crashes&lt;br /&gt;
** Castle Crashers - Black screen -&amp;gt; crash on launch&lt;br /&gt;
** Killing Floor 1 - Crash on launch&lt;br /&gt;
** Left 4 Dead 2 - Black screen -&amp;gt; crash on launch&lt;br /&gt;
** Lego Batman: The Videogame - Black screen -&amp;gt; crash on launch&lt;br /&gt;
** Lego Batman 2: DC Super Heros - Black screen -&amp;gt; crash on launch&lt;br /&gt;
** Lego Batman 3: Beyond Gotham - Black screen -&amp;gt; crash on launch (You can switch to DX11 but are currently unable to do so since the game will not launch)&lt;br /&gt;
** Mega Man Zero/ZX Legacy Collection - &amp;quot;Failed to create d3d9 device&amp;quot; -&amp;gt; crash on launch&lt;br /&gt;
** Sonic Mania - Crash on launch&lt;br /&gt;
** StarCraft II -&amp;gt; &amp;quot;Failed to initialize DirectX&amp;quot; error&lt;br /&gt;
** Star Wars: The Old Republic&lt;br /&gt;
** Battlefield 2 - DirectX installation failed, won't launch, see the [https://gist.github.com/chrismwendt/1d01a306cdc8618a06bdfb555743e25c error log]&lt;br /&gt;
&lt;br /&gt;
{{References}}&lt;br /&gt;
[[Category:Lists]]&lt;/div&gt;</summary>
		<author><name>Andytizer</name></author>
	</entry>
	<entry>
		<id>https://www.applegamingwiki.com/w/index.php?title=Hatsune_Miku:_Project_DIVA_MEGA39&amp;diff=7700</id>
		<title>Hatsune Miku: Project DIVA MEGA39</title>
		<link rel="alternate" type="text/html" href="https://www.applegamingwiki.com/w/index.php?title=Hatsune_Miku:_Project_DIVA_MEGA39&amp;diff=7700"/>
		<updated>2023-06-10T17:18:42Z</updated>

		<summary type="html">&lt;p&gt;Andytizer: Changed redirect target from Https://www.applegamingwiki.com/wiki/Hatsune Miku: Project DIVA Mega Mix+ to Hatsune Miku: Project DIVA Mega Mix+&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;#REDIRECT [[Hatsune_Miku:_Project_DIVA_Mega_Mix%2B]]&lt;/div&gt;</summary>
		<author><name>Andytizer</name></author>
	</entry>
	<entry>
		<id>https://www.applegamingwiki.com/w/index.php?title=Hatsune_Miku:_Project_DIVA_MEGA39&amp;diff=7699</id>
		<title>Hatsune Miku: Project DIVA MEGA39</title>
		<link rel="alternate" type="text/html" href="https://www.applegamingwiki.com/w/index.php?title=Hatsune_Miku:_Project_DIVA_MEGA39&amp;diff=7699"/>
		<updated>2023-06-10T17:18:25Z</updated>

		<summary type="html">&lt;p&gt;Andytizer: Redirected page to Https://www.applegamingwiki.com/wiki/Hatsune Miku: Project DIVA Mega Mix+&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;#REDIRECT [[https://www.applegamingwiki.com/wiki/Hatsune_Miku:_Project_DIVA_Mega_Mix%2B]]&lt;/div&gt;</summary>
		<author><name>Andytizer</name></author>
	</entry>
	<entry>
		<id>https://www.applegamingwiki.com/w/index.php?title=Game_Porting_Toolkit&amp;diff=7698</id>
		<title>Game Porting Toolkit</title>
		<link rel="alternate" type="text/html" href="https://www.applegamingwiki.com/w/index.php?title=Game_Porting_Toolkit&amp;diff=7698"/>
		<updated>2023-06-10T16:52:30Z</updated>

		<summary type="html">&lt;p&gt;Andytizer: /* AVX */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Image|Game Porting Toolkit.png|Released 6th June, 2023 at WWDC23.}}&lt;br /&gt;
&lt;br /&gt;
Game Porting Toolkit is Apple's new translation layer released on 6th June, 2023. Game Porting Toolkit ('''GPT''') combines Wine with Apple's own D3DMetal which supports DirectX 11 and 12&amp;lt;ref&amp;gt;{{Refurl|url=https://mastodon.gamedev.place/@gavkar/110501451404624870|title=Gokhan Avkarogullari: &amp;quot;@yiningkarlli @aras @romainguy…&amp;quot; - Gamedev Mastodon}}&amp;lt;/ref&amp;gt;. This is less user-friendly method of installing Windows games on Apple Silicon Macs compared to [[CrossOver]] or [[Parallels]], however it unlocks the ability to play many DirectX 12 games. A lot more games work using GPTK, however, games that use anti-cheat or aggressive DRMs generally don't work, along with games that require AVX/AVX 2, e.g. The Last of Us Part I.&lt;br /&gt;
&lt;br /&gt;
== Toolkit install instructions ==&lt;br /&gt;
=== Requirements ===&lt;br /&gt;
*macOS Sonoma should be used, currently it is in beta. You can download the pkg installer from [https://mrmacintosh.com/macos-sonoma-full-installer-database-download-directly-from-apple/ Mr Macintosh blog].&lt;br /&gt;
*macOS Ventura causes large numbers of issues with steamwebhelper.exe crashing so it isn't recommended, use the macOS Sonoma beta.&lt;br /&gt;
*Visit [https://developer.apple.com/downloads Apple Developer Downloads site], these files are now free to download use for any logged in Apple account.&lt;br /&gt;
**Search for Command Line Tools for Xcode 15 beta and download the dmg file, then install it. *If you have an old version Xcode installed, remove it.&lt;br /&gt;
**Search for Game Porting Toolkit and download it. Open the dmg file and then run the pkg.&lt;br /&gt;
&lt;br /&gt;
=== Homebrew ===&lt;br /&gt;
Note: if you have ever installed Homebrew before, then it is advised to remove ARM64 Homebrew as this can interfere with this build process. Either use a Homebrew uninstall script or delete the folder &amp;lt;code&amp;gt;/opt/homebrew/bin&amp;lt;/code&amp;gt;. If you prefer to keep both ARM64 and x86 versions of brew installed, you may add a &amp;quot;brew-switcher&amp;quot; to your &amp;lt;code&amp;gt;.zshrc&amp;lt;/code&amp;gt; file to allow either version to be used depending on the active architecture. You may follow the steps at the end of this section after installing Brew to achieve this.&lt;br /&gt;
&lt;br /&gt;
Open Terminal (search in Spotlight on macOS).&lt;br /&gt;
&lt;br /&gt;
Install Rosetta:&lt;br /&gt;
&amp;lt;pre&amp;gt;softwareupdate --install-rosetta&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Enter an x86_64 shell to continue the following steps in a Rosetta environment. All subsequent commands should be run within this shell.&lt;br /&gt;
&amp;lt;pre&amp;gt;arch -x86_64 zsh&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Install the x86_64 version of Homebrew if you don't already have it.&lt;br /&gt;
&amp;lt;pre&amp;gt;/bin/bash -c &amp;quot;$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)&amp;quot;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Set the path:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
(echo; echo 'eval &amp;quot;$(/usr/local/bin/brew shellenv)&amp;quot;') &amp;gt;&amp;gt; /Users/[your macOS username]/.zprofile&lt;br /&gt;
eval &amp;quot;$(/usr/local/bin/brew shellenv)&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Make sure the brew command is on your path:&lt;br /&gt;
&amp;lt;pre&amp;gt;which brew&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If this command does not print &amp;lt;code&amp;gt;/usr/local/bin/brew&amp;lt;/code&amp;gt;, you should use this command:&lt;br /&gt;
&amp;lt;pre&amp;gt;export PATH=/usr/local/bin:${PATH}&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Fixbox|description=Optionally retain both ARM64 and x86 versions of Brew|ref=|collapsed=yes|fix=&lt;br /&gt;
(Optional) If you want to have both ARM64 and x86 versions of Brew installed, begin by editing your &amp;lt;code&amp;gt;.zshrc&amp;lt;/code&amp;gt; file:&lt;br /&gt;
&amp;lt;pre&amp;gt;nano ~/.zshrc&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Scroll down (by using the arrow keys or Control + V) to the bottom of the file, and paste the following script:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
if [ &amp;quot;$(arch)&amp;quot; = &amp;quot;arm64&amp;quot; ]; then&lt;br /&gt;
    eval &amp;quot;$(/opt/homebrew/bin/brew shellenv)&amp;quot;&lt;br /&gt;
else&lt;br /&gt;
    eval &amp;quot;$(/usr/local/bin/brew shellenv)&amp;quot;&lt;br /&gt;
fi&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You may now restart your terminal and use the following command to return to an x86_64 shell:&lt;br /&gt;
&amp;lt;pre&amp;gt;arch -x86_64 zsh&amp;lt;/pre&amp;gt;&lt;br /&gt;
Your shell will now select the right installation of Brew, depending on your architecture.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=== Build ===&lt;br /&gt;
Run this command to download Apple tap:&lt;br /&gt;
&amp;lt;pre&amp;gt;brew tap apple/apple http://github.com/apple/homebrew-apple&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Install the game-porting-toolkit formula. This formula downloads and compiles several large software projects. How long this takes will depend on the speed of your computer. It can take over 1 hour to complete depending on the speed of your Mac.&lt;br /&gt;
&amp;lt;pre&amp;gt;brew -v install apple/apple/game-porting-toolkit&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If during installation you see an error such as '''“Error: game-porting-toolkit: unknown or unsupported macOS version: :dunno”, your version of Homebrew doesn’t have macOS Sonoma support. Update to the latest version of Homebrew and try again.'''&lt;br /&gt;
&amp;lt;pre&amp;gt;brew update brew -v install apple/apple/game-porting-toolkit&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Preparing the toolkit ===&lt;br /&gt;
Make sure the Game Porting Toolkit dmg downloaded earlier is mounted at /Volumes/Game Porting Toolkit-1.0. Use this script to copy the Game Porting Toolkit library directory into Wine’s library directory.&lt;br /&gt;
&amp;lt;pre&amp;gt;ditto /Volumes/Game\ Porting\ Toolkit-1.0/lib/ `brew --prefix game-porting-toolkit`/lib/&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Put the 3 scripts from the Game Porting Toolkit DMG into here &amp;lt;code&amp;gt;/usr/local/bin&amp;lt;/code&amp;gt; using this command:&lt;br /&gt;
&amp;lt;pre&amp;gt;cp /Volumes/Game\ Porting\ Toolkit*/gameportingtoolkit* /usr/local/bin&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Wine prefix ===&lt;br /&gt;
A Wine prefix contains a virtual C: drive, similar to a Bottle in [[CrossOver]]. You will install the toolkit and your game into this virtual C: drive. Run the following command to create a new Wine prefix named my-game-prefix in your home directory. This will create a Wine prefix called &amp;lt;code&amp;gt;my-game-prefix&amp;lt;/code&amp;gt; but could be renamed to anything.&lt;br /&gt;
&amp;lt;pre&amp;gt;WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 winecfg&amp;lt;/pre&amp;gt;&lt;br /&gt;
*A “Wine configuration” window should appear on your screen.&lt;br /&gt;
*Change the version of Windows to Windows 10.&lt;br /&gt;
*Choose Apply and then OK to exit winecfg.&lt;br /&gt;
&lt;br /&gt;
If the “Wine configuration” window does not appear, and no new icon appears in the Dock, verify that you have correctly installed the x86_64 version of Homebrew as well as the game-porting-toolkit formula.&lt;br /&gt;
&lt;br /&gt;
Now you are ready to install a launcher or individual Windows games into this Wine prefix, see below.&lt;br /&gt;
&lt;br /&gt;
== Steam ==&lt;br /&gt;
Download the [https://cdn.cloudflare.steamstatic.com/client/installer/SteamSetup.exe Windows version of Steam] and place in your Downloads folder.&lt;br /&gt;
&lt;br /&gt;
'''Install Steam'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix ~/Downloads/SteamSetup.exe&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Run Steam'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix 'C:\Program Files (x86)/Steam/steam.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Log into Steam'''&lt;br /&gt;
&lt;br /&gt;
A common issue is that Steam will present with a blank black window.&lt;br /&gt;
&lt;br /&gt;
Alternate way of launching Steam (after installing):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
MTL_HUD_ENABLED=1 WINEESYNC=1 WINEPREFIX=~/my-game-prefix /usr/local/Cellar/game-porting-toolkit/1.0/bin/wine64 'C:\Program Files (x86)\Steam\steam.exe'&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If this continues then close the Terminal window and then re-open and try again, repeat until the login screen opens. Now you should be able to download and launch Windows games through Steam.&lt;br /&gt;
&lt;br /&gt;
== Battle.net ==&lt;br /&gt;
Download the [https://download.battle.net/en-gb/?platform=windows Windows version of Battle.net] and place in your Downloads folder.&lt;br /&gt;
&lt;br /&gt;
Make a new Wineprefix for Battle.net, you can choose to use &amp;lt;code&amp;gt;my-game-prefix&amp;lt;/code&amp;gt; or change this to anything else.&lt;br /&gt;
&amp;lt;pre&amp;gt;WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 winecfg&amp;lt;/pre&amp;gt;&lt;br /&gt;
*A “Wine configuration” window should appear on your screen.&lt;br /&gt;
*Change the version of Windows to &amp;lt;code&amp;gt;Windows 10&amp;lt;/code&amp;gt;.&lt;br /&gt;
*Choose Apply and then OK to exit winecfg.&lt;br /&gt;
&lt;br /&gt;
If you are running Diablo IV, then you need to run this script to update the Wineprefix to appear as a more recent version of Windows:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion' /v CurrentBuild /t REG_SZ /d 19042 /f&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion' /v CurrentBuildNumber /t REG_SZ /d 19042 /f&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wineserver -k&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Run Battle.net launcher'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix ~/Downloads/Battle.net-Setup.exe&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Be aware that there is an issue launching Battle.net once installed, the only current way to re-login is to 'install' the launcher again. &lt;br /&gt;
&lt;br /&gt;
Start individual game without the launcher using this command:&lt;br /&gt;
&amp;lt;pre&amp;gt;arch -x86_64 gameportingtoolkit-no-hud ~/my-game-prefix 'C:\Program Files (x86)\Diablo IV\Diablo IV Launcher.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Epic and GOG.com support with the Heroic Games Launcher ==&lt;br /&gt;
This is particularly useful because '''as it currently stands, the real Epic Games Launcher fails to install under the Game Porting Toolkit'''. Heroic supports Epic and GOG.com games.&lt;br /&gt;
&lt;br /&gt;
* Install the [https://github.com/Heroic-Games-Launcher/HeroicGamesLauncher/releases native macOS Heroic Games Launcher] or from Homebrew.&lt;br /&gt;
* Open Heroic, and log into your Epic Games and/or GOG.com account.&lt;br /&gt;
* Go to the &amp;quot;Wine Manager&amp;quot; and install a '''numbered''' version of Wine, such that it won't auto update- we are going to modify it.&lt;br /&gt;
** At the time of writing this, the newest numbered version of Wine-Crossover is &amp;lt;code&amp;gt;Wine-Crossover-Wine-22.1.0&amp;lt;/code&amp;gt;&lt;br /&gt;
* Press the folder icon that appears after installing it to open the directory containing Heroic's Wine installations.&lt;br /&gt;
* Right-click on the version of Wine you just installed and press &amp;quot;Show Package Contents&amp;quot;.&lt;br /&gt;
* Open this directory in the Terminal.&lt;br /&gt;
** If you have &amp;quot;OpenInTerminal&amp;quot; this is one button, otherwise press &amp;quot;Show Path Bar&amp;quot; and navigate where it says with &amp;quot;cd&amp;quot;.&lt;br /&gt;
** It should be something like &amp;lt;code&amp;gt;cd ~/Library/Application\ Support/heroic/tools/wine/Wine-crossover-wine-22.1.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
* &amp;lt;pre&amp;gt;cd Contents/MacOS&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Remove the existing Wine: &amp;lt;pre&amp;gt;rm wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Create a symlink to Game Porting Toolkit's Wine: &lt;br /&gt;
** If using Game Porting Toolkit Wineprefix: &amp;lt;pre&amp;gt;ln -s `/usr/local/bin/brew --prefix game-porting-toolkit`/bin/wine64 wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
** If using Whisky: &amp;lt;pre&amp;gt;ln -s /Applications/Whisky.app/Contents/Resources/Libraries/Wine/bin/wine64 wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
* &amp;lt;pre&amp;gt;cd ../Resources&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Remove the existing Wine: &amp;lt;pre&amp;gt;rm -rfv wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Create a symlink to Game Porting Toolkit's Wine&lt;br /&gt;
** If using Game Porting Toolkit Wineprefix: &amp;lt;pre&amp;gt;ln -s `/usr/local/bin/brew --prefix game-porting-toolkit` wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
** If using Whisky: &amp;lt;pre&amp;gt;ln -s /Applications/Whisky.app/Contents/Resources/Libraries/Wine wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
* We are now done with Terminal. Install any games you want to try playing.&lt;br /&gt;
* Select the game you want to play, and press the settings button in the top-right.&lt;br /&gt;
* Make sure the version of Wine you just downloaded and modified is selected.&lt;br /&gt;
* Make sure your Game Porting Toolkit Wine Prefix is selected. If you followed Apple's guide this is &amp;lt;code&amp;gt;/Users/you/my-game-prefix&amp;lt;/code&amp;gt;.&lt;br /&gt;
* If you Open the &amp;quot;Other&amp;quot; section you can also add any environment variables you want like &amp;lt;code&amp;gt;WINEESYNC=1&amp;quot;&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;&amp;quot;MTL_HUD_ENABLED=1&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
* Close the settings and try running the game.&lt;br /&gt;
&lt;br /&gt;
== Commands ==&lt;br /&gt;
Installing individual exe games: open your Wine prefix’s virtual C: drive in Finder (open ~/my-game-prefix/drive_c) and copy your game into an appropriate subdirectory.&lt;br /&gt;
&lt;br /&gt;
'''A. Standard launching'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix 'C:\Program Files (x86)\Steam\steam.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This launches the given Windows game binary with a visible extended Metal Performance HUD and filters logging to output from the Game Porting Toolkit.&lt;br /&gt;
&lt;br /&gt;
'''B. Launching without a HUD'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit-no-hud ~/my-game-prefix 'C:\Program Files (x86)\Steam\steam.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''C. Launching with Wine ESYNC disabled'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit-no-esync ~/my-game-prefix 'C:\Program Files (x86)\Steam\steam.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To enter Winecfg:&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix winecfg&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Shortcut ==&lt;br /&gt;
{{Image|Game Porting Toolkit Steam icon.png|Made by user Omsier.|150px}}&lt;br /&gt;
You can make a shortcut for Steam for example by using macOS built-in Automator app.&lt;br /&gt;
*Open Automator.&lt;br /&gt;
*Select New Application.&lt;br /&gt;
*In the 2nd column select Run Shell Script.&lt;br /&gt;
*Copy and paste this code into the box:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/zsh&lt;br /&gt;
&lt;br /&gt;
export PATH=&amp;quot;/usr/local/bin:${PATH}&amp;quot;&lt;br /&gt;
&lt;br /&gt;
arch -x86_64 gameportingtoolkit ~/my-game-prefix 'C:\Program Files (x86)\Steam\steam.exe'&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the shortcut somewhere e.g. Applications.&lt;br /&gt;
*Above shortcut can be customised to any Wineprefix or game.&lt;br /&gt;
*Add an icon by selecting the shortcut, pressing {{key|cmd|I}} to Get Info, then dragging and dropping a PNG file onto the top left of the window.&lt;br /&gt;
&lt;br /&gt;
== Logging ==&lt;br /&gt;
The provided bin/gameportingtoolkit* scripts can be copied onto your path to facilitate different forms of logging and launching. You can run these scripts from any shell; you don’t need to switch to the Rosetta environment first.&lt;br /&gt;
&lt;br /&gt;
Logging output will appear in the Terminal window in which you launch your game as well as the system log, which can be viewed with the Console app found in Applications ▸ Utilities. Log messages from the Game Porting Toolkit are prefixed with D3DM. By default the gameportingtoolkit* scripts will filter to just the D3DM-prefixed messages.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
=== Steam login black screen ===&lt;br /&gt;
{{Image|GPTK Steam black screen.png|Steam login black screen issue.}}&lt;br /&gt;
&lt;br /&gt;
{{Fixbox|description=Alternate Steam launch command|ref=|fix=&lt;br /&gt;
Close the Terminal window and then reopen and retry the command, repeat several times.&lt;br /&gt;
&lt;br /&gt;
Alternate way of launching Steam (after installing):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
MTL_HUD_ENABLED=1 WINEESYNC=1 WINEPREFIX=~/my-game-prefix /usr/local/Cellar/game-porting-toolkit/1.0/bin/wine64 'C:\Program Files (x86)/Steam/steam.exe'&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If still not working then try using [[CrossOver]] and create a Steam bottle, then login, then redirect this WINEPREFIX to that bottle:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=&amp;quot;/Users/[username]/Library/Application Support/CrossOver/Bottles/Steam/&amp;quot; &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
{{Fixbox|description=Use macOS Steam login|ref=&amp;lt;ref&amp;gt;https://github.com/IsaacMarovitz/Whisky/issues/41#issuecomment-1585640483&amp;lt;/ref&amp;gt;|fix=&lt;br /&gt;
#Login to Steam macOS.&lt;br /&gt;
#From &amp;lt;code&amp;gt;/Users/?????/Library/Application Support/Steam&amp;lt;/code&amp;gt;, copy three files/folders: config, registry.vdf, userdata.&lt;br /&gt;
#Paste into &amp;lt;code&amp;gt;~/my-game-prefix/drive_c/Program Files (x86)/Steam/&amp;lt;/code&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=== Steam crashes straight after opening ===&lt;br /&gt;
{{Fixbox|description=Disconnect external monitors|ref=&amp;lt;ref&amp;gt;Reference&amp;lt;/ref&amp;gt;|fix=&lt;br /&gt;
Disconnect any external monitors.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=== Battle.net launcher won't re-launch ===&lt;br /&gt;
Re-install the launcher to reopen, no other fix at the moment.&lt;br /&gt;
&lt;br /&gt;
===Windows version too old===&lt;br /&gt;
{{Fixbox|description=Name|ref=&amp;lt;ref&amp;gt;Reference&amp;lt;/ref&amp;gt;|fix=&lt;br /&gt;
'''My game won’t run because it thinks the version of Windows is too old. Some games detect specific minimum versions of Windows and need to be updated.''' Use this script to update your wineprefix with build 19042 which should work for most games e.g. Spider-Man Remastered.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion' /v CurrentBuild /t REG_SZ /d 19042 /f&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion' /v CurrentBuildNumber /t REG_SZ /d 19042 /f&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wineserver -k&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=== steamwebhelper.exe crashes ===&lt;br /&gt;
This is caused by Steam being run through macOS Ventura or below, most users should upgrade to macOS Sonoma. You can use the CrossOver workaround to login to Steam but you'll experience constant crashing.&lt;br /&gt;
&lt;br /&gt;
=== AVX ===&lt;br /&gt;
AVX and AVX2 games are not supported by Apple's arm64 chipset, e.g. Red Dead Redemption 2.&lt;br /&gt;
&lt;br /&gt;
=== Anti-cheat and DRM ===&lt;br /&gt;
Likely there will be no fixes for any games that use anti-cheat, e.g. Easy Anti Cheat. Some games have workarounds e.g. Elden Ring. Other games that use say Denuvo may also be incompatible until that DRM is removed by the game's developer.&lt;br /&gt;
&lt;br /&gt;
=== My game won’t run because it requires Mono, .NET, or the MSVCRT runtime ===&lt;br /&gt;
The game porting toolkit’s evaluation environment does not pre-install these runtime support packages. If your game makes use of one of these packages, consider searching for and downloading appropriate installers (.exe or .msi) and installing them to your evaluation environment. Additional runtime installers can be run on your environment by just launching the installer and following its installation instructions:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 &amp;lt;some-installer.exe&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
And .MSI packages can be installed by launching the Windows uninstaller application and choosing to install a downloaded .msi package:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 uninstaller&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Controller issues ===&lt;br /&gt;
{{Fixbox|description=Steam beta|ref=&amp;lt;ref&amp;gt;Reference&amp;lt;/ref&amp;gt;|fix=&lt;br /&gt;
Issues may be fixed by enrolling into the Steam beta.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=== My game looks pixelated and the display resolution is limited ===&lt;br /&gt;
{{Fixbox|description=Enable Retina mode|ref=|fix=&lt;br /&gt;
Enable Retina (high resolution) mode:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_CURRENT_USER\Software\Wine\Mac Driver' /v RetinaMode /t REG_SZ /d 'Y' /f&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Some games will not run with Retina mode enabled. To disable it:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_CURRENT_USER\Software\Wine\Mac Driver' /v RetinaMode /t REG_SZ /d 'N' /f&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
== Game compatibility list ==&lt;br /&gt;
Working games:&lt;br /&gt;
* Astroneer&lt;br /&gt;
* Assassins Creed 3 Remastered&lt;br /&gt;
* Batman: Arkham Knight - launches with steam&lt;br /&gt;
* Bloodstained: Ritual of the Night&lt;br /&gt;
* Brick Rigs&lt;br /&gt;
* Genshin Impact 3.7 (m2max with 4k 60fps stable) &lt;br /&gt;
* Control (DX12 mode, if downloaded from Heroic, needs to be ran by Terminal)&lt;br /&gt;
* Crysis Remastered&lt;br /&gt;
* Cuphead&lt;br /&gt;
* Cyberpunk 2077&lt;br /&gt;
* Deep Rock Galactic&lt;br /&gt;
* Deceive Inc. - works well if launched without EAC&lt;br /&gt;
* Derail Valley (awesome performance, no missing manuals - in-game objects for train operation - like on CrossOver)&lt;br /&gt;
* Diablo IV [https://www.reddit.com/r/macgaming/comments/14307be/comment/jn7dxzo/?utm_source=reddit&amp;amp;utm_medium=web2x&amp;amp;context=3 ]&lt;br /&gt;
* Dyson Sphere Program (some objects and main character weren't visible before)&lt;br /&gt;
* Elden Ring&lt;br /&gt;
* Final Fantasy VII Remake Intergrade (~50 FPS on High settings at 1080p with M1 Pro)&lt;br /&gt;
* Friends vs. Friends&lt;br /&gt;
* God of War (Works somewhat well on M1 Pro (16gb), wouldn't recommend lesser hardware.)&lt;br /&gt;
* Going Medieval&lt;br /&gt;
* Guilty Gear Strive&lt;br /&gt;
* Grand Theft Auto V&lt;br /&gt;
* Green Hell&lt;br /&gt;
* Halo 3 (MCC - No Online due to Easy Anti-Cheat Compatibility) [https://www.reddit.com/r/macgaming/comments/143zoos/halo_3_mcc_no_online_eac_m1_pro_game_porting/]&lt;br /&gt;
* Halo Reach (MCC) &lt;br /&gt;
* HI-Fi RUSH&lt;br /&gt;
* Hogwarts Legacy - launches fine first time but then won't relaunch - can be fixed by deleting ~/my-game-prefix/drive_c/ProgramData/Hogwarts Legacy - these are the files that are created at first launch that prevent relaunching&lt;br /&gt;
* Hatsune Miku: Project DIVA Mega Mix+ - works with Retina mode; [https://github.com/blueskythlikesclouds/DivaModLoader/releases DivaModLoader] and [https://github.com/Still34/azura-diva/releases DivaNoSpy] recommended; run Steam with WINEDEBUG=-all WINEESYNC=0 WINEDLLOVERRIDES=&amp;quot;dinput8.dll=n,b&amp;quot;; may randomly crash at the title screen: use [https://github.com/nastys/IntroPatch/releases IntroPatch] as a workaround&lt;br /&gt;
* Kena: Bridge of Spirits&lt;br /&gt;
* Metal Gear Solid V: The Phantom Pain&lt;br /&gt;
* Overwatch 2&lt;br /&gt;
* QUBE 2&lt;br /&gt;
* People Playground&lt;br /&gt;
* Risk of Rain 2 (does not require `-disable-gpu-skinning` like Crossover 22)&lt;br /&gt;
* Scarlet Nexus&lt;br /&gt;
* Sonic GT&lt;br /&gt;
* Sonic illusions&lt;br /&gt;
* Sonic Omens&lt;br /&gt;
* Sonic P-06&lt;br /&gt;
* Spider-Man (2018)&lt;br /&gt;
* Spider-Man Miles Morales - ''requires Windows ver fix''&lt;br /&gt;
* SpongeBob SquarePants: The Cosmic Shake&lt;br /&gt;
* StarCraft: Remastered - Game runs fine but opening Option menu the second time will cause game not recognizing any inputs.&lt;br /&gt;
* Tetris Effect: Connected - Game window likes to be uncooperative; really doesn't like retina mode, works otherwise&lt;br /&gt;
* V Rising&lt;br /&gt;
* Warframe - ''To get installer/launcher working add dwrite (disabled) to library overrides in winecfg''&lt;br /&gt;
&lt;br /&gt;
Not working well:&lt;br /&gt;
* Horizon Zero Dawn - slowdown issues&lt;br /&gt;
* Genshin Impact - Launches, but stuck when calling menu using esc&lt;br /&gt;
&lt;br /&gt;
Not working yet:&lt;br /&gt;
* Apex (it will stuck because of anti-cheat)&lt;br /&gt;
* Any games that use the EA Launcher&lt;br /&gt;
** Need for Speed Heat&lt;br /&gt;
** Need for Speed Unbound&lt;br /&gt;
** Tom Clancy's The Division 2&lt;br /&gt;
* Among Us&lt;br /&gt;
* Assassins Creed Odyssey&lt;br /&gt;
* Assassins Creed Valhalla&lt;br /&gt;
* BeamNG.Drive - Loads into Main Menu but crashes on last step of loading into a level with a &amp;quot;UI Process failed to respond in time&amp;quot; error&lt;br /&gt;
* Company of Heroes 3&lt;br /&gt;
* Doom (2016) - &amp;quot;FATAL ERROR: wglCreateContextAttribsARB failed&amp;quot; message on launch&lt;br /&gt;
* F1 20 - Crash on launch (DX11 version running through GPT is slower compared to Crossover 21)&lt;br /&gt;
* F1 21 - Crash on launch&lt;br /&gt;
* F1 22 - Crash on launch (  &amp;quot;Exception&amp;quot;: &amp;quot;C0000005 EXCEPTION_ACCESS_VIOLATION at 0000000141bd8687&amp;quot;)&lt;br /&gt;
* Halo Infinite - Crash on launch&lt;br /&gt;
* Hitman 3 - launcher works, crash at 0x0000014136dddd hitman3+0x136dddd: int $3&lt;br /&gt;
* Microsoft Flight Simulator 2020 (Steam) - Crash on launch&lt;br /&gt;
* Monster Hunter Rise - DX12 Game, it launches but window goes dark after compiling shaders.&lt;br /&gt;
* Monster Hunter World - Black Screen on Launch&lt;br /&gt;
* New World - Game loaded but couldn't connect to server due to Easy Anti Cheat&lt;br /&gt;
* Red Dead Redemption 2&lt;br /&gt;
* Rogue Company - anti-cheat conflict.&lt;br /&gt;
* s&amp;amp;box - crashes right on launch. (it should be DX11)&lt;br /&gt;
* Sea of Thieves - Launches, but the prompt to sign into an xbox live account appears blank and cannot&lt;br /&gt;
* Saints Row IV: Re-Elected - Launches, but crashes when trying to load into game&lt;br /&gt;
* Slime Rancher 2 - Launches, but can't into game from main menu&lt;br /&gt;
* SpongeBob Squarepants: Battle for Bikini Bottom Rehydrated - Crashes when loading &lt;br /&gt;
* Teardown - When trying to launch, gives a error, &amp;quot;The program teardown.exe has encountered a serious problem and needs to close. We are sorry for the inconvenience.&amp;quot;&lt;br /&gt;
* The Elder Scrolls V: Skyrim Special Edition - the launcher gives a &amp;quot;The program teardown.exe has encountered a serious problem&amp;quot; message, not allowing us to get into the game&lt;br /&gt;
* theHunter: Call of the Wild - Crash on launch (Unhandled exception: page fault on read access to 0x0000000000000000 in 64-bit code (0x00000140b227f8))&lt;br /&gt;
* All DX9 games (duh, this is dx 11 &amp;amp; 12 only)&lt;br /&gt;
** 30XX - &amp;quot;Failed to create D3D device&amp;quot; -&amp;gt; crash on launch; this is a rare 64-bit DX9 game&lt;br /&gt;
** Battleblock Theater - Black screen -&amp;gt; crash on launch&lt;br /&gt;
** Black Mesa - Starts to load to main menu at first but then crashes&lt;br /&gt;
** Castle Crashers - Black screen -&amp;gt; crash on launch&lt;br /&gt;
** Killing Floor 1 - Crash on launch&lt;br /&gt;
** Left 4 Dead 2 - Black screen -&amp;gt; crash on launch&lt;br /&gt;
** Lego Batman: The Videogame - Black screen -&amp;gt; crash on launch&lt;br /&gt;
** Lego Batman 2: DC Super Heros - Black screen -&amp;gt; crash on launch&lt;br /&gt;
** Lego Batman 3: Beyond Gotham - Black screen -&amp;gt; crash on launch (You can switch to DX11 but are currently unable to do so since the game will not launch)&lt;br /&gt;
** Mega Man Zero/ZX Legacy Collection - &amp;quot;Failed to create d3d9 device&amp;quot; -&amp;gt; crash on launch&lt;br /&gt;
** Sonic Mania - Crash on launch&lt;br /&gt;
** StarCraft II -&amp;gt; &amp;quot;Failed to initialize DirectX&amp;quot; error&lt;br /&gt;
** Star Wars: The Old Republic&lt;br /&gt;
** Battlefield 2 - DirectX installation failed, won't launch, see the [https://gist.github.com/chrismwendt/1d01a306cdc8618a06bdfb555743e25c error log]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{References}}&lt;/div&gt;</summary>
		<author><name>Andytizer</name></author>
	</entry>
	<entry>
		<id>https://www.applegamingwiki.com/w/index.php?title=Game_Porting_Toolkit&amp;diff=7697</id>
		<title>Game Porting Toolkit</title>
		<link rel="alternate" type="text/html" href="https://www.applegamingwiki.com/w/index.php?title=Game_Porting_Toolkit&amp;diff=7697"/>
		<updated>2023-06-10T16:52:16Z</updated>

		<summary type="html">&lt;p&gt;Andytizer: /* Troubleshooting */ Reformatting&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Image|Game Porting Toolkit.png|Released 6th June, 2023 at WWDC23.}}&lt;br /&gt;
&lt;br /&gt;
Game Porting Toolkit is Apple's new translation layer released on 6th June, 2023. Game Porting Toolkit ('''GPT''') combines Wine with Apple's own D3DMetal which supports DirectX 11 and 12&amp;lt;ref&amp;gt;{{Refurl|url=https://mastodon.gamedev.place/@gavkar/110501451404624870|title=Gokhan Avkarogullari: &amp;quot;@yiningkarlli @aras @romainguy…&amp;quot; - Gamedev Mastodon}}&amp;lt;/ref&amp;gt;. This is less user-friendly method of installing Windows games on Apple Silicon Macs compared to [[CrossOver]] or [[Parallels]], however it unlocks the ability to play many DirectX 12 games. A lot more games work using GPTK, however, games that use anti-cheat or aggressive DRMs generally don't work, along with games that require AVX/AVX 2, e.g. The Last of Us Part I.&lt;br /&gt;
&lt;br /&gt;
== Toolkit install instructions ==&lt;br /&gt;
=== Requirements ===&lt;br /&gt;
*macOS Sonoma should be used, currently it is in beta. You can download the pkg installer from [https://mrmacintosh.com/macos-sonoma-full-installer-database-download-directly-from-apple/ Mr Macintosh blog].&lt;br /&gt;
*macOS Ventura causes large numbers of issues with steamwebhelper.exe crashing so it isn't recommended, use the macOS Sonoma beta.&lt;br /&gt;
*Visit [https://developer.apple.com/downloads Apple Developer Downloads site], these files are now free to download use for any logged in Apple account.&lt;br /&gt;
**Search for Command Line Tools for Xcode 15 beta and download the dmg file, then install it. *If you have an old version Xcode installed, remove it.&lt;br /&gt;
**Search for Game Porting Toolkit and download it. Open the dmg file and then run the pkg.&lt;br /&gt;
&lt;br /&gt;
=== Homebrew ===&lt;br /&gt;
Note: if you have ever installed Homebrew before, then it is advised to remove ARM64 Homebrew as this can interfere with this build process. Either use a Homebrew uninstall script or delete the folder &amp;lt;code&amp;gt;/opt/homebrew/bin&amp;lt;/code&amp;gt;. If you prefer to keep both ARM64 and x86 versions of brew installed, you may add a &amp;quot;brew-switcher&amp;quot; to your &amp;lt;code&amp;gt;.zshrc&amp;lt;/code&amp;gt; file to allow either version to be used depending on the active architecture. You may follow the steps at the end of this section after installing Brew to achieve this.&lt;br /&gt;
&lt;br /&gt;
Open Terminal (search in Spotlight on macOS).&lt;br /&gt;
&lt;br /&gt;
Install Rosetta:&lt;br /&gt;
&amp;lt;pre&amp;gt;softwareupdate --install-rosetta&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Enter an x86_64 shell to continue the following steps in a Rosetta environment. All subsequent commands should be run within this shell.&lt;br /&gt;
&amp;lt;pre&amp;gt;arch -x86_64 zsh&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Install the x86_64 version of Homebrew if you don't already have it.&lt;br /&gt;
&amp;lt;pre&amp;gt;/bin/bash -c &amp;quot;$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)&amp;quot;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Set the path:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
(echo; echo 'eval &amp;quot;$(/usr/local/bin/brew shellenv)&amp;quot;') &amp;gt;&amp;gt; /Users/[your macOS username]/.zprofile&lt;br /&gt;
eval &amp;quot;$(/usr/local/bin/brew shellenv)&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Make sure the brew command is on your path:&lt;br /&gt;
&amp;lt;pre&amp;gt;which brew&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If this command does not print &amp;lt;code&amp;gt;/usr/local/bin/brew&amp;lt;/code&amp;gt;, you should use this command:&lt;br /&gt;
&amp;lt;pre&amp;gt;export PATH=/usr/local/bin:${PATH}&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Fixbox|description=Optionally retain both ARM64 and x86 versions of Brew|ref=|collapsed=yes|fix=&lt;br /&gt;
(Optional) If you want to have both ARM64 and x86 versions of Brew installed, begin by editing your &amp;lt;code&amp;gt;.zshrc&amp;lt;/code&amp;gt; file:&lt;br /&gt;
&amp;lt;pre&amp;gt;nano ~/.zshrc&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Scroll down (by using the arrow keys or Control + V) to the bottom of the file, and paste the following script:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
if [ &amp;quot;$(arch)&amp;quot; = &amp;quot;arm64&amp;quot; ]; then&lt;br /&gt;
    eval &amp;quot;$(/opt/homebrew/bin/brew shellenv)&amp;quot;&lt;br /&gt;
else&lt;br /&gt;
    eval &amp;quot;$(/usr/local/bin/brew shellenv)&amp;quot;&lt;br /&gt;
fi&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You may now restart your terminal and use the following command to return to an x86_64 shell:&lt;br /&gt;
&amp;lt;pre&amp;gt;arch -x86_64 zsh&amp;lt;/pre&amp;gt;&lt;br /&gt;
Your shell will now select the right installation of Brew, depending on your architecture.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=== Build ===&lt;br /&gt;
Run this command to download Apple tap:&lt;br /&gt;
&amp;lt;pre&amp;gt;brew tap apple/apple http://github.com/apple/homebrew-apple&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Install the game-porting-toolkit formula. This formula downloads and compiles several large software projects. How long this takes will depend on the speed of your computer. It can take over 1 hour to complete depending on the speed of your Mac.&lt;br /&gt;
&amp;lt;pre&amp;gt;brew -v install apple/apple/game-porting-toolkit&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If during installation you see an error such as '''“Error: game-porting-toolkit: unknown or unsupported macOS version: :dunno”, your version of Homebrew doesn’t have macOS Sonoma support. Update to the latest version of Homebrew and try again.'''&lt;br /&gt;
&amp;lt;pre&amp;gt;brew update brew -v install apple/apple/game-porting-toolkit&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Preparing the toolkit ===&lt;br /&gt;
Make sure the Game Porting Toolkit dmg downloaded earlier is mounted at /Volumes/Game Porting Toolkit-1.0. Use this script to copy the Game Porting Toolkit library directory into Wine’s library directory.&lt;br /&gt;
&amp;lt;pre&amp;gt;ditto /Volumes/Game\ Porting\ Toolkit-1.0/lib/ `brew --prefix game-porting-toolkit`/lib/&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Put the 3 scripts from the Game Porting Toolkit DMG into here &amp;lt;code&amp;gt;/usr/local/bin&amp;lt;/code&amp;gt; using this command:&lt;br /&gt;
&amp;lt;pre&amp;gt;cp /Volumes/Game\ Porting\ Toolkit*/gameportingtoolkit* /usr/local/bin&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Wine prefix ===&lt;br /&gt;
A Wine prefix contains a virtual C: drive, similar to a Bottle in [[CrossOver]]. You will install the toolkit and your game into this virtual C: drive. Run the following command to create a new Wine prefix named my-game-prefix in your home directory. This will create a Wine prefix called &amp;lt;code&amp;gt;my-game-prefix&amp;lt;/code&amp;gt; but could be renamed to anything.&lt;br /&gt;
&amp;lt;pre&amp;gt;WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 winecfg&amp;lt;/pre&amp;gt;&lt;br /&gt;
*A “Wine configuration” window should appear on your screen.&lt;br /&gt;
*Change the version of Windows to Windows 10.&lt;br /&gt;
*Choose Apply and then OK to exit winecfg.&lt;br /&gt;
&lt;br /&gt;
If the “Wine configuration” window does not appear, and no new icon appears in the Dock, verify that you have correctly installed the x86_64 version of Homebrew as well as the game-porting-toolkit formula.&lt;br /&gt;
&lt;br /&gt;
Now you are ready to install a launcher or individual Windows games into this Wine prefix, see below.&lt;br /&gt;
&lt;br /&gt;
== Steam ==&lt;br /&gt;
Download the [https://cdn.cloudflare.steamstatic.com/client/installer/SteamSetup.exe Windows version of Steam] and place in your Downloads folder.&lt;br /&gt;
&lt;br /&gt;
'''Install Steam'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix ~/Downloads/SteamSetup.exe&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Run Steam'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix 'C:\Program Files (x86)/Steam/steam.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Log into Steam'''&lt;br /&gt;
&lt;br /&gt;
A common issue is that Steam will present with a blank black window.&lt;br /&gt;
&lt;br /&gt;
Alternate way of launching Steam (after installing):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
MTL_HUD_ENABLED=1 WINEESYNC=1 WINEPREFIX=~/my-game-prefix /usr/local/Cellar/game-porting-toolkit/1.0/bin/wine64 'C:\Program Files (x86)\Steam\steam.exe'&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If this continues then close the Terminal window and then re-open and try again, repeat until the login screen opens. Now you should be able to download and launch Windows games through Steam.&lt;br /&gt;
&lt;br /&gt;
== Battle.net ==&lt;br /&gt;
Download the [https://download.battle.net/en-gb/?platform=windows Windows version of Battle.net] and place in your Downloads folder.&lt;br /&gt;
&lt;br /&gt;
Make a new Wineprefix for Battle.net, you can choose to use &amp;lt;code&amp;gt;my-game-prefix&amp;lt;/code&amp;gt; or change this to anything else.&lt;br /&gt;
&amp;lt;pre&amp;gt;WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 winecfg&amp;lt;/pre&amp;gt;&lt;br /&gt;
*A “Wine configuration” window should appear on your screen.&lt;br /&gt;
*Change the version of Windows to &amp;lt;code&amp;gt;Windows 10&amp;lt;/code&amp;gt;.&lt;br /&gt;
*Choose Apply and then OK to exit winecfg.&lt;br /&gt;
&lt;br /&gt;
If you are running Diablo IV, then you need to run this script to update the Wineprefix to appear as a more recent version of Windows:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion' /v CurrentBuild /t REG_SZ /d 19042 /f&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion' /v CurrentBuildNumber /t REG_SZ /d 19042 /f&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wineserver -k&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Run Battle.net launcher'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix ~/Downloads/Battle.net-Setup.exe&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Be aware that there is an issue launching Battle.net once installed, the only current way to re-login is to 'install' the launcher again. &lt;br /&gt;
&lt;br /&gt;
Start individual game without the launcher using this command:&lt;br /&gt;
&amp;lt;pre&amp;gt;arch -x86_64 gameportingtoolkit-no-hud ~/my-game-prefix 'C:\Program Files (x86)\Diablo IV\Diablo IV Launcher.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Epic and GOG.com support with the Heroic Games Launcher ==&lt;br /&gt;
This is particularly useful because '''as it currently stands, the real Epic Games Launcher fails to install under the Game Porting Toolkit'''. Heroic supports Epic and GOG.com games.&lt;br /&gt;
&lt;br /&gt;
* Install the [https://github.com/Heroic-Games-Launcher/HeroicGamesLauncher/releases native macOS Heroic Games Launcher] or from Homebrew.&lt;br /&gt;
* Open Heroic, and log into your Epic Games and/or GOG.com account.&lt;br /&gt;
* Go to the &amp;quot;Wine Manager&amp;quot; and install a '''numbered''' version of Wine, such that it won't auto update- we are going to modify it.&lt;br /&gt;
** At the time of writing this, the newest numbered version of Wine-Crossover is &amp;lt;code&amp;gt;Wine-Crossover-Wine-22.1.0&amp;lt;/code&amp;gt;&lt;br /&gt;
* Press the folder icon that appears after installing it to open the directory containing Heroic's Wine installations.&lt;br /&gt;
* Right-click on the version of Wine you just installed and press &amp;quot;Show Package Contents&amp;quot;.&lt;br /&gt;
* Open this directory in the Terminal.&lt;br /&gt;
** If you have &amp;quot;OpenInTerminal&amp;quot; this is one button, otherwise press &amp;quot;Show Path Bar&amp;quot; and navigate where it says with &amp;quot;cd&amp;quot;.&lt;br /&gt;
** It should be something like &amp;lt;code&amp;gt;cd ~/Library/Application\ Support/heroic/tools/wine/Wine-crossover-wine-22.1.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
* &amp;lt;pre&amp;gt;cd Contents/MacOS&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Remove the existing Wine: &amp;lt;pre&amp;gt;rm wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Create a symlink to Game Porting Toolkit's Wine: &lt;br /&gt;
** If using Game Porting Toolkit Wineprefix: &amp;lt;pre&amp;gt;ln -s `/usr/local/bin/brew --prefix game-porting-toolkit`/bin/wine64 wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
** If using Whisky: &amp;lt;pre&amp;gt;ln -s /Applications/Whisky.app/Contents/Resources/Libraries/Wine/bin/wine64 wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
* &amp;lt;pre&amp;gt;cd ../Resources&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Remove the existing Wine: &amp;lt;pre&amp;gt;rm -rfv wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Create a symlink to Game Porting Toolkit's Wine&lt;br /&gt;
** If using Game Porting Toolkit Wineprefix: &amp;lt;pre&amp;gt;ln -s `/usr/local/bin/brew --prefix game-porting-toolkit` wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
** If using Whisky: &amp;lt;pre&amp;gt;ln -s /Applications/Whisky.app/Contents/Resources/Libraries/Wine wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
* We are now done with Terminal. Install any games you want to try playing.&lt;br /&gt;
* Select the game you want to play, and press the settings button in the top-right.&lt;br /&gt;
* Make sure the version of Wine you just downloaded and modified is selected.&lt;br /&gt;
* Make sure your Game Porting Toolkit Wine Prefix is selected. If you followed Apple's guide this is &amp;lt;code&amp;gt;/Users/you/my-game-prefix&amp;lt;/code&amp;gt;.&lt;br /&gt;
* If you Open the &amp;quot;Other&amp;quot; section you can also add any environment variables you want like &amp;lt;code&amp;gt;WINEESYNC=1&amp;quot;&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;&amp;quot;MTL_HUD_ENABLED=1&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
* Close the settings and try running the game.&lt;br /&gt;
&lt;br /&gt;
== Commands ==&lt;br /&gt;
Installing individual exe games: open your Wine prefix’s virtual C: drive in Finder (open ~/my-game-prefix/drive_c) and copy your game into an appropriate subdirectory.&lt;br /&gt;
&lt;br /&gt;
'''A. Standard launching'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix 'C:\Program Files (x86)\Steam\steam.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This launches the given Windows game binary with a visible extended Metal Performance HUD and filters logging to output from the Game Porting Toolkit.&lt;br /&gt;
&lt;br /&gt;
'''B. Launching without a HUD'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit-no-hud ~/my-game-prefix 'C:\Program Files (x86)\Steam\steam.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''C. Launching with Wine ESYNC disabled'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit-no-esync ~/my-game-prefix 'C:\Program Files (x86)\Steam\steam.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To enter Winecfg:&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix winecfg&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Shortcut ==&lt;br /&gt;
{{Image|Game Porting Toolkit Steam icon.png|Made by user Omsier.|150px}}&lt;br /&gt;
You can make a shortcut for Steam for example by using macOS built-in Automator app.&lt;br /&gt;
*Open Automator.&lt;br /&gt;
*Select New Application.&lt;br /&gt;
*In the 2nd column select Run Shell Script.&lt;br /&gt;
*Copy and paste this code into the box:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/zsh&lt;br /&gt;
&lt;br /&gt;
export PATH=&amp;quot;/usr/local/bin:${PATH}&amp;quot;&lt;br /&gt;
&lt;br /&gt;
arch -x86_64 gameportingtoolkit ~/my-game-prefix 'C:\Program Files (x86)\Steam\steam.exe'&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the shortcut somewhere e.g. Applications.&lt;br /&gt;
*Above shortcut can be customised to any Wineprefix or game.&lt;br /&gt;
*Add an icon by selecting the shortcut, pressing {{key|cmd|I}} to Get Info, then dragging and dropping a PNG file onto the top left of the window.&lt;br /&gt;
&lt;br /&gt;
== Logging ==&lt;br /&gt;
The provided bin/gameportingtoolkit* scripts can be copied onto your path to facilitate different forms of logging and launching. You can run these scripts from any shell; you don’t need to switch to the Rosetta environment first.&lt;br /&gt;
&lt;br /&gt;
Logging output will appear in the Terminal window in which you launch your game as well as the system log, which can be viewed with the Console app found in Applications ▸ Utilities. Log messages from the Game Porting Toolkit are prefixed with D3DM. By default the gameportingtoolkit* scripts will filter to just the D3DM-prefixed messages.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
=== Steam login black screen ===&lt;br /&gt;
{{Image|GPTK Steam black screen.png|Steam login black screen issue.}}&lt;br /&gt;
&lt;br /&gt;
{{Fixbox|description=Alternate Steam launch command|ref=|fix=&lt;br /&gt;
Close the Terminal window and then reopen and retry the command, repeat several times.&lt;br /&gt;
&lt;br /&gt;
Alternate way of launching Steam (after installing):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
MTL_HUD_ENABLED=1 WINEESYNC=1 WINEPREFIX=~/my-game-prefix /usr/local/Cellar/game-porting-toolkit/1.0/bin/wine64 'C:\Program Files (x86)/Steam/steam.exe'&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If still not working then try using [[CrossOver]] and create a Steam bottle, then login, then redirect this WINEPREFIX to that bottle:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=&amp;quot;/Users/[username]/Library/Application Support/CrossOver/Bottles/Steam/&amp;quot; &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
{{Fixbox|description=Use macOS Steam login|ref=&amp;lt;ref&amp;gt;https://github.com/IsaacMarovitz/Whisky/issues/41#issuecomment-1585640483&amp;lt;/ref&amp;gt;|fix=&lt;br /&gt;
#Login to Steam macOS.&lt;br /&gt;
#From &amp;lt;code&amp;gt;/Users/?????/Library/Application Support/Steam&amp;lt;/code&amp;gt;, copy three files/folders: config, registry.vdf, userdata.&lt;br /&gt;
#Paste into &amp;lt;code&amp;gt;~/my-game-prefix/drive_c/Program Files (x86)/Steam/&amp;lt;/code&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=== Steam crashes straight after opening ===&lt;br /&gt;
{{Fixbox|description=Disconnect external monitors|ref=&amp;lt;ref&amp;gt;Reference&amp;lt;/ref&amp;gt;|fix=&lt;br /&gt;
Disconnect any external monitors.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=== Battle.net launcher won't re-launch ===&lt;br /&gt;
Re-install the launcher to reopen, no other fix at the moment.&lt;br /&gt;
&lt;br /&gt;
===Windows version too old===&lt;br /&gt;
{{Fixbox|description=Name|ref=&amp;lt;ref&amp;gt;Reference&amp;lt;/ref&amp;gt;|fix=&lt;br /&gt;
'''My game won’t run because it thinks the version of Windows is too old. Some games detect specific minimum versions of Windows and need to be updated.''' Use this script to update your wineprefix with build 19042 which should work for most games e.g. Spider-Man Remastered.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion' /v CurrentBuild /t REG_SZ /d 19042 /f&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion' /v CurrentBuildNumber /t REG_SZ /d 19042 /f&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wineserver -k&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=== steamwebhelper.exe crashes ===&lt;br /&gt;
This is caused by Steam being run through macOS Ventura or below, most users should upgrade to macOS Sonoma. You can use the CrossOver workaround to login to Steam but you'll experience constant crashing.&lt;br /&gt;
&lt;br /&gt;
=== AVX ===&lt;br /&gt;
AVX and AVX2 games are not supported by Apple's arm64 chipset, e.g. Red Dead Redemption 2.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Anti-cheat and DRM ===&lt;br /&gt;
Likely there will be no fixes for any games that use anti-cheat, e.g. Easy Anti Cheat. Some games have workarounds e.g. Elden Ring. Other games that use say Denuvo may also be incompatible until that DRM is removed by the game's developer.&lt;br /&gt;
&lt;br /&gt;
=== My game won’t run because it requires Mono, .NET, or the MSVCRT runtime ===&lt;br /&gt;
The game porting toolkit’s evaluation environment does not pre-install these runtime support packages. If your game makes use of one of these packages, consider searching for and downloading appropriate installers (.exe or .msi) and installing them to your evaluation environment. Additional runtime installers can be run on your environment by just launching the installer and following its installation instructions:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 &amp;lt;some-installer.exe&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
And .MSI packages can be installed by launching the Windows uninstaller application and choosing to install a downloaded .msi package:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 uninstaller&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Controller issues ===&lt;br /&gt;
{{Fixbox|description=Steam beta|ref=&amp;lt;ref&amp;gt;Reference&amp;lt;/ref&amp;gt;|fix=&lt;br /&gt;
Issues may be fixed by enrolling into the Steam beta.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=== My game looks pixelated and the display resolution is limited ===&lt;br /&gt;
{{Fixbox|description=Enable Retina mode|ref=|fix=&lt;br /&gt;
Enable Retina (high resolution) mode:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_CURRENT_USER\Software\Wine\Mac Driver' /v RetinaMode /t REG_SZ /d 'Y' /f&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Some games will not run with Retina mode enabled. To disable it:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_CURRENT_USER\Software\Wine\Mac Driver' /v RetinaMode /t REG_SZ /d 'N' /f&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
== Game compatibility list ==&lt;br /&gt;
Working games:&lt;br /&gt;
* Astroneer&lt;br /&gt;
* Assassins Creed 3 Remastered&lt;br /&gt;
* Batman: Arkham Knight - launches with steam&lt;br /&gt;
* Bloodstained: Ritual of the Night&lt;br /&gt;
* Brick Rigs&lt;br /&gt;
* Genshin Impact 3.7 (m2max with 4k 60fps stable) &lt;br /&gt;
* Control (DX12 mode, if downloaded from Heroic, needs to be ran by Terminal)&lt;br /&gt;
* Crysis Remastered&lt;br /&gt;
* Cuphead&lt;br /&gt;
* Cyberpunk 2077&lt;br /&gt;
* Deep Rock Galactic&lt;br /&gt;
* Deceive Inc. - works well if launched without EAC&lt;br /&gt;
* Derail Valley (awesome performance, no missing manuals - in-game objects for train operation - like on CrossOver)&lt;br /&gt;
* Diablo IV [https://www.reddit.com/r/macgaming/comments/14307be/comment/jn7dxzo/?utm_source=reddit&amp;amp;utm_medium=web2x&amp;amp;context=3 ]&lt;br /&gt;
* Dyson Sphere Program (some objects and main character weren't visible before)&lt;br /&gt;
* Elden Ring&lt;br /&gt;
* Final Fantasy VII Remake Intergrade (~50 FPS on High settings at 1080p with M1 Pro)&lt;br /&gt;
* Friends vs. Friends&lt;br /&gt;
* God of War (Works somewhat well on M1 Pro (16gb), wouldn't recommend lesser hardware.)&lt;br /&gt;
* Going Medieval&lt;br /&gt;
* Guilty Gear Strive&lt;br /&gt;
* Grand Theft Auto V&lt;br /&gt;
* Green Hell&lt;br /&gt;
* Halo 3 (MCC - No Online due to Easy Anti-Cheat Compatibility) [https://www.reddit.com/r/macgaming/comments/143zoos/halo_3_mcc_no_online_eac_m1_pro_game_porting/]&lt;br /&gt;
* Halo Reach (MCC) &lt;br /&gt;
* HI-Fi RUSH&lt;br /&gt;
* Hogwarts Legacy - launches fine first time but then won't relaunch - can be fixed by deleting ~/my-game-prefix/drive_c/ProgramData/Hogwarts Legacy - these are the files that are created at first launch that prevent relaunching&lt;br /&gt;
* Hatsune Miku: Project DIVA Mega Mix+ - works with Retina mode; [https://github.com/blueskythlikesclouds/DivaModLoader/releases DivaModLoader] and [https://github.com/Still34/azura-diva/releases DivaNoSpy] recommended; run Steam with WINEDEBUG=-all WINEESYNC=0 WINEDLLOVERRIDES=&amp;quot;dinput8.dll=n,b&amp;quot;; may randomly crash at the title screen: use [https://github.com/nastys/IntroPatch/releases IntroPatch] as a workaround&lt;br /&gt;
* Kena: Bridge of Spirits&lt;br /&gt;
* Metal Gear Solid V: The Phantom Pain&lt;br /&gt;
* Overwatch 2&lt;br /&gt;
* QUBE 2&lt;br /&gt;
* People Playground&lt;br /&gt;
* Risk of Rain 2 (does not require `-disable-gpu-skinning` like Crossover 22)&lt;br /&gt;
* Scarlet Nexus&lt;br /&gt;
* Sonic GT&lt;br /&gt;
* Sonic illusions&lt;br /&gt;
* Sonic Omens&lt;br /&gt;
* Sonic P-06&lt;br /&gt;
* Spider-Man (2018)&lt;br /&gt;
* Spider-Man Miles Morales - ''requires Windows ver fix''&lt;br /&gt;
* SpongeBob SquarePants: The Cosmic Shake&lt;br /&gt;
* StarCraft: Remastered - Game runs fine but opening Option menu the second time will cause game not recognizing any inputs.&lt;br /&gt;
* Tetris Effect: Connected - Game window likes to be uncooperative; really doesn't like retina mode, works otherwise&lt;br /&gt;
* V Rising&lt;br /&gt;
* Warframe - ''To get installer/launcher working add dwrite (disabled) to library overrides in winecfg''&lt;br /&gt;
&lt;br /&gt;
Not working well:&lt;br /&gt;
* Horizon Zero Dawn - slowdown issues&lt;br /&gt;
* Genshin Impact - Launches, but stuck when calling menu using esc&lt;br /&gt;
&lt;br /&gt;
Not working yet:&lt;br /&gt;
* Apex (it will stuck because of anti-cheat)&lt;br /&gt;
* Any games that use the EA Launcher&lt;br /&gt;
** Need for Speed Heat&lt;br /&gt;
** Need for Speed Unbound&lt;br /&gt;
** Tom Clancy's The Division 2&lt;br /&gt;
* Among Us&lt;br /&gt;
* Assassins Creed Odyssey&lt;br /&gt;
* Assassins Creed Valhalla&lt;br /&gt;
* BeamNG.Drive - Loads into Main Menu but crashes on last step of loading into a level with a &amp;quot;UI Process failed to respond in time&amp;quot; error&lt;br /&gt;
* Company of Heroes 3&lt;br /&gt;
* Doom (2016) - &amp;quot;FATAL ERROR: wglCreateContextAttribsARB failed&amp;quot; message on launch&lt;br /&gt;
* F1 20 - Crash on launch (DX11 version running through GPT is slower compared to Crossover 21)&lt;br /&gt;
* F1 21 - Crash on launch&lt;br /&gt;
* F1 22 - Crash on launch (  &amp;quot;Exception&amp;quot;: &amp;quot;C0000005 EXCEPTION_ACCESS_VIOLATION at 0000000141bd8687&amp;quot;)&lt;br /&gt;
* Halo Infinite - Crash on launch&lt;br /&gt;
* Hitman 3 - launcher works, crash at 0x0000014136dddd hitman3+0x136dddd: int $3&lt;br /&gt;
* Microsoft Flight Simulator 2020 (Steam) - Crash on launch&lt;br /&gt;
* Monster Hunter Rise - DX12 Game, it launches but window goes dark after compiling shaders.&lt;br /&gt;
* Monster Hunter World - Black Screen on Launch&lt;br /&gt;
* New World - Game loaded but couldn't connect to server due to Easy Anti Cheat&lt;br /&gt;
* Red Dead Redemption 2&lt;br /&gt;
* Rogue Company - anti-cheat conflict.&lt;br /&gt;
* s&amp;amp;box - crashes right on launch. (it should be DX11)&lt;br /&gt;
* Sea of Thieves - Launches, but the prompt to sign into an xbox live account appears blank and cannot&lt;br /&gt;
* Saints Row IV: Re-Elected - Launches, but crashes when trying to load into game&lt;br /&gt;
* Slime Rancher 2 - Launches, but can't into game from main menu&lt;br /&gt;
* SpongeBob Squarepants: Battle for Bikini Bottom Rehydrated - Crashes when loading &lt;br /&gt;
* Teardown - When trying to launch, gives a error, &amp;quot;The program teardown.exe has encountered a serious problem and needs to close. We are sorry for the inconvenience.&amp;quot;&lt;br /&gt;
* The Elder Scrolls V: Skyrim Special Edition - the launcher gives a &amp;quot;The program teardown.exe has encountered a serious problem&amp;quot; message, not allowing us to get into the game&lt;br /&gt;
* theHunter: Call of the Wild - Crash on launch (Unhandled exception: page fault on read access to 0x0000000000000000 in 64-bit code (0x00000140b227f8))&lt;br /&gt;
* All DX9 games (duh, this is dx 11 &amp;amp; 12 only)&lt;br /&gt;
** 30XX - &amp;quot;Failed to create D3D device&amp;quot; -&amp;gt; crash on launch; this is a rare 64-bit DX9 game&lt;br /&gt;
** Battleblock Theater - Black screen -&amp;gt; crash on launch&lt;br /&gt;
** Black Mesa - Starts to load to main menu at first but then crashes&lt;br /&gt;
** Castle Crashers - Black screen -&amp;gt; crash on launch&lt;br /&gt;
** Killing Floor 1 - Crash on launch&lt;br /&gt;
** Left 4 Dead 2 - Black screen -&amp;gt; crash on launch&lt;br /&gt;
** Lego Batman: The Videogame - Black screen -&amp;gt; crash on launch&lt;br /&gt;
** Lego Batman 2: DC Super Heros - Black screen -&amp;gt; crash on launch&lt;br /&gt;
** Lego Batman 3: Beyond Gotham - Black screen -&amp;gt; crash on launch (You can switch to DX11 but are currently unable to do so since the game will not launch)&lt;br /&gt;
** Mega Man Zero/ZX Legacy Collection - &amp;quot;Failed to create d3d9 device&amp;quot; -&amp;gt; crash on launch&lt;br /&gt;
** Sonic Mania - Crash on launch&lt;br /&gt;
** StarCraft II -&amp;gt; &amp;quot;Failed to initialize DirectX&amp;quot; error&lt;br /&gt;
** Star Wars: The Old Republic&lt;br /&gt;
** Battlefield 2 - DirectX installation failed, won't launch, see the [https://gist.github.com/chrismwendt/1d01a306cdc8618a06bdfb555743e25c error log]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{References}}&lt;/div&gt;</summary>
		<author><name>Andytizer</name></author>
	</entry>
	<entry>
		<id>https://www.applegamingwiki.com/w/index.php?title=Game_Porting_Toolkit&amp;diff=7694</id>
		<title>Game Porting Toolkit</title>
		<link rel="alternate" type="text/html" href="https://www.applegamingwiki.com/w/index.php?title=Game_Porting_Toolkit&amp;diff=7694"/>
		<updated>2023-06-10T16:47:09Z</updated>

		<summary type="html">&lt;p&gt;Andytizer: /* Troubleshooting */ New method to bypass Steam login issue&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Image|Game Porting Toolkit.png|Released 6th June, 2023 at WWDC23.}}&lt;br /&gt;
&lt;br /&gt;
Game Porting Toolkit is Apple's new translation layer released on 6th June, 2023. Game Porting Toolkit ('''GPT''') combines Wine with Apple's own D3DMetal which supports DirectX 11 and 12&amp;lt;ref&amp;gt;{{Refurl|url=https://mastodon.gamedev.place/@gavkar/110501451404624870|title=Gokhan Avkarogullari: &amp;quot;@yiningkarlli @aras @romainguy…&amp;quot; - Gamedev Mastodon}}&amp;lt;/ref&amp;gt;. This is less user-friendly method of installing Windows games on Apple Silicon Macs compared to [[CrossOver]] or [[Parallels]], however it unlocks the ability to play many DirectX 12 games. A lot more games work using GPTK, however, games that use anti-cheat or aggressive DRMs generally don't work, along with games that require AVX/AVX 2, e.g. The Last of Us Part I.&lt;br /&gt;
&lt;br /&gt;
== Toolkit install instructions ==&lt;br /&gt;
=== Requirements ===&lt;br /&gt;
*macOS Sonoma should be used, currently it is in beta. You can download the pkg installer from [https://mrmacintosh.com/macos-sonoma-full-installer-database-download-directly-from-apple/ Mr Macintosh blog].&lt;br /&gt;
*macOS Ventura causes large numbers of issues with steamwebhelper.exe crashing so it isn't recommended, use the macOS Sonoma beta.&lt;br /&gt;
*Visit [https://developer.apple.com/downloads Apple Developer Downloads site], these files are now free to download use for any logged in Apple account.&lt;br /&gt;
**Search for Command Line Tools for Xcode 15 beta and download the dmg file, then install it. *If you have an old version Xcode installed, remove it.&lt;br /&gt;
**Search for Game Porting Toolkit and download it. Open the dmg file and then run the pkg.&lt;br /&gt;
&lt;br /&gt;
=== Homebrew ===&lt;br /&gt;
Note: if you have ever installed Homebrew before, then it is advised to remove ARM64 Homebrew as this can interfere with this build process. Either use a Homebrew uninstall script or delete the folder &amp;lt;code&amp;gt;/opt/homebrew/bin&amp;lt;/code&amp;gt;. If you prefer to keep both ARM64 and x86 versions of brew installed, you may add a &amp;quot;brew-switcher&amp;quot; to your &amp;lt;code&amp;gt;.zshrc&amp;lt;/code&amp;gt; file to allow either version to be used depending on the active architecture. You may follow the steps at the end of this section after installing Brew to achieve this.&lt;br /&gt;
&lt;br /&gt;
Open Terminal (search in Spotlight on macOS).&lt;br /&gt;
&lt;br /&gt;
Install Rosetta:&lt;br /&gt;
&amp;lt;pre&amp;gt;softwareupdate --install-rosetta&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Enter an x86_64 shell to continue the following steps in a Rosetta environment. All subsequent commands should be run within this shell.&lt;br /&gt;
&amp;lt;pre&amp;gt;arch -x86_64 zsh&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Install the x86_64 version of Homebrew if you don't already have it.&lt;br /&gt;
&amp;lt;pre&amp;gt;/bin/bash -c &amp;quot;$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)&amp;quot;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Set the path:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
(echo; echo 'eval &amp;quot;$(/usr/local/bin/brew shellenv)&amp;quot;') &amp;gt;&amp;gt; /Users/[your macOS username]/.zprofile&lt;br /&gt;
eval &amp;quot;$(/usr/local/bin/brew shellenv)&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Make sure the brew command is on your path:&lt;br /&gt;
&amp;lt;pre&amp;gt;which brew&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If this command does not print &amp;lt;code&amp;gt;/usr/local/bin/brew&amp;lt;/code&amp;gt;, you should use this command:&lt;br /&gt;
&amp;lt;pre&amp;gt;export PATH=/usr/local/bin:${PATH}&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Fixbox|description=Optionally retain both ARM64 and x86 versions of Brew|ref=|collapsed=yes|fix=&lt;br /&gt;
(Optional) If you want to have both ARM64 and x86 versions of Brew installed, begin by editing your &amp;lt;code&amp;gt;.zshrc&amp;lt;/code&amp;gt; file:&lt;br /&gt;
&amp;lt;pre&amp;gt;nano ~/.zshrc&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Scroll down (by using the arrow keys or Control + V) to the bottom of the file, and paste the following script:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
if [ &amp;quot;$(arch)&amp;quot; = &amp;quot;arm64&amp;quot; ]; then&lt;br /&gt;
    eval &amp;quot;$(/opt/homebrew/bin/brew shellenv)&amp;quot;&lt;br /&gt;
else&lt;br /&gt;
    eval &amp;quot;$(/usr/local/bin/brew shellenv)&amp;quot;&lt;br /&gt;
fi&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You may now restart your terminal and use the following command to return to an x86_64 shell:&lt;br /&gt;
&amp;lt;pre&amp;gt;arch -x86_64 zsh&amp;lt;/pre&amp;gt;&lt;br /&gt;
Your shell will now select the right installation of Brew, depending on your architecture.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=== Build ===&lt;br /&gt;
Run this command to download Apple tap:&lt;br /&gt;
&amp;lt;pre&amp;gt;brew tap apple/apple http://github.com/apple/homebrew-apple&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Install the game-porting-toolkit formula. This formula downloads and compiles several large software projects. How long this takes will depend on the speed of your computer. It can take over 1 hour to complete depending on the speed of your Mac.&lt;br /&gt;
&amp;lt;pre&amp;gt;brew -v install apple/apple/game-porting-toolkit&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If during installation you see an error such as '''“Error: game-porting-toolkit: unknown or unsupported macOS version: :dunno”, your version of Homebrew doesn’t have macOS Sonoma support. Update to the latest version of Homebrew and try again.'''&lt;br /&gt;
&amp;lt;pre&amp;gt;brew update brew -v install apple/apple/game-porting-toolkit&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Preparing the toolkit ===&lt;br /&gt;
Make sure the Game Porting Toolkit dmg downloaded earlier is mounted at /Volumes/Game Porting Toolkit-1.0. Use this script to copy the Game Porting Toolkit library directory into Wine’s library directory.&lt;br /&gt;
&amp;lt;pre&amp;gt;ditto /Volumes/Game\ Porting\ Toolkit-1.0/lib/ `brew --prefix game-porting-toolkit`/lib/&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Put the 3 scripts from the Game Porting Toolkit DMG into here &amp;lt;code&amp;gt;/usr/local/bin&amp;lt;/code&amp;gt; using this command:&lt;br /&gt;
&amp;lt;pre&amp;gt;cp /Volumes/Game\ Porting\ Toolkit*/gameportingtoolkit* /usr/local/bin&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Wine prefix ===&lt;br /&gt;
A Wine prefix contains a virtual C: drive, similar to a Bottle in [[CrossOver]]. You will install the toolkit and your game into this virtual C: drive. Run the following command to create a new Wine prefix named my-game-prefix in your home directory. This will create a Wine prefix called &amp;lt;code&amp;gt;my-game-prefix&amp;lt;/code&amp;gt; but could be renamed to anything.&lt;br /&gt;
&amp;lt;pre&amp;gt;WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 winecfg&amp;lt;/pre&amp;gt;&lt;br /&gt;
*A “Wine configuration” window should appear on your screen.&lt;br /&gt;
*Change the version of Windows to Windows 10.&lt;br /&gt;
*Choose Apply and then OK to exit winecfg.&lt;br /&gt;
&lt;br /&gt;
If the “Wine configuration” window does not appear, and no new icon appears in the Dock, verify that you have correctly installed the x86_64 version of Homebrew as well as the game-porting-toolkit formula.&lt;br /&gt;
&lt;br /&gt;
Now you are ready to install a launcher or individual Windows games into this Wine prefix, see below.&lt;br /&gt;
&lt;br /&gt;
== Steam ==&lt;br /&gt;
Download the [https://cdn.cloudflare.steamstatic.com/client/installer/SteamSetup.exe Windows version of Steam] and place in your Downloads folder.&lt;br /&gt;
&lt;br /&gt;
'''Install Steam'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix ~/Downloads/SteamSetup.exe&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Run Steam'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix 'C:\Program Files (x86)/Steam/steam.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Log into Steam'''&lt;br /&gt;
&lt;br /&gt;
A common issue is that Steam will present with a blank black window.&lt;br /&gt;
&lt;br /&gt;
Alternate way of launching Steam (after installing):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
MTL_HUD_ENABLED=1 WINEESYNC=1 WINEPREFIX=~/my-game-prefix /usr/local/Cellar/game-porting-toolkit/1.0/bin/wine64 'C:\Program Files (x86)\Steam\steam.exe'&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If this continues then close the Terminal window and then re-open and try again, repeat until the login screen opens. Now you should be able to download and launch Windows games through Steam.&lt;br /&gt;
&lt;br /&gt;
== Battle.net ==&lt;br /&gt;
Download the [https://download.battle.net/en-gb/?platform=windows Windows version of Battle.net] and place in your Downloads folder.&lt;br /&gt;
&lt;br /&gt;
Make a new Wineprefix for Battle.net, you can choose to use &amp;lt;code&amp;gt;my-game-prefix&amp;lt;/code&amp;gt; or change this to anything else.&lt;br /&gt;
&amp;lt;pre&amp;gt;WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 winecfg&amp;lt;/pre&amp;gt;&lt;br /&gt;
*A “Wine configuration” window should appear on your screen.&lt;br /&gt;
*Change the version of Windows to &amp;lt;code&amp;gt;Windows 10&amp;lt;/code&amp;gt;.&lt;br /&gt;
*Choose Apply and then OK to exit winecfg.&lt;br /&gt;
&lt;br /&gt;
If you are running Diablo IV, then you need to run this script to update the Wineprefix to appear as a more recent version of Windows:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion' /v CurrentBuild /t REG_SZ /d 19042 /f&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion' /v CurrentBuildNumber /t REG_SZ /d 19042 /f&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wineserver -k&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Run Battle.net launcher'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix ~/Downloads/Battle.net-Setup.exe&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Be aware that there is an issue launching Battle.net once installed, the only current way to re-login is to 'install' the launcher again. &lt;br /&gt;
&lt;br /&gt;
Start individual game without the launcher using this command:&lt;br /&gt;
&amp;lt;pre&amp;gt;arch -x86_64 gameportingtoolkit-no-hud ~/my-game-prefix 'C:\Program Files (x86)\Diablo IV\Diablo IV Launcher.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Epic and GOG.com support with the Heroic Games Launcher ==&lt;br /&gt;
This is particularly useful because '''as it currently stands, the real Epic Games Launcher fails to install under the Game Porting Toolkit'''. Heroic supports Epic and GOG.com games.&lt;br /&gt;
&lt;br /&gt;
* Install the [https://github.com/Heroic-Games-Launcher/HeroicGamesLauncher/releases native macOS Heroic Games Launcher] or from Homebrew.&lt;br /&gt;
* Open Heroic, and log into your Epic Games and/or GOG.com account.&lt;br /&gt;
* Go to the &amp;quot;Wine Manager&amp;quot; and install a '''numbered''' version of Wine, such that it won't auto update- we are going to modify it.&lt;br /&gt;
** At the time of writing this, the newest numbered version of Wine-Crossover is &amp;lt;code&amp;gt;Wine-Crossover-Wine-22.1.0&amp;lt;/code&amp;gt;&lt;br /&gt;
* Press the folder icon that appears after installing it to open the directory containing Heroic's Wine installations.&lt;br /&gt;
* Right-click on the version of Wine you just installed and press &amp;quot;Show Package Contents&amp;quot;.&lt;br /&gt;
* Open this directory in the Terminal.&lt;br /&gt;
** If you have &amp;quot;OpenInTerminal&amp;quot; this is one button, otherwise press &amp;quot;Show Path Bar&amp;quot; and navigate where it says with &amp;quot;cd&amp;quot;.&lt;br /&gt;
** It should be something like &amp;lt;code&amp;gt;cd ~/Library/Application\ Support/heroic/tools/wine/Wine-crossover-wine-22.1.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
* &amp;lt;pre&amp;gt;cd Contents/MacOS&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Remove the existing Wine: &amp;lt;pre&amp;gt;rm wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Create a symlink to Game Porting Toolkit's Wine: &lt;br /&gt;
** If using Game Porting Toolkit Wineprefix: &amp;lt;pre&amp;gt;ln -s `/usr/local/bin/brew --prefix game-porting-toolkit`/bin/wine64 wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
** If using Whisky: &amp;lt;pre&amp;gt;ln -s /Applications/Whisky.app/Contents/Resources/Libraries/Wine/bin/wine64 wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
* &amp;lt;pre&amp;gt;cd ../Resources&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Remove the existing Wine: &amp;lt;pre&amp;gt;rm -rfv wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Create a symlink to Game Porting Toolkit's Wine&lt;br /&gt;
** If using Game Porting Toolkit Wineprefix: &amp;lt;pre&amp;gt;ln -s `/usr/local/bin/brew --prefix game-porting-toolkit` wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
** If using Whisky: &amp;lt;pre&amp;gt;ln -s /Applications/Whisky.app/Contents/Resources/Libraries/Wine wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
* We are now done with Terminal. Install any games you want to try playing.&lt;br /&gt;
* Select the game you want to play, and press the settings button in the top-right.&lt;br /&gt;
* Make sure the version of Wine you just downloaded and modified is selected.&lt;br /&gt;
* Make sure your Game Porting Toolkit Wine Prefix is selected. If you followed Apple's guide this is &amp;lt;code&amp;gt;/Users/you/my-game-prefix&amp;lt;/code&amp;gt;.&lt;br /&gt;
* If you Open the &amp;quot;Other&amp;quot; section you can also add any environment variables you want like &amp;lt;code&amp;gt;WINEESYNC=1&amp;quot;&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;&amp;quot;MTL_HUD_ENABLED=1&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
* Close the settings and try running the game.&lt;br /&gt;
&lt;br /&gt;
== Commands ==&lt;br /&gt;
Installing individual exe games: open your Wine prefix’s virtual C: drive in Finder (open ~/my-game-prefix/drive_c) and copy your game into an appropriate subdirectory.&lt;br /&gt;
&lt;br /&gt;
'''A. Standard launching'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix 'C:\Program Files (x86)\Steam\steam.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This launches the given Windows game binary with a visible extended Metal Performance HUD and filters logging to output from the Game Porting Toolkit.&lt;br /&gt;
&lt;br /&gt;
'''B. Launching without a HUD'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit-no-hud ~/my-game-prefix 'C:\Program Files (x86)\Steam\steam.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''C. Launching with Wine ESYNC disabled'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit-no-esync ~/my-game-prefix 'C:\Program Files (x86)\Steam\steam.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To enter Winecfg:&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix winecfg&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Shortcut ==&lt;br /&gt;
{{Image|Game Porting Toolkit Steam icon.png|Made by user Omsier.|150px}}&lt;br /&gt;
You can make a shortcut for Steam for example by using macOS built-in Automator app.&lt;br /&gt;
*Open Automator.&lt;br /&gt;
*Select New Application.&lt;br /&gt;
*In the 2nd column select Run Shell Script.&lt;br /&gt;
*Copy and paste this code into the box:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/zsh&lt;br /&gt;
&lt;br /&gt;
export PATH=&amp;quot;/usr/local/bin:${PATH}&amp;quot;&lt;br /&gt;
&lt;br /&gt;
arch -x86_64 gameportingtoolkit ~/my-game-prefix 'C:\Program Files (x86)\Steam\steam.exe'&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the shortcut somewhere e.g. Applications.&lt;br /&gt;
*Above shortcut can be customised to any Wineprefix or game.&lt;br /&gt;
*Add an icon by selecting the shortcut, pressing {{key|cmd|I}} to Get Info, then dragging and dropping a PNG file onto the top left of the window.&lt;br /&gt;
&lt;br /&gt;
== Logging ==&lt;br /&gt;
The provided bin/gameportingtoolkit* scripts can be copied onto your path to facilitate different forms of logging and launching. You can run these scripts from any shell; you don’t need to switch to the Rosetta environment first.&lt;br /&gt;
&lt;br /&gt;
Logging output will appear in the Terminal window in which you launch your game as well as the system log, which can be viewed with the Console app found in Applications ▸ Utilities. Log messages from the Game Porting Toolkit are prefixed with D3DM. By default the gameportingtoolkit* scripts will filter to just the D3DM-prefixed messages.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
{{Image|GPTK Steam black screen.png|Steam login black screen issue.}}&lt;br /&gt;
'''Steam login black screen'''&lt;br /&gt;
&lt;br /&gt;
Close the Terminal window and then reopen and retry the command, repeat several times.&lt;br /&gt;
&lt;br /&gt;
Alternate way of launching Steam (after installing):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
MTL_HUD_ENABLED=1 WINEESYNC=1 WINEPREFIX=~/my-game-prefix /usr/local/Cellar/game-porting-toolkit/1.0/bin/wine64 'C:\Program Files (x86)/Steam/steam.exe'&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If still not working then try using [[CrossOver]] and create a Steam bottle, then login, then redirect this WINEPREFIX to that bottle:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=&amp;quot;/Users/[username]/Library/Application Support/CrossOver/Bottles/Steam/&amp;quot; &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Fixbox|description=Use macOS Steam login|ref=&amp;lt;ref&amp;gt;https://github.com/IsaacMarovitz/Whisky/issues/41#issuecomment-1585640483&amp;lt;/ref&amp;gt;|fix=&lt;br /&gt;
#Login to Steam macOS.&lt;br /&gt;
#From &amp;lt;code&amp;gt;/Users/?????/Library/Application Support/Steam&amp;lt;/code&amp;gt;, copy three files/folders: config, registry.vdf, userdata.&lt;br /&gt;
#Paste into &amp;lt;code&amp;gt;~/my-game-prefix/drive_c/Program Files (x86)/Steam/&amp;lt;/code&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
'''Steam crashes straight after opening'''&lt;br /&gt;
&lt;br /&gt;
Disconnect any external monitors.&lt;br /&gt;
&lt;br /&gt;
'''Battle.net launcher won't re-launch'''&lt;br /&gt;
&lt;br /&gt;
Re-install the launcher to reopen, no other fix at the moment.&lt;br /&gt;
&lt;br /&gt;
'''My game won’t run because it thinks the version of Windows is too old. Some games detect specific minimum versions of Windows and need to be updated.''' Use this script to update your wineprefix with build 19042 which should work for most games e.g. Spider-Man Remastered.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion' /v CurrentBuild /t REG_SZ /d 19042 /f&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion' /v CurrentBuildNumber /t REG_SZ /d 19042 /f&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wineserver -k&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''steamwebhelper.exe crashes'''&lt;br /&gt;
&lt;br /&gt;
This is caused by Steam being run through macOS Ventura or below, most users should upgrade to macOS Sonoma. You can use the CrossOver workaround to login to Steam but you'll experience constant crashing.&lt;br /&gt;
&lt;br /&gt;
'''My game won't run and crashes with an invalid instruction'''&lt;br /&gt;
&lt;br /&gt;
AVX and AVX2 games are not supported by Apple's arm64 chipset.&lt;br /&gt;
&lt;br /&gt;
'''My game won't run because its anti-cheat or DRM software is incompatible with Wine translation.'''&lt;br /&gt;
&lt;br /&gt;
Likely there will be no fixes for any games that use anti-cheat, e.g. Easy Anti Cheat. Some games have workarounds e.g. Elden Ring. Other games that use say Denuvo may also be incompatible until that DRM is removed by the game's developer.&lt;br /&gt;
&lt;br /&gt;
'''My game won’t run because it requires Mono, .NET, or the MSVCRT runtime.'''&lt;br /&gt;
&lt;br /&gt;
The game porting toolkit’s evaluation environment does not pre-install these runtime support packages. If your game makes use of one of these packages, consider searching for and downloading appropriate installers (.exe or .msi) and installing them to your evaluation environment. Additional runtime installers can be run on your environment by just launching the installer and following its installation instructions:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 &amp;lt;some-installer.exe&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
And .MSI packages can be installed by launching the Windows uninstaller application and choosing to install a downloaded .msi package:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 uninstaller&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Controller issues'''&lt;br /&gt;
&lt;br /&gt;
Issues may be fixed by enrolling into the Steam beta.&lt;br /&gt;
&lt;br /&gt;
'''My game looks pixelated and the display resolution is limited'''&lt;br /&gt;
&lt;br /&gt;
Enable Retina (high resolution) mode:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_CURRENT_USER\Software\Wine\Mac Driver' /v RetinaMode /t REG_SZ /d 'Y' /f&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Some games will not run with Retina mode enabled. To disable it:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_CURRENT_USER\Software\Wine\Mac Driver' /v RetinaMode /t REG_SZ /d 'N' /f&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Game compatibility list ==&lt;br /&gt;
Working games:&lt;br /&gt;
* Astroneer&lt;br /&gt;
* Assassins Creed 3 Remastered&lt;br /&gt;
* Batman: Arkham Knight - launches with steam&lt;br /&gt;
* Bloodstained: Ritual of the Night&lt;br /&gt;
* Brick Rigs&lt;br /&gt;
* Genshin Impact 3.7 (m2max with 4k 60fps stable) &lt;br /&gt;
* Control (DX12 mode, if downloaded from Heroic, needs to be ran by Terminal)&lt;br /&gt;
* Crysis Remastered&lt;br /&gt;
* Cuphead&lt;br /&gt;
* Cyberpunk 2077&lt;br /&gt;
* Deep Rock Galactic&lt;br /&gt;
* Deceive Inc. - works well if launched without EAC&lt;br /&gt;
* Derail Valley (awesome performance, no missing manuals - in-game objects for train operation - like on CrossOver)&lt;br /&gt;
* Diablo IV [https://www.reddit.com/r/macgaming/comments/14307be/comment/jn7dxzo/?utm_source=reddit&amp;amp;utm_medium=web2x&amp;amp;context=3 ]&lt;br /&gt;
* Dyson Sphere Program (some objects and main character weren't visible before)&lt;br /&gt;
* Elden Ring&lt;br /&gt;
* Final Fantasy VII Remake Intergrade (~50 FPS on High settings at 1080p with M1 Pro)&lt;br /&gt;
* Friends vs. Friends&lt;br /&gt;
* God of War (Works somewhat well on M1 Pro (16gb), wouldn't recommend lesser hardware.)&lt;br /&gt;
* Going Medieval&lt;br /&gt;
* Guilty Gear Strive&lt;br /&gt;
* Grand Theft Auto V&lt;br /&gt;
* Green Hell&lt;br /&gt;
* Halo 3 (MCC - No Online due to Easy Anti-Cheat Compatibility) [https://www.reddit.com/r/macgaming/comments/143zoos/halo_3_mcc_no_online_eac_m1_pro_game_porting/]&lt;br /&gt;
* Halo Reach (MCC) &lt;br /&gt;
* HI-Fi RUSH&lt;br /&gt;
* Hogwarts Legacy - launches fine first time but then won't relaunch - can be fixed by deleting ~/my-game-prefix/drive_c/ProgramData/Hogwarts Legacy - these are the files that are created at first launch that prevent relaunching&lt;br /&gt;
* Hatsune Miku: Project DIVA Mega Mix+ - works with Retina mode; [https://github.com/blueskythlikesclouds/DivaModLoader/releases DivaModLoader] and [https://github.com/Still34/azura-diva/releases DivaNoSpy] recommended; run Steam with WINEDEBUG=-all WINEESYNC=0 WINEDLLOVERRIDES=&amp;quot;dinput8.dll=n,b&amp;quot;; may randomly crash at the title screen: use [https://github.com/nastys/IntroPatch/releases IntroPatch] as a workaround&lt;br /&gt;
* Kena: Bridge of Spirits&lt;br /&gt;
* Metal Gear Solid V: The Phantom Pain&lt;br /&gt;
* Overwatch 2&lt;br /&gt;
* QUBE 2&lt;br /&gt;
* People Playground&lt;br /&gt;
* Risk of Rain 2 (does not require `-disable-gpu-skinning` like Crossover 22)&lt;br /&gt;
* Scarlet Nexus&lt;br /&gt;
* Sonic GT&lt;br /&gt;
* Sonic illusions&lt;br /&gt;
* Sonic Omens&lt;br /&gt;
* Sonic P-06&lt;br /&gt;
* Spider-Man (2018)&lt;br /&gt;
* Spider-Man Miles Morales - ''requires Windows ver fix''&lt;br /&gt;
* SpongeBob SquarePants: The Cosmic Shake&lt;br /&gt;
* StarCraft: Remastered - Game runs fine but opening Option menu the second time will cause game not recognizing any inputs.&lt;br /&gt;
* Tetris Effect: Connected - Game window likes to be uncooperative; really doesn't like retina mode, works otherwise&lt;br /&gt;
* V Rising&lt;br /&gt;
* Warframe - ''To get installer/launcher working add dwrite (disabled) to library overrides in winecfg''&lt;br /&gt;
&lt;br /&gt;
Not working well:&lt;br /&gt;
* Horizon Zero Dawn - slowdown issues&lt;br /&gt;
* Genshin Impact - Launches, but stuck when calling menu using esc&lt;br /&gt;
&lt;br /&gt;
Not working yet:&lt;br /&gt;
* Apex (it will stuck because of anti-cheat)&lt;br /&gt;
* Any games that use the EA Launcher&lt;br /&gt;
** Need for Speed Heat&lt;br /&gt;
** Need for Speed Unbound&lt;br /&gt;
** Tom Clancy's The Division 2&lt;br /&gt;
* Among Us&lt;br /&gt;
* Assassins Creed Odyssey&lt;br /&gt;
* Assassins Creed Valhalla&lt;br /&gt;
* BeamNG.Drive - Loads into Main Menu but crashes on last step of loading into a level with a &amp;quot;UI Process failed to respond in time&amp;quot; error&lt;br /&gt;
* Company of Heroes 3&lt;br /&gt;
* Doom (2016) - &amp;quot;FATAL ERROR: wglCreateContextAttribsARB failed&amp;quot; message on launch&lt;br /&gt;
* F1 20 - Crash on launch (DX11 version running through GPT is slower compared to Crossover 21)&lt;br /&gt;
* F1 21 - Crash on launch&lt;br /&gt;
* F1 22 - Crash on launch (  &amp;quot;Exception&amp;quot;: &amp;quot;C0000005 EXCEPTION_ACCESS_VIOLATION at 0000000141bd8687&amp;quot;)&lt;br /&gt;
* Halo Infinite - Crash on launch&lt;br /&gt;
* Hitman 3 - launcher works, crash at 0x0000014136dddd hitman3+0x136dddd: int $3&lt;br /&gt;
* Microsoft Flight Simulator 2020 (Steam) - Crash on launch&lt;br /&gt;
* Monster Hunter Rise - DX12 Game, it launches but window goes dark after compiling shaders.&lt;br /&gt;
* Monster Hunter World - Black Screen on Launch&lt;br /&gt;
* New World - Game loaded but couldn't connect to server due to Easy Anti Cheat&lt;br /&gt;
* Red Dead Redemption 2&lt;br /&gt;
* Rogue Company - anti-cheat conflict.&lt;br /&gt;
* s&amp;amp;box - crashes right on launch. (it should be DX11)&lt;br /&gt;
* Sea of Thieves - Launches, but the prompt to sign into an xbox live account appears blank and cannot&lt;br /&gt;
* Saints Row IV: Re-Elected - Launches, but crashes when trying to load into game&lt;br /&gt;
* Slime Rancher 2 - Launches, but can't into game from main menu&lt;br /&gt;
* SpongeBob Squarepants: Battle for Bikini Bottom Rehydrated - Crashes when loading &lt;br /&gt;
* Teardown - When trying to launch, gives a error, &amp;quot;The program teardown.exe has encountered a serious problem and needs to close. We are sorry for the inconvenience.&amp;quot;&lt;br /&gt;
* The Elder Scrolls V: Skyrim Special Edition - the launcher gives a &amp;quot;The program teardown.exe has encountered a serious problem&amp;quot; message, not allowing us to get into the game&lt;br /&gt;
* theHunter: Call of the Wild - Crash on launch (Unhandled exception: page fault on read access to 0x0000000000000000 in 64-bit code (0x00000140b227f8))&lt;br /&gt;
* All DX9 games (duh, this is dx 11 &amp;amp; 12 only)&lt;br /&gt;
** 30XX - &amp;quot;Failed to create D3D device&amp;quot; -&amp;gt; crash on launch; this is a rare 64-bit DX9 game&lt;br /&gt;
** Battleblock Theater - Black screen -&amp;gt; crash on launch&lt;br /&gt;
** Black Mesa - Starts to load to main menu at first but then crashes&lt;br /&gt;
** Castle Crashers - Black screen -&amp;gt; crash on launch&lt;br /&gt;
** Killing Floor 1 - Crash on launch&lt;br /&gt;
** Left 4 Dead 2 - Black screen -&amp;gt; crash on launch&lt;br /&gt;
** Lego Batman: The Videogame - Black screen -&amp;gt; crash on launch&lt;br /&gt;
** Lego Batman 2: DC Super Heros - Black screen -&amp;gt; crash on launch&lt;br /&gt;
** Lego Batman 3: Beyond Gotham - Black screen -&amp;gt; crash on launch (You can switch to DX11 but are currently unable to do so since the game will not launch)&lt;br /&gt;
** Mega Man Zero/ZX Legacy Collection - &amp;quot;Failed to create d3d9 device&amp;quot; -&amp;gt; crash on launch&lt;br /&gt;
** Sonic Mania - Crash on launch&lt;br /&gt;
** StarCraft II -&amp;gt; &amp;quot;Failed to initialize DirectX&amp;quot; error&lt;br /&gt;
** Star Wars: The Old Republic&lt;br /&gt;
** Battlefield 2 - DirectX installation failed, won't launch, see the [https://gist.github.com/chrismwendt/1d01a306cdc8618a06bdfb555743e25c error log]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{References}}&lt;/div&gt;</summary>
		<author><name>Andytizer</name></author>
	</entry>
	<entry>
		<id>https://www.applegamingwiki.com/w/index.php?title=Game_Porting_Toolkit&amp;diff=7676</id>
		<title>Game Porting Toolkit</title>
		<link rel="alternate" type="text/html" href="https://www.applegamingwiki.com/w/index.php?title=Game_Porting_Toolkit&amp;diff=7676"/>
		<updated>2023-06-10T07:17:50Z</updated>

		<summary type="html">&lt;p&gt;Andytizer: /* Homebrew */ path&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Image|Game Porting Toolkit.png|Released 6th June, 2023 at WWDC23.}}&lt;br /&gt;
&lt;br /&gt;
Game Porting Toolkit is Apple's new translation layer released on 6th June, 2023. Game Porting Toolkit ('''GPT''') combines Wine with Apple's own D3DMetal which supports DirectX 11 and 12&amp;lt;ref&amp;gt;{{Refurl|url=https://mastodon.gamedev.place/@gavkar/110501451404624870|title=Gokhan Avkarogullari: &amp;quot;@yiningkarlli @aras @romainguy…&amp;quot; - Gamedev Mastodon}}&amp;lt;/ref&amp;gt;. This is less user-friendly method of installing Windows games on Apple Silicon Macs compared to [[CrossOver]] or [[Parallels]], however it unlocks the ability to play many DirectX 12 games. A lot more games work using GPTK, however, games that use anti-cheat or aggressive DRMs generally don't work, along with games that require AVX/AVX 2, e.g. The Last of Us Part I.&lt;br /&gt;
&lt;br /&gt;
== Toolkit install instructions ==&lt;br /&gt;
=== Requirements ===&lt;br /&gt;
*macOS Sonoma should be used, currently it is in beta. You can download the pkg installer from [https://mrmacintosh.com/macos-sonoma-full-installer-database-download-directly-from-apple/ Mr Macintosh blog].&lt;br /&gt;
*macOS Ventura causes large numbers of issues with steamwebhelper.exe crashing so it isn't recommended, use the macOS Sonoma beta.&lt;br /&gt;
*Visit [https://developer.apple.com/downloads Apple Developer Downloads site], these files are now free to download use for any logged in Apple account.&lt;br /&gt;
**Search for Command Line Tools for Xcode 15 beta and download the dmg file, then install it. *If you have an old version Xcode installed, remove it.&lt;br /&gt;
**Search for Game Porting Toolkit and download it. Open the dmg file and then run the pkg.&lt;br /&gt;
&lt;br /&gt;
=== Homebrew ===&lt;br /&gt;
Note: if you have ever installed Homebrew before, then it is advised to remove ARM64 Homebrew as this can interfere with this build process. Either use a Homebrew uninstall script or delete the folder &amp;lt;code&amp;gt;/opt/homebrew/bin&amp;lt;/code&amp;gt;. If you prefer to keep both ARM64 and x86 versions of brew installed, you may add a &amp;quot;brew-switcher&amp;quot; to your &amp;lt;code&amp;gt;.zshrc&amp;lt;/code&amp;gt; file to allow either version to be used depending on the active architecture. You may follow the steps at the end of this section after installing Brew to achieve this.&lt;br /&gt;
&lt;br /&gt;
Open Terminal (search in Spotlight on macOS).&lt;br /&gt;
&lt;br /&gt;
Install Rosetta:&lt;br /&gt;
&amp;lt;pre&amp;gt;softwareupdate --install-rosetta&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Enter an x86_64 shell to continue the following steps in a Rosetta environment. All subsequent commands should be run within this shell.&lt;br /&gt;
&amp;lt;pre&amp;gt;arch -x86_64 zsh&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Install the x86_64 version of Homebrew if you don't already have it.&lt;br /&gt;
&amp;lt;pre&amp;gt;/bin/bash -c &amp;quot;$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)&amp;quot;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Set the path:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
(echo; echo 'eval &amp;quot;$(/usr/local/bin/brew shellenv)&amp;quot;') &amp;gt;&amp;gt; /Users/andrewtsai/.zprofile&lt;br /&gt;
eval &amp;quot;$(/usr/local/bin/brew shellenv)&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Make sure the brew command is on your path:&lt;br /&gt;
&amp;lt;pre&amp;gt;which brew&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If this command does not print &amp;lt;code&amp;gt;/usr/local/bin/brew&amp;lt;/code&amp;gt;, you should use this command:&lt;br /&gt;
&amp;lt;pre&amp;gt;export PATH=/usr/local/bin:${PATH}&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Fixbox|description=Optionally retain both ARM64 and x86 versions of Brew|ref=|collapsed=yes|fix=&lt;br /&gt;
(Optional) If you want to have both ARM64 and x86 versions of Brew installed, begin by editing your &amp;lt;code&amp;gt;.zshrc&amp;lt;/code&amp;gt; file:&lt;br /&gt;
&amp;lt;pre&amp;gt;nano ~/.zshrc&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Scroll down (by using the arrow keys or Control + V) to the bottom of the file, and paste the following script:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
if [ &amp;quot;$(arch)&amp;quot; = &amp;quot;arm64&amp;quot; ]; then&lt;br /&gt;
    eval &amp;quot;$(/opt/homebrew/bin/brew shellenv)&amp;quot;&lt;br /&gt;
else&lt;br /&gt;
    eval &amp;quot;$(/usr/local/bin/brew shellenv)&amp;quot;&lt;br /&gt;
fi&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You may now restart your terminal and use the following command to return to an x86_64 shell:&lt;br /&gt;
&amp;lt;pre&amp;gt;arch -x86_64 zsh&amp;lt;/pre&amp;gt;&lt;br /&gt;
Your shell will now select the right installation of Brew, depending on your architecture.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=== Build ===&lt;br /&gt;
Run this command to download Apple tap:&lt;br /&gt;
&amp;lt;pre&amp;gt;brew tap apple/apple http://github.com/apple/homebrew-apple&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Install the game-porting-toolkit formula. This formula downloads and compiles several large software projects. How long this takes will depend on the speed of your computer. It can take over 1 hour to complete depending on the speed of your Mac.&lt;br /&gt;
&amp;lt;pre&amp;gt;brew -v install apple/apple/game-porting-toolkit&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If during installation you see an error such as '''“Error: game-porting-toolkit: unknown or unsupported macOS version: :dunno”, your version of Homebrew doesn’t have macOS Sonoma support. Update to the latest version of Homebrew and try again.'''&lt;br /&gt;
&amp;lt;pre&amp;gt;brew update brew -v install apple/apple/game-porting-toolkit&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Preparing the toolkit ===&lt;br /&gt;
Make sure the Game Porting Toolkit dmg downloaded earlier is mounted at /Volumes/Game Porting Toolkit-1.0. Use this script to copy the Game Porting Toolkit library directory into Wine’s library directory.&lt;br /&gt;
&amp;lt;pre&amp;gt;ditto /Volumes/Game\ Porting\ Toolkit-1.0/lib/ `brew --prefix game-porting-toolkit`/lib/&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Put the 3 scripts from the Game Porting Toolkit DMG into here &amp;lt;code&amp;gt;/usr/local/bin&amp;lt;/code&amp;gt; using this command:&lt;br /&gt;
&amp;lt;pre&amp;gt;cp /Volumes/Game\ Porting\ Toolkit*/gameportingtoolkit* /usr/local/bin&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Wine prefix ===&lt;br /&gt;
A Wine prefix contains a virtual C: drive, similar to a Bottle in [[CrossOver]]. You will install the toolkit and your game into this virtual C: drive. Run the following command to create a new Wine prefix named my-game-prefix in your home directory. This will create a Wine prefix called &amp;lt;code&amp;gt;my-game-prefix&amp;lt;/code&amp;gt; but could be renamed to anything.&lt;br /&gt;
&amp;lt;pre&amp;gt;WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 winecfg&amp;lt;/pre&amp;gt;&lt;br /&gt;
*A “Wine configuration” window should appear on your screen.&lt;br /&gt;
*Change the version of Windows to Windows 10.&lt;br /&gt;
*Choose Apply and then OK to exit winecfg.&lt;br /&gt;
&lt;br /&gt;
If the “Wine configuration” window does not appear, and no new icon appears in the Dock, verify that you have correctly installed the x86_64 version of Homebrew as well as the game-porting-toolkit formula.&lt;br /&gt;
&lt;br /&gt;
Now you are ready to install a launcher or individual Windows games into this Wine prefix, see below.&lt;br /&gt;
&lt;br /&gt;
== Steam ==&lt;br /&gt;
Download the [https://cdn.cloudflare.steamstatic.com/client/installer/SteamSetup.exe Windows version of Steam] and place in your Downloads folder.&lt;br /&gt;
&lt;br /&gt;
'''Install Steam'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix ~/Downloads/SteamSetup.exe&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Run Steam'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix 'C:\Program Files (x86)/Steam/steam.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Log into Steam'''&lt;br /&gt;
&lt;br /&gt;
A common issue is that Steam will present with a blank black window.&lt;br /&gt;
&lt;br /&gt;
Alternate way of launching Steam (after installing):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
MTL_HUD_ENABLED=1 WINEESYNC=1 WINEPREFIX=~/my-game-prefix /usr/local/Cellar/game-porting-toolkit/1.0/bin/wine64 'C:\Program Files (x86)\Steam\steam.exe'&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If this continues then close the Terminal window and then re-open and try again, repeat until the login screen opens. Now you should be able to download and launch Windows games through Steam.&lt;br /&gt;
&lt;br /&gt;
== Battle.net ==&lt;br /&gt;
Download the [https://download.battle.net/en-gb/?platform=windows Windows version of Battle.net] and place in your Downloads folder.&lt;br /&gt;
&lt;br /&gt;
Make a new Wineprefix for Battle.net, you can choose to use &amp;lt;code&amp;gt;my-game-prefix&amp;lt;/code&amp;gt; or change this to anything else.&lt;br /&gt;
&amp;lt;pre&amp;gt;WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 winecfg&amp;lt;/pre&amp;gt;&lt;br /&gt;
*A “Wine configuration” window should appear on your screen.&lt;br /&gt;
*Change the version of Windows to &amp;lt;code&amp;gt;Windows 10&amp;lt;/code&amp;gt;.&lt;br /&gt;
*Choose Apply and then OK to exit winecfg.&lt;br /&gt;
&lt;br /&gt;
If you are running Diablo IV, then you need to run this script to update the Wineprefix to appear as a more recent version of Windows:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion' /v CurrentBuild /t REG_SZ /d 19042 /f&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion' /v CurrentBuildNumber /t REG_SZ /d 19042 /f&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wineserver -k&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Run Battle.net launcher'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix ~/Downloads/Battle.net-Setup.exe&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Be aware that there is an issue launching Battle.net once installed, the only current way to re-login is to 'install' the launcher again. &lt;br /&gt;
&lt;br /&gt;
Start individual game without the launcher using this command:&lt;br /&gt;
&amp;lt;pre&amp;gt;arch -x86_64 gameportingtoolkit-no-hud ~/my-game-prefix 'C:\Program Files (x86)\Diablo IV\Diablo IV Launcher.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Epic and GOG.com support with the Heroic Games Launcher ==&lt;br /&gt;
This is particularly useful because '''as it currently stands, the real Epic Games Launcher fails to install under the Game Porting Toolkit'''. Heroic supports Epic and GOG.com games.&lt;br /&gt;
&lt;br /&gt;
* Install the [https://github.com/Heroic-Games-Launcher/HeroicGamesLauncher/releases native macOS Heroic Games Launcher] or from Homebrew.&lt;br /&gt;
* Open Heroic, and log into your Epic Games and/or GOG.com account.&lt;br /&gt;
* Go to the &amp;quot;Wine Manager&amp;quot; and install a '''numbered''' version of Wine, such that it won't auto update- we are going to modify it.&lt;br /&gt;
** At the time of writing this, the newest numbered version of Wine-Crossover is &amp;lt;code&amp;gt;Wine-Crossover-Wine-22.1.0&amp;lt;/code&amp;gt;&lt;br /&gt;
* Press the folder icon that appears after installing it to open the directory containing Heroic's Wine installations.&lt;br /&gt;
* Right-click on the version of Wine you just installed and press &amp;quot;Show Package Contents&amp;quot;.&lt;br /&gt;
* Open this directory in the Terminal.&lt;br /&gt;
** If you have &amp;quot;OpenInTerminal&amp;quot; this is one button, otherwise press &amp;quot;Show Path Bar&amp;quot; and navigate where it says with &amp;quot;cd&amp;quot;.&lt;br /&gt;
** It should be something like &amp;lt;code&amp;gt;cd ~/Library/Application\ Support/heroic/tools/wine/Wine-crossover-wine-22.1.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
* &amp;lt;pre&amp;gt;cd Contents/MacOS&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Remove the existing Wine: &amp;lt;pre&amp;gt;rm wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Create a symlink to Game Porting Toolkit's Wine: &lt;br /&gt;
** If using Game Porting Toolkit Wineprefix: &amp;lt;pre&amp;gt;ln -s `/usr/local/bin/brew --prefix game-porting-toolkit`/bin/wine64 wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
** If using Whisky: &amp;lt;pre&amp;gt;ln -s /Applications/Whisky.app/Contents/Resources/Libraries/Wine/bin/wine64 wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
* &amp;lt;pre&amp;gt;cd ../Resources&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Remove the existing Wine: &amp;lt;pre&amp;gt;rm -rfv wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Create a symlink to Game Porting Toolkit's Wine&lt;br /&gt;
** If using Game Porting Toolkit Wineprefix: &amp;lt;pre&amp;gt;ln -s `/usr/local/bin/brew --prefix game-porting-toolkit` wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
** If using Whisky: &amp;lt;pre&amp;gt;ln -s /Applications/Whisky.app/Contents/Resources/Libraries/Wine wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
* We are now done with Terminal. Install any games you want to try playing.&lt;br /&gt;
* Select the game you want to play, and press the settings button in the top-right.&lt;br /&gt;
* Make sure the version of Wine you just downloaded and modified is selected.&lt;br /&gt;
* Make sure your Game Porting Toolkit Wine Prefix is selected. If you followed Apple's guide this is &amp;lt;code&amp;gt;/Users/you/my-game-prefix&amp;lt;/code&amp;gt;.&lt;br /&gt;
* If you Open the &amp;quot;Other&amp;quot; section you can also add any environment variables you want like &amp;lt;code&amp;gt;WINEESYNC=1&amp;quot;&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;&amp;quot;MTL_HUD_ENABLED=1&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
* Close the settings and try running the game.&lt;br /&gt;
&lt;br /&gt;
== Commands ==&lt;br /&gt;
Installing individual exe games: open your Wine prefix’s virtual C: drive in Finder (open ~/my-game-prefix/drive_c) and copy your game into an appropriate subdirectory.&lt;br /&gt;
&lt;br /&gt;
'''A. Standard launching'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix 'C:\Program Files (x86)\Steam\steam.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This launches the given Windows game binary with a visible extended Metal Performance HUD and filters logging to output from the Game Porting Toolkit.&lt;br /&gt;
&lt;br /&gt;
'''B. Launching without a HUD'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit-no-hud ~/my-game-prefix 'C:\Program Files (x86)\Steam\steam.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''C. Launching with Wine ESYNC disabled'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit-no-esync ~/my-game-prefix 'C:\Program Files (x86)\Steam\steam.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To enter Winecfg:&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix winecfg&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Shortcut ==&lt;br /&gt;
{{Image|Game Porting Toolkit Steam icon.png|Made by user Omsier.|150px}}&lt;br /&gt;
You can make a shortcut for Steam for example by using macOS built-in Automator app.&lt;br /&gt;
*Open Automator.&lt;br /&gt;
*Select New Application.&lt;br /&gt;
*In the 2nd column select Run Shell Script.&lt;br /&gt;
*Copy and paste this code into the box:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/zsh&lt;br /&gt;
&lt;br /&gt;
export PATH=&amp;quot;/usr/local/bin:${PATH}&amp;quot;&lt;br /&gt;
&lt;br /&gt;
arch -x86_64 gameportingtoolkit ~/my-game-prefix 'C:\Program Files (x86)\Steam\steam.exe'&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the shortcut somewhere e.g. Applications.&lt;br /&gt;
*Above shortcut can be customised to any Wineprefix or game.&lt;br /&gt;
*Add an icon by selecting the shortcut, pressing {{key|cmd|I}} to Get Info, then dragging and dropping a PNG file onto the top left of the window.&lt;br /&gt;
&lt;br /&gt;
== Logging ==&lt;br /&gt;
The provided bin/gameportingtoolkit* scripts can be copied onto your path to facilitate different forms of logging and launching. You can run these scripts from any shell; you don’t need to switch to the Rosetta environment first.&lt;br /&gt;
&lt;br /&gt;
Logging output will appear in the Terminal window in which you launch your game as well as the system log, which can be viewed with the Console app found in Applications ▸ Utilities. Log messages from the Game Porting Toolkit are prefixed with D3DM. By default the gameportingtoolkit* scripts will filter to just the D3DM-prefixed messages.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
{{Image|GPTK Steam black screen.png|Steam login black screen issue.}}&lt;br /&gt;
'''Steam login black screen'''&lt;br /&gt;
&lt;br /&gt;
Close the Terminal window and then reopen and retry the command, repeat several times.&lt;br /&gt;
&lt;br /&gt;
Alternate way of launching Steam (after installing):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
MTL_HUD_ENABLED=1 WINEESYNC=1 WINEPREFIX=~/my-game-prefix /usr/local/Cellar/game-porting-toolkit/1.0/bin/wine64 'C:\Program Files (x86)/Steam/steam.exe'&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If still not working then try using [[CrossOver]] and create a Steam bottle, then login, then redirect this WINEPREFIX to that bottle:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=&amp;quot;/Users/[username]/Library/Application Support/CrossOver/Bottles/Steam/&amp;quot; &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Steam crashes straight after opening'''&lt;br /&gt;
&lt;br /&gt;
Disconnect any external monitors.&lt;br /&gt;
&lt;br /&gt;
'''Battle.net launcher won't re-launch'''&lt;br /&gt;
&lt;br /&gt;
Re-install the launcher to reopen, no other fix at the moment.&lt;br /&gt;
&lt;br /&gt;
'''My game won’t run because it thinks the version of Windows is too old. Some games detect specific minimum versions of Windows and need to be updated.''' Use this script to update your wineprefix with build 19042 which should work for most games e.g. Spider-Man Remastered.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion' /v CurrentBuild /t REG_SZ /d 19042 /f&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion' /v CurrentBuildNumber /t REG_SZ /d 19042 /f&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wineserver -k&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''steamwebhelper.exe crashes'''&lt;br /&gt;
&lt;br /&gt;
This is caused by Steam being run through macOS Ventura or below, most users should upgrade to macOS Sonoma. You can use the CrossOver workaround to login to Steam but you'll experience constant crashing.&lt;br /&gt;
&lt;br /&gt;
'''My game won't run and crashes with an invalid instruction'''&lt;br /&gt;
&lt;br /&gt;
AVX and AVX2 games are not supported by Apple's arm64 chipset.&lt;br /&gt;
&lt;br /&gt;
'''My game won't run because its anti-cheat or DRM software is incompatible with Wine translation.'''&lt;br /&gt;
&lt;br /&gt;
Likely there will be no fixes for any games that use anti-cheat, e.g. Easy Anti Cheat. Some games have workarounds e.g. Elden Ring. Other games that use say Denuvo may also be incompatible until that DRM is removed by the game's developer.&lt;br /&gt;
&lt;br /&gt;
'''My game won’t run because it requires Mono, .NET, or the MSVCRT runtime.'''&lt;br /&gt;
&lt;br /&gt;
The game porting toolkit’s evaluation environment does not pre-install these runtime support packages. If your game makes use of one of these packages, consider searching for and downloading appropriate installers (.exe or .msi) and installing them to your evaluation environment. Additional runtime installers can be run on your environment by just launching the installer and following its installation instructions:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 &amp;lt;some-installer.exe&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
And .MSI packages can be installed by launching the Windows uninstaller application and choosing to install a downloaded .msi package:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 uninstaller&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Controller issues'''&lt;br /&gt;
&lt;br /&gt;
Issues may be fixed by enrolling into the Steam beta.&lt;br /&gt;
&lt;br /&gt;
'''My game looks pixelated and the display resolution is limited'''&lt;br /&gt;
&lt;br /&gt;
Enable Retina (high resolution) mode:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_CURRENT_USER\Software\Wine\Mac Driver' /v RetinaMode /t REG_SZ /d 'Y' /f&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Some games will not run with Retina mode enabled. To disable it:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_CURRENT_USER\Software\Wine\Mac Driver' /v RetinaMode /t REG_SZ /d 'N' /f&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Game compatibility list ==&lt;br /&gt;
Working games:&lt;br /&gt;
* Astroneer&lt;br /&gt;
* Bloodstained: Ritual of the Night&lt;br /&gt;
* Brick Rigs&lt;br /&gt;
* Geshin Impact 3.7 (m2max with 4k 60fps stable) &lt;br /&gt;
* Control (DX12 mode, if downloaded from Heroic, needs to be ran by Terminal)&lt;br /&gt;
* Crysis Remastered&lt;br /&gt;
* Cuphead&lt;br /&gt;
* Cyberpunk 2077&lt;br /&gt;
* Deep Rock Galactic&lt;br /&gt;
* Deceive Inc. - works well if launched without EAC&lt;br /&gt;
* Derail Valley (awesome performance, no missing manuals - in-game objects for train operation - like on CrossOver)&lt;br /&gt;
* Diablo IV [https://www.reddit.com/r/macgaming/comments/14307be/comment/jn7dxzo/?utm_source=reddit&amp;amp;utm_medium=web2x&amp;amp;context=3 ]&lt;br /&gt;
* Dyson Sphere Program (some objects and main character weren't visible before)&lt;br /&gt;
* Elden Ring&lt;br /&gt;
* Final Fantasy VII Remake Intergrade (~50 FPS on High settings at 1080p with M1 Pro)&lt;br /&gt;
* Friends vs. Friends&lt;br /&gt;
* God of War (Works somewhat well on M1 Pro (16gb), wouldn't recommend lesser hardware.)&lt;br /&gt;
* Going Medieval&lt;br /&gt;
* Guilty Gear Strive&lt;br /&gt;
* Grand Theft Auto V&lt;br /&gt;
* Green Hell&lt;br /&gt;
* Halo 3 (MCC - No Online due to Easy Anti-Cheat Compatibility) [https://www.reddit.com/r/macgaming/comments/143zoos/halo_3_mcc_no_online_eac_m1_pro_game_porting/]&lt;br /&gt;
* Halo Reach (MCC) &lt;br /&gt;
* HI-Fi RUSH&lt;br /&gt;
* Hogwarts Legacy - launches fine first time but then won't relaunch - can be fixed by deleting ~/my-game-prefix/drive_c/ProgramData/Hogwarts Legacy - these are the files that are created at first launch that prevent relaunching&lt;br /&gt;
* Hatsune Miku: Project DIVA Mega Mix+ - works with Retina mode; [https://github.com/blueskythlikesclouds/DivaModLoader/releases DivaModLoader] and [https://github.com/Still34/azura-diva/releases DivaNoSpy] recommended; run Steam with WINEDEBUG=-all WINEESYNC=0 WINEDLLOVERRIDES=&amp;quot;dinput8.dll=n,b&amp;quot;; may randomly crash at the title screen: use [https://github.com/nastys/IntroPatch/releases IntroPatch] as a workaround&lt;br /&gt;
* Kena: Bridge of Spirits&lt;br /&gt;
* Metal Gear Solid V: The Phantom Pain&lt;br /&gt;
* Overwatch 2&lt;br /&gt;
* QUBE 2&lt;br /&gt;
* People Playground&lt;br /&gt;
* Risk of Rain 2 (does not require `-disable-gpu-skinning` like Crossover 22)&lt;br /&gt;
* Scarlet Nexus&lt;br /&gt;
* Sonic Omens&lt;br /&gt;
* Sonic P-06&lt;br /&gt;
* Spider-Man (2018)&lt;br /&gt;
* Spider-Man Miles Morales - ''requires Windows ver fix''&lt;br /&gt;
* SpongeBob SquarePants: The Cosmic Shake&lt;br /&gt;
* StarCraft: Remastered - Game runs fine but opening Option menu the second time will cause game not recognizing any inputs.&lt;br /&gt;
* Tetris Effect: Connected - Game window likes to be uncooperative; really doesn't like retina mode, works otherwise&lt;br /&gt;
* V Rising&lt;br /&gt;
* Warframe - ''To get installer/launcher working add dwrite (disabled) to library overrides in winecfg''&lt;br /&gt;
&lt;br /&gt;
Not working well:&lt;br /&gt;
* Horizon Zero Dawn - slowdown issues&lt;br /&gt;
* Genshin Impact - Launches, but stuck when calling menu using esc&lt;br /&gt;
* Saints Row IV: Re-Elected - Launches, but crashes when trying to load into game&lt;br /&gt;
* Slime Rancher 2 - Launches, but can't into game from main menu&lt;br /&gt;
&lt;br /&gt;
Not working yet:&lt;br /&gt;
* Apex (it will stuck because of anti-cheat)&lt;br /&gt;
* Any games that use the EA Launcher&lt;br /&gt;
** Need for Speed Heat&lt;br /&gt;
** Need for Speed Unbound&lt;br /&gt;
** Tom Clancy's The Division 2&lt;br /&gt;
* Among Us&lt;br /&gt;
* Batman: Arkham Knight - doesn't launch, freezes steam and makes me force close and reopen steam&lt;br /&gt;
* Company of Heroes 3&lt;br /&gt;
* F1 20 - Crash on launch (DX11 version running through GPT is slower compared to Crossover 21)&lt;br /&gt;
* F1 21 - Crash on launch&lt;br /&gt;
* F1 22 - Crash on launch (  &amp;quot;Exception&amp;quot;: &amp;quot;C0000005 EXCEPTION_ACCESS_VIOLATION at 0000000141bd8687&amp;quot;)&lt;br /&gt;
* Halo Infinite - Crash on launch&lt;br /&gt;
* Hitman 3 - launcher works, crash at 0x0000014136dddd hitman3+0x136dddd: int $3&lt;br /&gt;
* Microsoft Flight Simulator 2020 (Steam) - Crash on launch&lt;br /&gt;
* Monster Hunter Rise - DX12 Game, it launches but window goes dark after compiling shaders.&lt;br /&gt;
* Monster Hunter World - Black Screen on Launch&lt;br /&gt;
* New World - Game loaded but couldn't connect to server due to Easy Anti Cheat&lt;br /&gt;
* Red Dead Redemption 2&lt;br /&gt;
* Rogue Company - anti-cheat conflict.&lt;br /&gt;
* s&amp;amp;box - crashes right on launch. (it should be DX11)&lt;br /&gt;
* Sea of Thieves - Launches, but the prompt to sign into an xbox live account appears blank and cannot&lt;br /&gt;
* SpongeBob Squarepants: Battle for Bikini Bottom Rehydrated - Crashes when loading &lt;br /&gt;
* Teardown - When trying to launch, gives a error, &amp;quot;The program teardown.exe has encountered a serious problem and needs to close. We are sorry for the inconvenience.&amp;quot;&lt;br /&gt;
* theHunter: Call of the Wild - Crash on launch (Unhandled exception: page fault on read access to 0x0000000000000000 in 64-bit code (0x00000140b227f8))&lt;br /&gt;
* Many (all?) DX9 games&lt;br /&gt;
** 30XX - &amp;quot;Failed to create D3D device&amp;quot; -&amp;gt; crash on launch; this is a rare 64-bit DX9 game&lt;br /&gt;
** Black Mesa - Starts to load to main menu at first but then crashes&lt;br /&gt;
** Killing Floor 1 - Crash on launch&lt;br /&gt;
** Left 4 Dead 2 - Black screen -&amp;gt; crash on launch&lt;br /&gt;
** Mega Man Zero/ZX Legacy Collection - &amp;quot;Failed to create d3d9 device&amp;quot; -&amp;gt; crash on launch&lt;br /&gt;
** Sonic Mania - Crash on launch&lt;br /&gt;
** StarCraft II -&amp;gt; &amp;quot;Failed to initialize DirectX&amp;quot; error&lt;br /&gt;
** Star Wars: The Old Republic&lt;br /&gt;
** Battlefield 2 - DirectX installation failed, won't launch, see the [https://gist.github.com/chrismwendt/1d01a306cdc8618a06bdfb555743e25c error log]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{References}}&lt;/div&gt;</summary>
		<author><name>Andytizer</name></author>
	</entry>
	<entry>
		<id>https://www.applegamingwiki.com/w/index.php?title=Game_Porting_Toolkit&amp;diff=7666</id>
		<title>Game Porting Toolkit</title>
		<link rel="alternate" type="text/html" href="https://www.applegamingwiki.com/w/index.php?title=Game_Porting_Toolkit&amp;diff=7666"/>
		<updated>2023-06-09T21:19:59Z</updated>

		<summary type="html">&lt;p&gt;Andytizer: /* Troubleshooting */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Image|Game Porting Toolkit.png|Released 6th June, 2023 at WWDC23.}}&lt;br /&gt;
&lt;br /&gt;
Game Porting Toolkit is Apple's new translation layer released on 6th June, 2023. Game Porting Toolkit ('''GPT''') combines Wine with Apple's own D3DMetal which supports DirectX 11 and 12&amp;lt;ref&amp;gt;{{Refurl|url=https://mastodon.gamedev.place/@gavkar/110501451404624870|title=Gokhan Avkarogullari: &amp;quot;@yiningkarlli @aras @romainguy…&amp;quot; - Gamedev Mastodon}}&amp;lt;/ref&amp;gt;. This is less user-friendly method of installing Windows games on Apple Silicon Macs compared to [[CrossOver]] or [[Parallels]], however it unlocks the ability to play many DirectX 12 games. A lot more games work using GPTK, however, games that use anti-cheat or aggressive DRMs generally don't work, along with games that require AVX/AVX 2, e.g. The Last of Us Part I.&lt;br /&gt;
&lt;br /&gt;
== Toolkit install instructions ==&lt;br /&gt;
=== Requirements ===&lt;br /&gt;
*macOS Sonoma should be used, currently it is in beta. You can download the pkg installer from [https://mrmacintosh.com/macos-sonoma-full-installer-database-download-directly-from-apple/ Mr Macintosh blog].&lt;br /&gt;
*macOS Ventura causes large numbers of issues with steamwebhelper.exe crashing so it isn't recommended, use the macOS Sonoma beta.&lt;br /&gt;
*Visit [https://developer.apple.com/downloads Apple Developer Downloads site], these files are now free to download use for any logged in Apple account.&lt;br /&gt;
**Search for Command Line Tools for Xcode 15 beta and download the dmg file, then install it. *If you have an old version Xcode installed, remove it.&lt;br /&gt;
**Search for Game Porting Toolkit and download it. Open the dmg file and then run the pkg.&lt;br /&gt;
&lt;br /&gt;
=== Homebrew ===&lt;br /&gt;
Note: if you have ever installed Homebrew before, then it is advised to remove ARM64 Homebrew as this can interfere with this build process. Either use a Homebrew uninstall script or delete the folder &amp;lt;code&amp;gt;/opt/homebrew/bin&amp;lt;/code&amp;gt;. If you prefer to keep both ARM64 and x86 versions of brew installed, you may add a &amp;quot;brew-switcher&amp;quot; to your &amp;lt;code&amp;gt;.zshrc&amp;lt;/code&amp;gt; file to allow either version to be used depending on the active architecture. You may follow the steps at the end of this section after installing Brew to achieve this.&lt;br /&gt;
&lt;br /&gt;
Open Terminal (search in Spotlight on macOS).&lt;br /&gt;
&lt;br /&gt;
Install Rosetta:&lt;br /&gt;
&amp;lt;pre&amp;gt;softwareupdate --install-rosetta&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Enter an x86_64 shell to continue the following steps in a Rosetta environment. All subsequent commands should be run within this shell.&lt;br /&gt;
&amp;lt;pre&amp;gt;arch -x86_64 zsh&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Install the x86_64 version of Homebrew if you don't already have it.&lt;br /&gt;
&amp;lt;pre&amp;gt;/bin/bash -c &amp;quot;$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)&amp;quot;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Make sure the brew command is on your path:&lt;br /&gt;
&amp;lt;pre&amp;gt;which brew&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If this command does not print &amp;lt;code&amp;gt;/usr/local/bin/brew&amp;lt;/code&amp;gt;, you should use this command:&lt;br /&gt;
&amp;lt;pre&amp;gt;export PATH=/usr/local/bin:${PATH}&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Fixbox|description=Optionally retain both ARM64 and x86 versions of Brew|ref=|collapsed=yes|fix=&lt;br /&gt;
(Optional) If you want to have both ARM64 and x86 versions of Brew installed, begin by editing your &amp;lt;code&amp;gt;.zshrc&amp;lt;/code&amp;gt; file:&lt;br /&gt;
&amp;lt;pre&amp;gt;nano ~/.zshrc&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Scroll down (by using the arrow keys or Control + V) to the bottom of the file, and paste the following script:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
if [ &amp;quot;$(arch)&amp;quot; = &amp;quot;arm64&amp;quot; ]; then&lt;br /&gt;
    eval &amp;quot;$(/opt/homebrew/bin/brew shellenv)&amp;quot;&lt;br /&gt;
else&lt;br /&gt;
    eval &amp;quot;$(/usr/local/bin/brew shellenv)&amp;quot;&lt;br /&gt;
fi&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You may now restart your terminal and use the following command to return to an x86_64 shell:&lt;br /&gt;
&amp;lt;pre&amp;gt;arch -x86_64 zsh&amp;lt;/pre&amp;gt;&lt;br /&gt;
Your shell will now select the right installation of Brew, depending on your architecture.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=== Build ===&lt;br /&gt;
Run this command to download Apple tap:&lt;br /&gt;
&amp;lt;pre&amp;gt;brew tap apple/apple http://github.com/apple/homebrew-apple&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Install the game-porting-toolkit formula. This formula downloads and compiles several large software projects. How long this takes will depend on the speed of your computer. It can take over 1 hour to complete depending on the speed of your Mac.&lt;br /&gt;
&amp;lt;pre&amp;gt;brew -v install apple/apple/game-porting-toolkit&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If during installation you see an error such as '''“Error: game-porting-toolkit: unknown or unsupported macOS version: :dunno”, your version of Homebrew doesn’t have macOS Sonoma support. Update to the latest version of Homebrew and try again.'''&lt;br /&gt;
&amp;lt;pre&amp;gt;brew update brew -v install apple/apple/game-porting-toolkit&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Preparing the toolkit ===&lt;br /&gt;
Make sure the Game Porting Toolkit dmg downloaded earlier is mounted at /Volumes/Game Porting Toolkit-1.0. Use this script to copy the Game Porting Toolkit library directory into Wine’s library directory.&lt;br /&gt;
&amp;lt;pre&amp;gt;ditto /Volumes/Game\ Porting\ Toolkit-1.0/lib/ `brew --prefix game-porting-toolkit`/lib/&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Put the 3 scripts from the Game Porting Toolkit DMG into here &amp;lt;code&amp;gt;/usr/local/bin&amp;lt;/code&amp;gt; using this command:&lt;br /&gt;
&amp;lt;pre&amp;gt;cp /Volumes/Game\ Porting\ Toolkit*/gameportingtoolkit* /usr/local/bin&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Wine prefix ===&lt;br /&gt;
A Wine prefix contains a virtual C: drive, similar to a Bottle in [[CrossOver]]. You will install the toolkit and your game into this virtual C: drive. Run the following command to create a new Wine prefix named my-game-prefix in your home directory. This will create a Wine prefix called &amp;lt;code&amp;gt;my-game-prefix&amp;lt;/code&amp;gt; but could be renamed to anything.&lt;br /&gt;
&amp;lt;pre&amp;gt;WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 winecfg&amp;lt;/pre&amp;gt;&lt;br /&gt;
*A “Wine configuration” window should appear on your screen.&lt;br /&gt;
*Change the version of Windows to Windows 10.&lt;br /&gt;
*Choose Apply and then OK to exit winecfg.&lt;br /&gt;
&lt;br /&gt;
If the “Wine configuration” window does not appear, and no new icon appears in the Dock, verify that you have correctly installed the x86_64 version of Homebrew as well as the game-porting-toolkit formula.&lt;br /&gt;
&lt;br /&gt;
Now you are ready to install a launcher or individual Windows games into this Wine prefix, see below.&lt;br /&gt;
&lt;br /&gt;
== Steam ==&lt;br /&gt;
Download the [https://cdn.cloudflare.steamstatic.com/client/installer/SteamSetup.exe Windows version of Steam] and place in your Downloads folder.&lt;br /&gt;
&lt;br /&gt;
'''Install Steam'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix ~/Downloads/SteamSetup.exe&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Run Steam'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix 'C:\Program Files (x86)/Steam/steam.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Log into Steam'''&lt;br /&gt;
&lt;br /&gt;
A common issue is that Steam will present with a blank black window.&lt;br /&gt;
&lt;br /&gt;
Alternate way of launching Steam (after installing):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
MTL_HUD_ENABLED=1 WINEESYNC=1 WINEPREFIX=~/my-game-prefix /usr/local/Cellar/game-porting-toolkit/1.0/bin/wine64 'C:\Program Files (x86)\Steam\steam.exe'&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If this continues then close the Terminal window and then re-open and try again, repeat until the login screen opens. Now you should be able to download and launch Windows games through Steam.&lt;br /&gt;
&lt;br /&gt;
== Battle.net ==&lt;br /&gt;
Download the [https://download.battle.net/en-gb/?platform=windows Windows version of Battle.net] and place in your Downloads folder.&lt;br /&gt;
&lt;br /&gt;
Make a new Wineprefix for Battle.net, you can choose to use &amp;lt;code&amp;gt;my-game-prefix&amp;lt;/code&amp;gt; or change this to anything else.&lt;br /&gt;
&amp;lt;pre&amp;gt;WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 winecfg&amp;lt;/pre&amp;gt;&lt;br /&gt;
*A “Wine configuration” window should appear on your screen.&lt;br /&gt;
*Change the version of Windows to &amp;lt;code&amp;gt;Windows 10&amp;lt;/code&amp;gt;.&lt;br /&gt;
*Choose Apply and then OK to exit winecfg.&lt;br /&gt;
&lt;br /&gt;
If you are running Diablo IV, then you need to run this script to update the Wineprefix to appear as a more recent version of Windows:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion' /v CurrentBuild /t REG_SZ /d 19042 /f&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion' /v CurrentBuildNumber /t REG_SZ /d 19042 /f&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wineserver -k&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Run Battle.net launcher'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix ~/Downloads/Battle.net-Setup.exe&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Be aware that there is an issue launching Battle.net once installed, the only current way to re-login is to 'install' the launcher again. &lt;br /&gt;
&lt;br /&gt;
Start individual game without the launcher using this command:&lt;br /&gt;
&amp;lt;pre&amp;gt;arch -x86_64 gameportingtoolkit-no-hud ~/my-game-prefix 'C:\Program Files (x86)\Diablo IV\Diablo IV Launcher.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Epic and GOG.com support with the Heroic Games Launcher ==&lt;br /&gt;
This is particularly useful because '''as it currently stands, the real Epic Games Launcher fails to install under the Game Porting Toolkit'''. Heroic supports Epic and GOG.com games.&lt;br /&gt;
&lt;br /&gt;
* Install the [https://github.com/Heroic-Games-Launcher/HeroicGamesLauncher/releases native macOS Heroic Games Launcher] or from Homebrew.&lt;br /&gt;
* Open Heroic, and log into your Epic Games and/or GOG.com account.&lt;br /&gt;
* Go to the &amp;quot;Wine Manager&amp;quot; and install a '''numbered''' version of Wine, such that it won't auto update- we are going to modify it.&lt;br /&gt;
** At the time of writing this, the newest numbered version of Wine-Crossover is &amp;lt;code&amp;gt;Wine-Crossover-Wine-22.1.0&amp;lt;/code&amp;gt;&lt;br /&gt;
* Press the folder icon that appears after installing it to open the directory containing Heroic's Wine installations.&lt;br /&gt;
* Right-click on the version of Wine you just installed and press &amp;quot;Show Package Contents&amp;quot;.&lt;br /&gt;
* Open this directory in the Terminal.&lt;br /&gt;
** If you have &amp;quot;OpenInTerminal&amp;quot; this is one button, otherwise press &amp;quot;Show Path Bar&amp;quot; and navigate where it says with &amp;quot;cd&amp;quot;.&lt;br /&gt;
** It should be something like &amp;lt;code&amp;gt;cd ~/Library/Application\ Support/heroic/tools/wine/Wine-crossover-wine-22.1.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
* &amp;lt;pre&amp;gt;cd Contents/MacOS&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Remove the existing Wine: &amp;lt;pre&amp;gt;rm wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Create a symlink to Game Porting Toolkit's Wine: &lt;br /&gt;
** If using Game Porting Toolkit Wineprefix: &amp;lt;pre&amp;gt;ln -s `/usr/local/bin/brew --prefix game-porting-toolkit`/bin/wine64 wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
** If using Whisky: &amp;lt;pre&amp;gt;ln -s /Applications/Whisky.app/Contents/Resources/Libraries/Wine/bin/wine64 wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
* &amp;lt;pre&amp;gt;cd ../Resources&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Remove the existing Wine: &amp;lt;pre&amp;gt;rm -rfv wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Create a symlink to Game Porting Toolkit's Wine&lt;br /&gt;
** If using Game Porting Toolkit Wineprefix: &amp;lt;pre&amp;gt;ln -s `/usr/local/bin/brew --prefix game-porting-toolkit` wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
** If using Whisky: &amp;lt;pre&amp;gt;ln -s /Applications/Whisky.app/Contents/Resources/Libraries/Wine wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
* We are now done with Terminal. Install any games you want to try playing.&lt;br /&gt;
* Select the game you want to play, and press the settings button in the top-right.&lt;br /&gt;
* Make sure the version of Wine you just downloaded and modified is selected.&lt;br /&gt;
* Make sure your Game Porting Toolkit Wine Prefix is selected. If you followed Apple's guide this is &amp;lt;code&amp;gt;/Users/you/my-game-prefix&amp;lt;/code&amp;gt;.&lt;br /&gt;
* If you Open the &amp;quot;Other&amp;quot; section you can also add any environment variables you want like &amp;lt;code&amp;gt;WINEESYNC=1&amp;quot;&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;&amp;quot;MTL_HUD_ENABLED=1&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
* Close the settings and try running the game.&lt;br /&gt;
&lt;br /&gt;
== Commands ==&lt;br /&gt;
Installing individual exe games: open your Wine prefix’s virtual C: drive in Finder (open ~/my-game-prefix/drive_c) and copy your game into an appropriate subdirectory.&lt;br /&gt;
&lt;br /&gt;
'''A. Standard launching'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix 'C:\Program Files (x86)\Steam\steam.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This launches the given Windows game binary with a visible extended Metal Performance HUD and filters logging to output from the Game Porting Toolkit.&lt;br /&gt;
&lt;br /&gt;
'''B. Launching without a HUD'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit-no-hud ~/my-game-prefix 'C:\Program Files (x86)\Steam\steam.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''C. Launching with Wine ESYNC disabled'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit-no-esync ~/my-game-prefix 'C:\Program Files (x86)\Steam\steam.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To enter Winecfg:&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix winecfg&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Shortcut ==&lt;br /&gt;
{{Image|Game Porting Toolkit Steam icon.png|Made by user Omsier.|150px}}&lt;br /&gt;
You can make a shortcut for Steam for example by using macOS built-in Automator app.&lt;br /&gt;
*Open Automator.&lt;br /&gt;
*Select New Application.&lt;br /&gt;
*In the 2nd column select Run Shell Script.&lt;br /&gt;
*Copy and paste this code into the box:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/zsh&lt;br /&gt;
&lt;br /&gt;
export PATH=&amp;quot;/usr/local/bin:${PATH}&amp;quot;&lt;br /&gt;
&lt;br /&gt;
arch -x86_64 gameportingtoolkit ~/my-game-prefix 'C:\Program Files (x86)\Steam\steam.exe'&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the shortcut somewhere e.g. Applications.&lt;br /&gt;
*Above shortcut can be customised to any Wineprefix or game.&lt;br /&gt;
*Add an icon by selecting the shortcut, pressing {{key|cmd|I}} to Get Info, then dragging and dropping a PNG file onto the top left of the window.&lt;br /&gt;
&lt;br /&gt;
== Logging ==&lt;br /&gt;
The provided bin/gameportingtoolkit* scripts can be copied onto your path to facilitate different forms of logging and launching. You can run these scripts from any shell; you don’t need to switch to the Rosetta environment first.&lt;br /&gt;
&lt;br /&gt;
Logging output will appear in the Terminal window in which you launch your game as well as the system log, which can be viewed with the Console app found in Applications ▸ Utilities. Log messages from the Game Porting Toolkit are prefixed with D3DM. By default the gameportingtoolkit* scripts will filter to just the D3DM-prefixed messages.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
{{Image|GPTK Steam black screen.png|Steam login black screen issue.}}&lt;br /&gt;
'''Steam login black screen'''&lt;br /&gt;
&lt;br /&gt;
Close the Terminal window and then reopen and retry the command, repeat several times.&lt;br /&gt;
&lt;br /&gt;
Alternate way of launching Steam (after installing):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
MTL_HUD_ENABLED=1 WINEESYNC=1 WINEPREFIX=~/my-game-prefix /usr/local/Cellar/game-porting-toolkit/1.0/bin/wine64 'C:\Program Files (x86)/Steam/steam.exe'&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If still not working then try using [[CrossOver]] and create a Steam bottle, then login, then redirect this WINEPREFIX to that bottle:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=&amp;quot;/Users/[username]/Library/Application Support/CrossOver/Bottles/Steam/&amp;quot; &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Steam crashes straight after opening'''&lt;br /&gt;
&lt;br /&gt;
Disconnect any external monitors.&lt;br /&gt;
&lt;br /&gt;
'''Battle.net launcher won't re-launch'''&lt;br /&gt;
&lt;br /&gt;
Re-install the launcher to reopen, no other fix at the moment.&lt;br /&gt;
&lt;br /&gt;
'''My game won’t run because it thinks the version of Windows is too old. Some games detect specific minimum versions of Windows and need to be updated.''' Use this script to update your wineprefix with build 19042 which should work for most games e.g. Spider-Man Remastered.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion' /v CurrentBuild /t REG_SZ /d 19042 /f&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion' /v CurrentBuildNumber /t REG_SZ /d 19042 /f&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wineserver -k&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''steamwebhelper.exe crashes'''&lt;br /&gt;
&lt;br /&gt;
This is caused by Steam being run through macOS Ventura or below, most users should upgrade to macOS Sonoma. You can use the CrossOver workaround to login to Steam but you'll experience constant crashing.&lt;br /&gt;
&lt;br /&gt;
'''My game won't run and crashes with an invalid instruction'''&lt;br /&gt;
&lt;br /&gt;
AVX and AVX2 games are not supported by Apple's arm64 chipset.&lt;br /&gt;
&lt;br /&gt;
'''My game won't run because its anti-cheat or DRM software is incompatible with Wine translation.'''&lt;br /&gt;
&lt;br /&gt;
Likely there will be no fixes for any games that use anti-cheat, e.g. Easy Anti Cheat. Some games have workarounds e.g. Elden Ring. Other games that use say Denuvo may also be incompatible until that DRM is removed by the game's developer.&lt;br /&gt;
&lt;br /&gt;
'''My game won’t run because it requires Mono, .NET, or the MSVCRT runtime.'''&lt;br /&gt;
&lt;br /&gt;
The game porting toolkit’s evaluation environment does not pre-install these runtime support packages. If your game makes use of one of these packages, consider searching for and downloading appropriate installers (.exe or .msi) and installing them to your evaluation environment. Additional runtime installers can be run on your environment by just launching the installer and following its installation instructions:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 &amp;lt;some-installer.exe&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
And .MSI packages can be installed by launching the Windows uninstaller application and choosing to install a downloaded .msi package:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 uninstaller&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Controller issues'''&lt;br /&gt;
&lt;br /&gt;
Issues may be fixed by enrolling into the Steam beta.&lt;br /&gt;
&lt;br /&gt;
'''My game looks pixelated and the display resolution is limited'''&lt;br /&gt;
&lt;br /&gt;
Enable Retina (high resolution) mode:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_CURRENT_USER\Software\Wine\Mac Driver' /v RetinaMode /t REG_SZ /d 'Y' /f&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Some games will not run with Retina mode enabled. To disable it:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_CURRENT_USER\Software\Wine\Mac Driver' /v RetinaMode /t REG_SZ /d 'N' /f&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Game compatibility list ==&lt;br /&gt;
Working games:&lt;br /&gt;
* Astroneer&lt;br /&gt;
* Bloodstained: Ritual of the Night&lt;br /&gt;
* Geshin Impact 3.7 (m2max with 4k 60fps stable) &lt;br /&gt;
* Control (DX12 mode, if downloaded from Heroic, needs to be ran by Terminal)&lt;br /&gt;
* Crysis Remastered&lt;br /&gt;
* Cuphead&lt;br /&gt;
* Cyberpunk 2077&lt;br /&gt;
* Deep Rock Galactic&lt;br /&gt;
* Deceive Inc. - works well if launched without EAC&lt;br /&gt;
* Derail Valley (awesome performance, no missing manuals - in-game objects for train operation - like on CrossOver)&lt;br /&gt;
* Diablo IV [https://www.reddit.com/r/macgaming/comments/14307be/comment/jn7dxzo/?utm_source=reddit&amp;amp;utm_medium=web2x&amp;amp;context=3 ]&lt;br /&gt;
* Dyson Sphere Program (some objects and main character weren't visible before)&lt;br /&gt;
* Elden Ring&lt;br /&gt;
* Final Fantasy VII Remake Intergrade (~50 FPS on High settings at 1080p with M1 Pro)&lt;br /&gt;
* Friends vs. Friends&lt;br /&gt;
* God of War (Works somewhat well on M1 Pro (16gb), wouldn't recommend lesser hardware.)&lt;br /&gt;
* Going Medieval&lt;br /&gt;
* Guilty Gear Strive&lt;br /&gt;
* Grand Theft Auto V&lt;br /&gt;
* Halo 3 (MCC - No Online due to Easy Anti-Cheat Compatibility) [https://www.reddit.com/r/macgaming/comments/143zoos/halo_3_mcc_no_online_eac_m1_pro_game_porting/]&lt;br /&gt;
* Halo Reach (MCC) &lt;br /&gt;
* HI-Fi RUSH&lt;br /&gt;
* Hogwarts Legacy - launches fine first time but then won't relaunch - can be fixed by deleting ~/my-game-prefix/drive_c/ProgramData/Hogwarts Legacy - these are the files that are created at first launch that prevent relaunching&lt;br /&gt;
* Hatsune Miku: Project DIVA Mega Mix+ - works with Retina mode; DivaModLoader and DivaNoSpy recommended; run Steam with WINEDEBUG=-all WINEESYNC=0 WINEDLLOVERRIDES=&amp;quot;dinput8.dll=n,b&amp;quot;; may randomly crash at the title screen (just restart and try again until it works)&lt;br /&gt;
* Kena: Bridge of Spirits&lt;br /&gt;
* Metal Gear Solid V: The Phantom Pain&lt;br /&gt;
* Overwatch 2&lt;br /&gt;
* QUBE 2&lt;br /&gt;
* People Playground&lt;br /&gt;
* Risk of Rain 2 (does not require `-disable-gpu-skinning` like Crossover 22)&lt;br /&gt;
* Scarlet Nexus&lt;br /&gt;
* Sonic Omens&lt;br /&gt;
* Sonic P-06&lt;br /&gt;
* Spider-Man (2018)&lt;br /&gt;
* Spider-Man Miles Morales - ''requires Windows ver fix''&lt;br /&gt;
* SpongeBob SquarePants: The Cosmic Shake&lt;br /&gt;
* StarCraft: Remastered - Game runs fine but opening Option menu the second time will cause game not recognizing any inputs.&lt;br /&gt;
* Tetris Effect: Connected - Game window likes to be uncooperative; really doesn't like retina mode, works otherwise&lt;br /&gt;
* V Rising&lt;br /&gt;
* Warframe - ''To get installer/launcher working add dwrite (disabled) to library overrides in winecfg''&lt;br /&gt;
&lt;br /&gt;
Not working well:&lt;br /&gt;
* Horizon Zero Dawn - slowdown issues&lt;br /&gt;
* Genshin Impact - Launches, but stuck when calling menu using esc&lt;br /&gt;
* Slime Rancher 2 - Launches, but can't into game from main menu&lt;br /&gt;
&lt;br /&gt;
Not working yet:&lt;br /&gt;
* Apex (it will stuck because of anti-cheat)&lt;br /&gt;
* Any games that use the EA Launcher&lt;br /&gt;
** Need for Speed Heat&lt;br /&gt;
** Need for Speed Unbound&lt;br /&gt;
** Tom Clancy's The Division 2&lt;br /&gt;
* Among Us&lt;br /&gt;
* Company of Heroes 3&lt;br /&gt;
* F1 21 - Crash on launch&lt;br /&gt;
* F1 22 - Crash on launch (  &amp;quot;Exception&amp;quot;: &amp;quot;C0000005 EXCEPTION_ACCESS_VIOLATION at 0000000141bd8687&amp;quot;)&lt;br /&gt;
* Halo Infinite - Crash on launch&lt;br /&gt;
* Hitman 3 - launcher works, crash at 0x0000014136dddd hitman3+0x136dddd: int $3&lt;br /&gt;
* Microsoft Flight Simulator 2020 (Steam) - Crash on launch&lt;br /&gt;
* Monster Hunter Rise - DX12 Game, it launches but window goes dark after compiling shaders.&lt;br /&gt;
* Monster Hunter World - Black Screen on Launch&lt;br /&gt;
* New World - Game loaded but couldn't connect to server due to Easy Anti Cheat&lt;br /&gt;
* Red Dead Redemption 2&lt;br /&gt;
* Rogue Company - anti-cheat conflict.&lt;br /&gt;
* Sea of Thieves - Launches, but the prompt to sign into an xbox live account appears blank and cannot&lt;br /&gt;
* SpongeBob Squarepants: Battle for Bikini Bottom Rehydrated - Crashes when loading &lt;br /&gt;
* Teardown - When trying to launch, gives a error, &amp;quot;The program teardown.exe has encountered a serious problem and needs to close. We are sorry for the inconvenience.&amp;quot;&lt;br /&gt;
* theHunter: Call of the Wild - Crash on launch (Unhandled exception: page fault on read access to 0x0000000000000000 in 64-bit code (0x00000140b227f8))&lt;br /&gt;
* Many (all?) DX9 games&lt;br /&gt;
** 30XX - &amp;quot;Failed to create D3D device&amp;quot; -&amp;gt; crash on launch; this is a rare 64-bit DX9 game&lt;br /&gt;
** Black Mesa - Starts to load to main menu at first but then crashes&lt;br /&gt;
** Killing Floor 1 - Crash on launch&lt;br /&gt;
** Left 4 Dead 2 - Black screen -&amp;gt; crash on launch&lt;br /&gt;
** Mega Man Zero/ZX Legacy Collection - &amp;quot;Failed to create d3d9 device&amp;quot; -&amp;gt; crash on launch&lt;br /&gt;
** Sonic Mania - Crash on launch&lt;br /&gt;
** StarCraft II -&amp;gt; &amp;quot;Failed to initialize DirectX&amp;quot; error&lt;br /&gt;
** Star Wars: The Old Republic&lt;br /&gt;
** Battlefield 2 - DirectX installation failed, won't launch, see the [https://gist.github.com/chrismwendt/1d01a306cdc8618a06bdfb555743e25c error log]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{References}}&lt;/div&gt;</summary>
		<author><name>Andytizer</name></author>
	</entry>
	<entry>
		<id>https://www.applegamingwiki.com/w/index.php?title=Game_Porting_Toolkit&amp;diff=7665</id>
		<title>Game Porting Toolkit</title>
		<link rel="alternate" type="text/html" href="https://www.applegamingwiki.com/w/index.php?title=Game_Porting_Toolkit&amp;diff=7665"/>
		<updated>2023-06-09T20:55:43Z</updated>

		<summary type="html">&lt;p&gt;Andytizer: /* Game compatibility list */ Hogwarts legacy fix&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Image|Game Porting Toolkit.png|Released 6th June, 2023 at WWDC23.}}&lt;br /&gt;
&lt;br /&gt;
Game Porting Toolkit is Apple's new translation layer released on 6th June, 2023. Game Porting Toolkit ('''GPT''') combines Wine with Apple's own D3DMetal which supports DirectX 11 and 12&amp;lt;ref&amp;gt;{{Refurl|url=https://mastodon.gamedev.place/@gavkar/110501451404624870|title=Gokhan Avkarogullari: &amp;quot;@yiningkarlli @aras @romainguy…&amp;quot; - Gamedev Mastodon}}&amp;lt;/ref&amp;gt;. This is less user-friendly method of installing Windows games on Apple Silicon Macs compared to [[CrossOver]] or [[Parallels]], however it unlocks the ability to play many DirectX 12 games. A lot more games work using GPTK, however, games that use anti-cheat or aggressive DRMs generally don't work, along with games that require AVX/AVX 2, e.g. The Last of Us Part I.&lt;br /&gt;
&lt;br /&gt;
== Toolkit install instructions ==&lt;br /&gt;
=== Requirements ===&lt;br /&gt;
*macOS Sonoma should be used, currently it is in beta. You can download the pkg installer from [https://mrmacintosh.com/macos-sonoma-full-installer-database-download-directly-from-apple/ Mr Macintosh blog].&lt;br /&gt;
*macOS Ventura causes large numbers of issues with steamwebhelper.exe crashing so it isn't recommended, use the macOS Sonoma beta.&lt;br /&gt;
*Visit [https://developer.apple.com/downloads Apple Developer Downloads site], these files are now free to download use for any logged in Apple account.&lt;br /&gt;
**Search for Command Line Tools for Xcode 15 beta and download the dmg file, then install it. *If you have an old version Xcode installed, remove it.&lt;br /&gt;
**Search for Game Porting Toolkit and download it. Open the dmg file and then run the pkg.&lt;br /&gt;
&lt;br /&gt;
=== Homebrew ===&lt;br /&gt;
Note: if you have ever installed Homebrew before, then it is advised to remove ARM64 Homebrew as this can interfere with this build process. Either use a Homebrew uninstall script or delete the folder &amp;lt;code&amp;gt;/opt/homebrew/bin&amp;lt;/code&amp;gt;. If you prefer to keep both ARM64 and x86 versions of brew installed, you may add a &amp;quot;brew-switcher&amp;quot; to your &amp;lt;code&amp;gt;.zshrc&amp;lt;/code&amp;gt; file to allow either version to be used depending on the active architecture. You may follow the steps at the end of this section after installing Brew to achieve this.&lt;br /&gt;
&lt;br /&gt;
Open Terminal (search in Spotlight on macOS).&lt;br /&gt;
&lt;br /&gt;
Install Rosetta:&lt;br /&gt;
&amp;lt;pre&amp;gt;softwareupdate --install-rosetta&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Enter an x86_64 shell to continue the following steps in a Rosetta environment. All subsequent commands should be run within this shell.&lt;br /&gt;
&amp;lt;pre&amp;gt;arch -x86_64 zsh&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Install the x86_64 version of Homebrew if you don't already have it.&lt;br /&gt;
&amp;lt;pre&amp;gt;/bin/bash -c &amp;quot;$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)&amp;quot;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Make sure the brew command is on your path:&lt;br /&gt;
&amp;lt;pre&amp;gt;which brew&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If this command does not print &amp;lt;code&amp;gt;/usr/local/bin/brew&amp;lt;/code&amp;gt;, you should use this command:&lt;br /&gt;
&amp;lt;pre&amp;gt;export PATH=/usr/local/bin:${PATH}&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Fixbox|description=Optionally retain both ARM64 and x86 versions of Brew|ref=|collapsed=yes|fix=&lt;br /&gt;
(Optional) If you want to have both ARM64 and x86 versions of Brew installed, begin by editing your &amp;lt;code&amp;gt;.zshrc&amp;lt;/code&amp;gt; file:&lt;br /&gt;
&amp;lt;pre&amp;gt;nano ~/.zshrc&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Scroll down (by using the arrow keys or Control + V) to the bottom of the file, and paste the following script:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
if [ &amp;quot;$(arch)&amp;quot; = &amp;quot;arm64&amp;quot; ]; then&lt;br /&gt;
    eval &amp;quot;$(/opt/homebrew/bin/brew shellenv)&amp;quot;&lt;br /&gt;
else&lt;br /&gt;
    eval &amp;quot;$(/usr/local/bin/brew shellenv)&amp;quot;&lt;br /&gt;
fi&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You may now restart your terminal and use the following command to return to an x86_64 shell:&lt;br /&gt;
&amp;lt;pre&amp;gt;arch -x86_64 zsh&amp;lt;/pre&amp;gt;&lt;br /&gt;
Your shell will now select the right installation of Brew, depending on your architecture.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=== Build ===&lt;br /&gt;
Run this command to download Apple tap:&lt;br /&gt;
&amp;lt;pre&amp;gt;brew tap apple/apple http://github.com/apple/homebrew-apple&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Install the game-porting-toolkit formula. This formula downloads and compiles several large software projects. How long this takes will depend on the speed of your computer. It can take over 1 hour to complete depending on the speed of your Mac.&lt;br /&gt;
&amp;lt;pre&amp;gt;brew -v install apple/apple/game-porting-toolkit&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If during installation you see an error such as '''“Error: game-porting-toolkit: unknown or unsupported macOS version: :dunno”, your version of Homebrew doesn’t have macOS Sonoma support. Update to the latest version of Homebrew and try again.'''&lt;br /&gt;
&amp;lt;pre&amp;gt;brew update brew -v install apple/apple/game-porting-toolkit&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Preparing the toolkit ===&lt;br /&gt;
Make sure the Game Porting Toolkit dmg downloaded earlier is mounted at /Volumes/Game Porting Toolkit-1.0. Use this script to copy the Game Porting Toolkit library directory into Wine’s library directory.&lt;br /&gt;
&amp;lt;pre&amp;gt;ditto /Volumes/Game\ Porting\ Toolkit-1.0/lib/ `brew --prefix game-porting-toolkit`/lib/&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Put the 3 scripts from the Game Porting Toolkit DMG into here &amp;lt;code&amp;gt;/usr/local/bin&amp;lt;/code&amp;gt; using this command:&lt;br /&gt;
&amp;lt;pre&amp;gt;cp /Volumes/Game\ Porting\ Toolkit*/gameportingtoolkit* /usr/local/bin&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Wine prefix ===&lt;br /&gt;
A Wine prefix contains a virtual C: drive, similar to a Bottle in [[CrossOver]]. You will install the toolkit and your game into this virtual C: drive. Run the following command to create a new Wine prefix named my-game-prefix in your home directory. This will create a Wine prefix called &amp;lt;code&amp;gt;my-game-prefix&amp;lt;/code&amp;gt; but could be renamed to anything.&lt;br /&gt;
&amp;lt;pre&amp;gt;WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 winecfg&amp;lt;/pre&amp;gt;&lt;br /&gt;
*A “Wine configuration” window should appear on your screen.&lt;br /&gt;
*Change the version of Windows to Windows 10.&lt;br /&gt;
*Choose Apply and then OK to exit winecfg.&lt;br /&gt;
&lt;br /&gt;
If the “Wine configuration” window does not appear, and no new icon appears in the Dock, verify that you have correctly installed the x86_64 version of Homebrew as well as the game-porting-toolkit formula.&lt;br /&gt;
&lt;br /&gt;
Now you are ready to install a launcher or individual Windows games into this Wine prefix, see below.&lt;br /&gt;
&lt;br /&gt;
== Steam ==&lt;br /&gt;
Download the [https://cdn.cloudflare.steamstatic.com/client/installer/SteamSetup.exe Windows version of Steam] and place in your Downloads folder.&lt;br /&gt;
&lt;br /&gt;
'''Install Steam'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix ~/Downloads/SteamSetup.exe&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Run Steam'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix 'C:\Program Files (x86)/Steam/steam.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Log into Steam'''&lt;br /&gt;
&lt;br /&gt;
A common issue is that Steam will present with a blank black window.&lt;br /&gt;
&lt;br /&gt;
Alternate way of launching Steam (after installing):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
MTL_HUD_ENABLED=1 WINEESYNC=1 WINEPREFIX=~/my-game-prefix /usr/local/Cellar/game-porting-toolkit/1.0/bin/wine64 'C:\Program Files (x86)\Steam\steam.exe'&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If this continues then close the Terminal window and then re-open and try again, repeat until the login screen opens. Now you should be able to download and launch Windows games through Steam.&lt;br /&gt;
&lt;br /&gt;
== Battle.net ==&lt;br /&gt;
Download the [https://download.battle.net/en-gb/?platform=windows Windows version of Battle.net] and place in your Downloads folder.&lt;br /&gt;
&lt;br /&gt;
Make a new Wineprefix for Battle.net, you can choose to use &amp;lt;code&amp;gt;my-game-prefix&amp;lt;/code&amp;gt; or change this to anything else.&lt;br /&gt;
&amp;lt;pre&amp;gt;WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 winecfg&amp;lt;/pre&amp;gt;&lt;br /&gt;
*A “Wine configuration” window should appear on your screen.&lt;br /&gt;
*Change the version of Windows to &amp;lt;code&amp;gt;Windows 10&amp;lt;/code&amp;gt;.&lt;br /&gt;
*Choose Apply and then OK to exit winecfg.&lt;br /&gt;
&lt;br /&gt;
If you are running Diablo IV, then you need to run this script to update the Wineprefix to appear as a more recent version of Windows:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion' /v CurrentBuild /t REG_SZ /d 19042 /f&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion' /v CurrentBuildNumber /t REG_SZ /d 19042 /f&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wineserver -k&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Run Battle.net launcher'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix ~/Downloads/Battle.net-Setup.exe&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Be aware that there is an issue launching Battle.net once installed, the only current way to re-login is to 'install' the launcher again. &lt;br /&gt;
&lt;br /&gt;
Start individual game without the launcher using this command:&lt;br /&gt;
&amp;lt;pre&amp;gt;arch -x86_64 gameportingtoolkit-no-hud ~/my-game-prefix 'C:\Program Files (x86)\Diablo IV\Diablo IV Launcher.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Epic and GOG.com support with the Heroic Games Launcher ==&lt;br /&gt;
This is particularly useful because '''as it currently stands, the real Epic Games Launcher fails to install under the Game Porting Toolkit'''. Heroic supports Epic and GOG.com games.&lt;br /&gt;
&lt;br /&gt;
* Install the [https://github.com/Heroic-Games-Launcher/HeroicGamesLauncher/releases native macOS Heroic Games Launcher] or from Homebrew.&lt;br /&gt;
* Open Heroic, and log into your Epic Games and/or GOG.com account.&lt;br /&gt;
* Go to the &amp;quot;Wine Manager&amp;quot; and install a '''numbered''' version of Wine, such that it won't auto update- we are going to modify it.&lt;br /&gt;
** At the time of writing this, the newest numbered version of Wine-Crossover is &amp;lt;code&amp;gt;Wine-Crossover-Wine-22.1.0&amp;lt;/code&amp;gt;&lt;br /&gt;
* Press the folder icon that appears after installing it to open the directory containing Heroic's Wine installations.&lt;br /&gt;
* Right-click on the version of Wine you just installed and press &amp;quot;Show Package Contents&amp;quot;.&lt;br /&gt;
* Open this directory in the Terminal.&lt;br /&gt;
** If you have &amp;quot;OpenInTerminal&amp;quot; this is one button, otherwise press &amp;quot;Show Path Bar&amp;quot; and navigate where it says with &amp;quot;cd&amp;quot;.&lt;br /&gt;
** It should be something like &amp;lt;code&amp;gt;cd ~/Library/Application\ Support/heroic/tools/wine/Wine-crossover-wine-22.1.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
* &amp;lt;pre&amp;gt;cd Contents/MacOS&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Remove the existing Wine: &amp;lt;pre&amp;gt;rm wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Create a symlink to Game Porting Toolkit's Wine: &lt;br /&gt;
** If using Game Porting Toolkit Wineprefix: &amp;lt;pre&amp;gt;ln -s `/usr/local/bin/brew --prefix game-porting-toolkit`/bin/wine64 wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
** If using Whisky: &amp;lt;pre&amp;gt;ln -s /Applications/Whisky.app/Contents/Resources/Libraries/Wine/bin/wine64 wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
* &amp;lt;pre&amp;gt;cd ../Resources&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Remove the existing Wine: &amp;lt;pre&amp;gt;rm -rfv wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Create a symlink to Game Porting Toolkit's Wine&lt;br /&gt;
** If using Game Porting Toolkit Wineprefix: &amp;lt;pre&amp;gt;ln -s `/usr/local/bin/brew --prefix game-porting-toolkit` wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
** If using Whisky: &amp;lt;pre&amp;gt;ln -s /Applications/Whisky.app/Contents/Resources/Libraries/Wine wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
* We are now done with Terminal. Install any games you want to try playing.&lt;br /&gt;
* Select the game you want to play, and press the settings button in the top-right.&lt;br /&gt;
* Make sure the version of Wine you just downloaded and modified is selected.&lt;br /&gt;
* Make sure your Game Porting Toolkit Wine Prefix is selected. If you followed Apple's guide this is &amp;lt;code&amp;gt;/Users/you/my-game-prefix&amp;lt;/code&amp;gt;.&lt;br /&gt;
* If you Open the &amp;quot;Other&amp;quot; section you can also add any environment variables you want like &amp;lt;code&amp;gt;WINEESYNC=1&amp;quot;&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;&amp;quot;MTL_HUD_ENABLED=1&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
* Close the settings and try running the game.&lt;br /&gt;
&lt;br /&gt;
== Commands ==&lt;br /&gt;
Installing individual exe games: open your Wine prefix’s virtual C: drive in Finder (open ~/my-game-prefix/drive_c) and copy your game into an appropriate subdirectory.&lt;br /&gt;
&lt;br /&gt;
'''A. Standard launching'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix 'C:\Program Files (x86)\Steam\steam.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This launches the given Windows game binary with a visible extended Metal Performance HUD and filters logging to output from the Game Porting Toolkit.&lt;br /&gt;
&lt;br /&gt;
'''B. Launching without a HUD'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit-no-hud ~/my-game-prefix 'C:\Program Files (x86)\Steam\steam.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''C. Launching with Wine ESYNC disabled'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit-no-esync ~/my-game-prefix 'C:\Program Files (x86)\Steam\steam.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To enter Winecfg:&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix winecfg&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Shortcut ==&lt;br /&gt;
{{Image|Game Porting Toolkit Steam icon.png|Made by user Omsier.|150px}}&lt;br /&gt;
You can make a shortcut for Steam for example by using macOS built-in Automator app.&lt;br /&gt;
*Open Automator.&lt;br /&gt;
*Select New Application.&lt;br /&gt;
*In the 2nd column select Run Shell Script.&lt;br /&gt;
*Copy and paste this code into the box:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/zsh&lt;br /&gt;
&lt;br /&gt;
export PATH=&amp;quot;/usr/local/bin:${PATH}&amp;quot;&lt;br /&gt;
&lt;br /&gt;
arch -x86_64 gameportingtoolkit ~/my-game-prefix 'C:\Program Files (x86)\Steam\steam.exe'&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the shortcut somewhere e.g. Applications.&lt;br /&gt;
*Above shortcut can be customised to any Wineprefix or game.&lt;br /&gt;
*Add an icon by selecting the shortcut, pressing {{key|cmd|I}} to Get Info, then dragging and dropping a PNG file onto the top left of the window.&lt;br /&gt;
&lt;br /&gt;
== Logging ==&lt;br /&gt;
The provided bin/gameportingtoolkit* scripts can be copied onto your path to facilitate different forms of logging and launching. You can run these scripts from any shell; you don’t need to switch to the Rosetta environment first.&lt;br /&gt;
&lt;br /&gt;
Logging output will appear in the Terminal window in which you launch your game as well as the system log, which can be viewed with the Console app found in Applications ▸ Utilities. Log messages from the Game Porting Toolkit are prefixed with D3DM. By default the gameportingtoolkit* scripts will filter to just the D3DM-prefixed messages.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
{{Image|GPTK Steam black screen.png|Steam login black screen issue.}}&lt;br /&gt;
'''Steam login black screen'''&lt;br /&gt;
&lt;br /&gt;
Close the Terminal window and then reopen and retry the command, repeat several times.&lt;br /&gt;
&lt;br /&gt;
Alternate way of launching Steam (after installing):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
MTL_HUD_ENABLED=1 WINEESYNC=1 WINEPREFIX=&amp;lt;path to the Wine bottle you set up&amp;gt; /usr/local/Cellar/game-porting-toolkit/1.0/bin/wine64 'C:\Program Files (x86)/Steam/steam.exe'&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If still not working then try using [[CrossOver]] and create a Steam bottle, then login, then redirect this WINEPREFIX to that bottle:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=&amp;quot;/Users/[username]/Library/Application Support/CrossOver/Bottles/Steam/&amp;quot; &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Steam crashes straight after opening'''&lt;br /&gt;
&lt;br /&gt;
Disconnect any external monitors.&lt;br /&gt;
&lt;br /&gt;
'''Battle.net launcher won't re-launch'''&lt;br /&gt;
&lt;br /&gt;
Re-install the launcher to reopen, no other fix at the moment.&lt;br /&gt;
&lt;br /&gt;
'''My game won’t run because it thinks the version of Windows is too old. Some games detect specific minimum versions of Windows and need to be updated.''' Use this script to update your wineprefix with build 19042 which should work for most games e.g. Spider-Man Remastered.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion' /v CurrentBuild /t REG_SZ /d 19042 /f&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion' /v CurrentBuildNumber /t REG_SZ /d 19042 /f&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wineserver -k&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''steamwebhelper.exe crashes'''&lt;br /&gt;
&lt;br /&gt;
This is caused by Steam being run through macOS Ventura or below, most users should upgrade to macOS Sonoma. You can use the CrossOver workaround to login to Steam but you'll experience constant crashing.&lt;br /&gt;
&lt;br /&gt;
'''My game won't run and crashes with an invalid instruction'''&lt;br /&gt;
&lt;br /&gt;
AVX and AVX2 games are not supported by Apple's arm64 chipset.&lt;br /&gt;
&lt;br /&gt;
'''My game won't run because its anti-cheat or DRM software is incompatible with Wine translation.'''&lt;br /&gt;
&lt;br /&gt;
Likely there will be no fixes for any games that use anti-cheat, e.g. Easy Anti Cheat. Some games have workarounds e.g. Elden Ring. Other games that use say Denuvo may also be incompatible until that DRM is removed by the game's developer.&lt;br /&gt;
&lt;br /&gt;
'''My game won’t run because it requires Mono, .NET, or the MSVCRT runtime.'''&lt;br /&gt;
&lt;br /&gt;
The game porting toolkit’s evaluation environment does not pre-install these runtime support packages. If your game makes use of one of these packages, consider searching for and downloading appropriate installers (.exe or .msi) and installing them to your evaluation environment. Additional runtime installers can be run on your environment by just launching the installer and following its installation instructions:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 &amp;lt;some-installer.exe&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
And .MSI packages can be installed by launching the Windows uninstaller application and choosing to install a downloaded .msi package:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 uninstaller&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Controller issues'''&lt;br /&gt;
&lt;br /&gt;
Issues may be fixed by enrolling into the Steam beta.&lt;br /&gt;
&lt;br /&gt;
'''My game looks pixelated and the display resolution is limited'''&lt;br /&gt;
&lt;br /&gt;
Enable Retina (high resolution) mode:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_CURRENT_USER\Software\Wine\Mac Driver' /v RetinaMode /t REG_SZ /d 'Y' /f&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Some games will not run with Retina mode enabled. To disable it:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_CURRENT_USER\Software\Wine\Mac Driver' /v RetinaMode /t REG_SZ /d 'N' /f&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Game compatibility list ==&lt;br /&gt;
Working games:&lt;br /&gt;
* Astroneer&lt;br /&gt;
* Bloodstained: Ritual of the Night&lt;br /&gt;
* Geshin Impact 3.7 (m2max with 4k 60fps stable) &lt;br /&gt;
* Control (DX12 mode, if downloaded from Heroic, needs to be ran by Terminal)&lt;br /&gt;
* Crysis Remastered&lt;br /&gt;
* Cuphead&lt;br /&gt;
* Cyberpunk 2077&lt;br /&gt;
* Deep Rock Galactic&lt;br /&gt;
* Deceive Inc. - works well if launched without EAC&lt;br /&gt;
* Derail Valley (awesome performance, no missing manuals - in-game objects for train operation - like on CrossOver)&lt;br /&gt;
* Diablo IV [https://www.reddit.com/r/macgaming/comments/14307be/comment/jn7dxzo/?utm_source=reddit&amp;amp;utm_medium=web2x&amp;amp;context=3 ]&lt;br /&gt;
* Dyson Sphere Program (some objects and main character weren't visible before)&lt;br /&gt;
* Elden Ring&lt;br /&gt;
* Final Fantasy VII Remake Intergrade (~50 FPS on High settings at 1080p with M1 Pro)&lt;br /&gt;
* Friends vs. Friends&lt;br /&gt;
* God of War (Works somewhat well on M1 Pro (16gb), wouldn't recommend lesser hardware.)&lt;br /&gt;
* Going Medieval&lt;br /&gt;
* Guilty Gear Strive&lt;br /&gt;
* Grand Theft Auto V&lt;br /&gt;
* Halo 3 (MCC - No Online due to Easy Anti-Cheat Compatibility) [https://www.reddit.com/r/macgaming/comments/143zoos/halo_3_mcc_no_online_eac_m1_pro_game_porting/]&lt;br /&gt;
* Halo Reach (MCC) &lt;br /&gt;
* HI-Fi RUSH&lt;br /&gt;
* Hogwarts Legacy - launches fine first time but then won't relaunch - can be fixed by deleting ~/my-game-prefix/drive_c/ProgramData/Hogwarts Legacy - these are the files that are created at first launch that prevent relaunching&lt;br /&gt;
* Hatsune Miku: Project DIVA Mega Mix+ - works with Retina mode; DivaModLoader and DivaNoSpy recommended; run Steam with WINEDEBUG=-all WINEESYNC=0 WINEDLLOVERRIDES=&amp;quot;dinput8.dll=n,b&amp;quot;; may randomly crash at the title screen (just restart and try again until it works)&lt;br /&gt;
* Kena: Bridge of Spirits&lt;br /&gt;
* Metal Gear Solid V: The Phantom Pain&lt;br /&gt;
* Overwatch 2&lt;br /&gt;
* QUBE 2&lt;br /&gt;
* People Playground&lt;br /&gt;
* Risk of Rain 2 (does not require `-disable-gpu-skinning` like Crossover 22)&lt;br /&gt;
* Scarlet Nexus&lt;br /&gt;
* Sonic Omens&lt;br /&gt;
* Sonic P-06&lt;br /&gt;
* Spider-Man (2018)&lt;br /&gt;
* Spider-Man Miles Morales - ''requires Windows ver fix''&lt;br /&gt;
* SpongeBob SquarePants: The Cosmic Shake&lt;br /&gt;
* StarCraft: Remastered - Game runs fine but opening Option menu the second time will cause game not recognizing any inputs.&lt;br /&gt;
* Tetris Effect: Connected - Game window likes to be uncooperative; really doesn't like retina mode, works otherwise&lt;br /&gt;
* V Rising&lt;br /&gt;
* Warframe - ''To get installer/launcher working add dwrite (disabled) to library overrides in winecfg''&lt;br /&gt;
&lt;br /&gt;
Not working well:&lt;br /&gt;
* Horizon Zero Dawn - slowdown issues&lt;br /&gt;
* Genshin Impact - Launches, but stuck when calling menu using esc&lt;br /&gt;
* Slime Rancher 2 - Launches, but can't into game from main menu&lt;br /&gt;
&lt;br /&gt;
Not working yet:&lt;br /&gt;
* Apex (it will stuck because of anti-cheat)&lt;br /&gt;
* Any games that use the EA Launcher&lt;br /&gt;
** Need for Speed Heat&lt;br /&gt;
** Need for Speed Unbound&lt;br /&gt;
** Tom Clancy's The Division 2&lt;br /&gt;
* Among Us&lt;br /&gt;
* Company of Heroes 3&lt;br /&gt;
* F1 21 - Crash on launch&lt;br /&gt;
* F1 22 - Crash on launch (  &amp;quot;Exception&amp;quot;: &amp;quot;C0000005 EXCEPTION_ACCESS_VIOLATION at 0000000141bd8687&amp;quot;)&lt;br /&gt;
* Halo Infinite - Crash on launch&lt;br /&gt;
* Hitman 3 - launcher works, crash at 0x0000014136dddd hitman3+0x136dddd: int $3&lt;br /&gt;
* Microsoft Flight Simulator 2020 (Steam) - Crash on launch&lt;br /&gt;
* Monster Hunter Rise - DX12 Game, it launches but window goes dark after compiling shaders.&lt;br /&gt;
* Monster Hunter World - Black Screen on Launch&lt;br /&gt;
* New World - Game loaded but couldn't connect to server due to Easy Anti Cheat&lt;br /&gt;
* Red Dead Redemption 2&lt;br /&gt;
* Rogue Company - anti-cheat conflict.&lt;br /&gt;
* Sea of Thieves - Launches, but the prompt to sign into an xbox live account appears blank and cannot&lt;br /&gt;
* SpongeBob Squarepants: Battle for Bikini Bottom Rehydrated - Crashes when loading &lt;br /&gt;
* Teardown - When trying to launch, gives a error, &amp;quot;The program teardown.exe has encountered a serious problem and needs to close. We are sorry for the inconvenience.&amp;quot;&lt;br /&gt;
* theHunter: Call of the Wild - Crash on launch (Unhandled exception: page fault on read access to 0x0000000000000000 in 64-bit code (0x00000140b227f8))&lt;br /&gt;
* Many (all?) DX9 games&lt;br /&gt;
** 30XX - &amp;quot;Failed to create D3D device&amp;quot; -&amp;gt; crash on launch; this is a rare 64-bit DX9 game&lt;br /&gt;
** Black Mesa - Starts to load to main menu at first but then crashes&lt;br /&gt;
** Killing Floor 1 - Crash on launch&lt;br /&gt;
** Left 4 Dead 2 - Black screen -&amp;gt; crash on launch&lt;br /&gt;
** Mega Man Zero/ZX Legacy Collection - &amp;quot;Failed to create d3d9 device&amp;quot; -&amp;gt; crash on launch&lt;br /&gt;
** Sonic Mania - Crash on launch&lt;br /&gt;
** StarCraft II -&amp;gt; &amp;quot;Failed to initialize DirectX&amp;quot; error&lt;br /&gt;
** Star Wars: The Old Republic&lt;br /&gt;
** Battlefield 2 - DirectX installation failed, won't launch, see the [https://gist.github.com/chrismwendt/1d01a306cdc8618a06bdfb555743e25c error log]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{References}}&lt;/div&gt;</summary>
		<author><name>Andytizer</name></author>
	</entry>
	<entry>
		<id>https://www.applegamingwiki.com/w/index.php?title=Game_Porting_Toolkit&amp;diff=7663</id>
		<title>Game Porting Toolkit</title>
		<link rel="alternate" type="text/html" href="https://www.applegamingwiki.com/w/index.php?title=Game_Porting_Toolkit&amp;diff=7663"/>
		<updated>2023-06-09T13:35:51Z</updated>

		<summary type="html">&lt;p&gt;Andytizer: /* Battle.net */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Image|Game Porting Toolkit.png|Released 6th June, 2023 at WWDC23.}}&lt;br /&gt;
&lt;br /&gt;
Game Porting Toolkit is Apple's new translation layer released on 6th June, 2023. Game Porting Toolkit ('''GPT''') combines Wine with Apple's own D3DMetal which supports DirectX 11 and 12&amp;lt;ref&amp;gt;{{Refurl|url=https://mastodon.gamedev.place/@gavkar/110501451404624870|title=Gokhan Avkarogullari: &amp;quot;@yiningkarlli @aras @romainguy…&amp;quot; - Gamedev Mastodon}}&amp;lt;/ref&amp;gt;. This is less user-friendly method of installing Windows games on Apple Silicon Macs compared to [[CrossOver]] or [[Parallels]], however it unlocks the ability to play many DirectX 12 games. A lot more games work using GPTK, however, games that use anti-cheat or aggressive DRMs generally don't work, along with games that require AVX/AVX 2, e.g. The Last of Us Part I.&lt;br /&gt;
&lt;br /&gt;
== Toolkit install instructions ==&lt;br /&gt;
=== Requirements ===&lt;br /&gt;
*macOS Sonoma should be used, currently it is in beta. You can download the pkg installer from [https://mrmacintosh.com/macos-sonoma-full-installer-database-download-directly-from-apple/ Mr Macintosh blog].&lt;br /&gt;
*macOS Ventura causes large numbers of issues with steamwebhelper.exe crashing so it isn't recommended, use the macOS Sonoma beta.&lt;br /&gt;
*Visit [https://developer.apple.com/downloads Apple Developer Downloads site], these files are now free to download use for any logged in Apple account.&lt;br /&gt;
**Search for Command Line Tools for Xcode 15 beta and download the dmg file, then install it. *If you have an old version Xcode installed, remove it.&lt;br /&gt;
**Search for Game Porting Toolkit and download it. Open the dmg file and then run the pkg.&lt;br /&gt;
&lt;br /&gt;
=== Homebrew ===&lt;br /&gt;
Note: if you have ever installed Homebrew before, then it is advised to remove ARM64 Homebrew as this can interfere with this build process. Either use a Homebrew uninstall script or delete the folder &amp;lt;code&amp;gt;/opt/homebrew/bin&amp;lt;/code&amp;gt;. If you prefer to keep both ARM64 and x86 versions of brew installed, you may add a &amp;quot;brew-switcher&amp;quot; to your &amp;lt;code&amp;gt;.zshrc&amp;lt;/code&amp;gt; file to allow either version to be used depending on the active architecture. You may follow the steps at the end of this section after installing Brew to achieve this.&lt;br /&gt;
&lt;br /&gt;
Open Terminal (search in Spotlight on macOS).&lt;br /&gt;
&lt;br /&gt;
Install Rosetta:&lt;br /&gt;
&amp;lt;pre&amp;gt;softwareupdate --install-rosetta&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Enter an x86_64 shell to continue the following steps in a Rosetta environment. All subsequent commands should be run within this shell.&lt;br /&gt;
&amp;lt;pre&amp;gt;arch -x86_64 zsh&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Install the x86_64 version of Homebrew if you don't already have it.&lt;br /&gt;
&amp;lt;pre&amp;gt;/bin/bash -c &amp;quot;$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)&amp;quot;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Make sure the brew command is on your path:&lt;br /&gt;
&amp;lt;pre&amp;gt;which brew&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If this command does not print &amp;lt;code&amp;gt;/usr/local/bin/brew&amp;lt;/code&amp;gt;, you should use this command:&lt;br /&gt;
&amp;lt;pre&amp;gt;export PATH=/usr/local/bin:${PATH}&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Fixbox|description=Optionally retain both ARM64 and x86 versions of Brew|ref=|collapsed=yes|fix=&lt;br /&gt;
(Optional) If you want to have both ARM64 and x86 versions of Brew installed, begin by editing your &amp;lt;code&amp;gt;.zshrc&amp;lt;/code&amp;gt; file:&lt;br /&gt;
&amp;lt;pre&amp;gt;nano ~/.zshrc&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Scroll down (by using the arrow keys or Control + V) to the bottom of the file, and paste the following script:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
if [ &amp;quot;$(arch)&amp;quot; = &amp;quot;arm64&amp;quot; ]; then&lt;br /&gt;
    eval &amp;quot;$(/opt/homebrew/bin/brew shellenv)&amp;quot;&lt;br /&gt;
else&lt;br /&gt;
    eval &amp;quot;$(/usr/local/bin/brew shellenv)&amp;quot;&lt;br /&gt;
fi&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You may now restart your terminal and use the following command to return to an x86_64 shell:&lt;br /&gt;
&amp;lt;pre&amp;gt;arch -x86_64 zsh&amp;lt;/pre&amp;gt;&lt;br /&gt;
Your shell will now select the right installation of Brew, depending on your architecture.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=== Build ===&lt;br /&gt;
Run this command to download Apple tap:&lt;br /&gt;
&amp;lt;pre&amp;gt;brew tap apple/apple http://github.com/apple/homebrew-apple&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Install the game-porting-toolkit formula. This formula downloads and compiles several large software projects. How long this takes will depend on the speed of your computer. It can take over 1 hour to complete depending on the speed of your Mac.&lt;br /&gt;
&amp;lt;pre&amp;gt;brew -v install apple/apple/game-porting-toolkit&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If during installation you see an error such as '''“Error: game-porting-toolkit: unknown or unsupported macOS version: :dunno”, your version of Homebrew doesn’t have macOS Sonoma support. Update to the latest version of Homebrew and try again.'''&lt;br /&gt;
&amp;lt;pre&amp;gt;brew update brew -v install apple/apple/game-porting-toolkit&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Preparing the toolkit ===&lt;br /&gt;
Make sure the Game Porting Toolkit dmg downloaded earlier is mounted at /Volumes/Game Porting Toolkit-1.0. Use this script to copy the Game Porting Toolkit library directory into Wine’s library directory.&lt;br /&gt;
&amp;lt;pre&amp;gt;ditto /Volumes/Game\ Porting\ Toolkit-1.0/lib/ `brew --prefix game-porting-toolkit`/lib/&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Put the 3 scripts from the Game Porting Toolkit DMG into here &amp;lt;code&amp;gt;/usr/local/bin&amp;lt;/code&amp;gt; using this command:&lt;br /&gt;
&amp;lt;pre&amp;gt;cp /Volumes/Game\ Porting\ Toolkit*/gameportingtoolkit* /usr/local/bin&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Wine prefix ===&lt;br /&gt;
A Wine prefix contains a virtual C: drive, similar to a Bottle in [[CrossOver]]. You will install the toolkit and your game into this virtual C: drive. Run the following command to create a new Wine prefix named my-game-prefix in your home directory. This will create a Wine prefix called &amp;lt;code&amp;gt;my-game-prefix&amp;lt;/code&amp;gt; but could be renamed to anything.&lt;br /&gt;
&amp;lt;pre&amp;gt;WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 winecfg&amp;lt;/pre&amp;gt;&lt;br /&gt;
*A “Wine configuration” window should appear on your screen.&lt;br /&gt;
*Change the version of Windows to Windows 10.&lt;br /&gt;
*Choose Apply and then OK to exit winecfg.&lt;br /&gt;
&lt;br /&gt;
If the “Wine configuration” window does not appear, and no new icon appears in the Dock, verify that you have correctly installed the x86_64 version of Homebrew as well as the game-porting-toolkit formula.&lt;br /&gt;
&lt;br /&gt;
Now you are ready to install a launcher or individual Windows games into this Wine prefix, see below.&lt;br /&gt;
&lt;br /&gt;
== Steam ==&lt;br /&gt;
Download the [https://cdn.cloudflare.steamstatic.com/client/installer/SteamSetup.exe Windows version of Steam] and place in your Downloads folder.&lt;br /&gt;
&lt;br /&gt;
'''Install Steam'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix ~/Downloads/SteamSetup.exe&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Run Steam'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix 'C:\Program Files (x86)/Steam/steam.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Log into Steam'''&lt;br /&gt;
&lt;br /&gt;
A common issue is that Steam will present with a blank black window.&lt;br /&gt;
&lt;br /&gt;
Alternate way of launching Steam (after installing):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
MTL_HUD_ENABLED=1 WINEESYNC=1 WINEPREFIX=~/my-game-prefix /usr/local/Cellar/game-porting-toolkit/1.0/bin/wine64 'C:\Program Files (x86)\Steam\steam.exe'&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If this continues then close the Terminal window and then re-open and try again, repeat until the login screen opens. Now you should be able to download and launch Windows games through Steam.&lt;br /&gt;
&lt;br /&gt;
== Battle.net ==&lt;br /&gt;
Download the [https://download.battle.net/en-gb/?platform=windows Windows version of Battle.net] and place in your Downloads folder.&lt;br /&gt;
&lt;br /&gt;
Make a new Wineprefix for Battle.net, you can choose to use &amp;lt;code&amp;gt;my-game-prefix&amp;lt;/code&amp;gt; or change this to anything else.&lt;br /&gt;
&amp;lt;pre&amp;gt;WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 winecfg&amp;lt;/pre&amp;gt;&lt;br /&gt;
*A “Wine configuration” window should appear on your screen.&lt;br /&gt;
*Change the version of Windows to &amp;lt;code&amp;gt;Windows 10&amp;lt;/code&amp;gt;.&lt;br /&gt;
*Choose Apply and then OK to exit winecfg.&lt;br /&gt;
&lt;br /&gt;
If you are running Diablo IV, then you need to run this script to update the Wineprefix to appear as a more recent version of Windows:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion' /v CurrentBuild /t REG_SZ /d 19042 /f&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion' /v CurrentBuildNumber /t REG_SZ /d 19042 /f&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wineserver -k&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Run Battle.net launcher'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix ~/Downloads/Battle.net-Setup.exe&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Be aware that there is an issue launching Battle.net once installed, the only current way to re-login is to 'install' the launcher again. &lt;br /&gt;
&lt;br /&gt;
Start individual game without the launcher using this command:&lt;br /&gt;
&amp;lt;pre&amp;gt;arch -x86_64 gameportingtoolkit-no-hud ~/my-game-prefix 'C:\Program Files (x86)\Diablo IV\Diablo IV Launcher.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Epic and GOG.com support with the Heroic Games Launcher ==&lt;br /&gt;
This is particularly useful because '''as it currently stands, the real Epic Games Launcher fails to install under the Game Porting Toolkit'''. Heroic supports Epic and GOG.com games.&lt;br /&gt;
&lt;br /&gt;
* Install the [https://github.com/Heroic-Games-Launcher/HeroicGamesLauncher/releases native macOS Heroic Games Launcher] or from Homebrew.&lt;br /&gt;
* Open Heroic, and log into your Epic Games and/or GOG.com account.&lt;br /&gt;
* Go to the &amp;quot;Wine Manager&amp;quot; and install a '''numbered''' version of Wine, such that it won't auto update- we are going to modify it.&lt;br /&gt;
** At the time of writing this, the newest numbered version of Wine-Crossover is &amp;lt;code&amp;gt;Wine-Crossover-Wine-22.1.0&amp;lt;/code&amp;gt;&lt;br /&gt;
* Press the folder icon that appears after installing it to open the directory containing Heroic's Wine installations.&lt;br /&gt;
* Right-click on the version of Wine you just installed and press &amp;quot;Show Package Contents&amp;quot;.&lt;br /&gt;
* Open this directory in the Terminal.&lt;br /&gt;
** If you have &amp;quot;OpenInTerminal&amp;quot; this is one button, otherwise press &amp;quot;Show Path Bar&amp;quot; and navigate where it says with &amp;quot;cd&amp;quot;.&lt;br /&gt;
** It should be something like &amp;lt;code&amp;gt;cd ~/Library/Application\ Support/heroic/tools/wine/Wine-crossover-wine-22.1.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
* &amp;lt;pre&amp;gt;cd Contents/MacOS&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Remove the existing Wine: &amp;lt;pre&amp;gt;rm wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Create a symlink to Game Porting Toolkit's Wine: &lt;br /&gt;
** If using Game Porting Toolkit Wineprefix: &amp;lt;pre&amp;gt;ln -s `/usr/local/bin/brew --prefix game-porting-toolkit`/bin/wine64 wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
** If using Whisky: &amp;lt;pre&amp;gt;ln -s /Applications/Whisky.app/Contents/Resources/Libraries/Wine/bin/wine64 wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
* &amp;lt;pre&amp;gt;cd ../Resources&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Remove the existing Wine: &amp;lt;pre&amp;gt;rm -rfv wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Create a symlink to Game Porting Toolkit's Wine&lt;br /&gt;
** If using Game Porting Toolkit Wineprefix: &amp;lt;pre&amp;gt;ln -s `/usr/local/bin/brew --prefix game-porting-toolkit` wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
** If using Whisky: &amp;lt;pre&amp;gt;ln -s /Applications/Whisky.app/Contents/Resources/Libraries/Wine wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
* We are now done with Terminal. Install any games you want to try playing.&lt;br /&gt;
* Select the game you want to play, and press the settings button in the top-right.&lt;br /&gt;
* Make sure the version of Wine you just downloaded and modified is selected.&lt;br /&gt;
* Make sure your Game Porting Toolkit Wine Prefix is selected. If you followed Apple's guide this is &amp;lt;code&amp;gt;/Users/you/my-game-prefix&amp;lt;/code&amp;gt;.&lt;br /&gt;
* If you Open the &amp;quot;Other&amp;quot; section you can also add any environment variables you want like &amp;lt;code&amp;gt;WINEESYNC=1&amp;quot;&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;&amp;quot;MTL_HUD_ENABLED=1&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
* Close the settings and try running the game.&lt;br /&gt;
&lt;br /&gt;
== Commands ==&lt;br /&gt;
Installing individual exe games: open your Wine prefix’s virtual C: drive in Finder (open ~/my-game-prefix/drive_c) and copy your game into an appropriate subdirectory.&lt;br /&gt;
&lt;br /&gt;
'''A. Standard launching'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix 'C:\Program Files (x86)\Steam\steam.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This launches the given Windows game binary with a visible extended Metal Performance HUD and filters logging to output from the Game Porting Toolkit.&lt;br /&gt;
&lt;br /&gt;
'''B. Launching without a HUD'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit-no-hud ~/my-game-prefix 'C:\Program Files (x86)\Steam\steam.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''C. Launching with Wine ESYNC disabled'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit-no-esync ~/my-game-prefix 'C:\Program Files (x86)\Steam\steam.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To enter Winecfg:&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix winecfg&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Shortcut ==&lt;br /&gt;
{{Image|Game Porting Toolkit Steam icon.png|Made by user Omsier.|150px}}&lt;br /&gt;
You can make a shortcut for Steam for example by using macOS built-in Automator app.&lt;br /&gt;
*Open Automator.&lt;br /&gt;
*Select New Application.&lt;br /&gt;
*In the 2nd column select Run Shell Script.&lt;br /&gt;
*Copy and paste this code into the box:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/zsh&lt;br /&gt;
&lt;br /&gt;
export PATH=&amp;quot;/usr/local/bin:${PATH}&amp;quot;&lt;br /&gt;
&lt;br /&gt;
arch -x86_64 gameportingtoolkit ~/my-game-prefix 'C:\Program Files (x86)\Steam\steam.exe'&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the shortcut somewhere e.g. Applications.&lt;br /&gt;
*Above shortcut can be customised to any Wineprefix or game.&lt;br /&gt;
*Add an icon by selecting the shortcut, pressing {{key|cmd|I}} to Get Info, then dragging and dropping a PNG file onto the top left of the window.&lt;br /&gt;
&lt;br /&gt;
== Logging ==&lt;br /&gt;
The provided bin/gameportingtoolkit* scripts can be copied onto your path to facilitate different forms of logging and launching. You can run these scripts from any shell; you don’t need to switch to the Rosetta environment first.&lt;br /&gt;
&lt;br /&gt;
Logging output will appear in the Terminal window in which you launch your game as well as the system log, which can be viewed with the Console app found in Applications ▸ Utilities. Log messages from the Game Porting Toolkit are prefixed with D3DM. By default the gameportingtoolkit* scripts will filter to just the D3DM-prefixed messages.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
{{Image|GPTK Steam black screen.png|Steam login black screen issue.}}&lt;br /&gt;
'''Steam login black screen'''&lt;br /&gt;
&lt;br /&gt;
Close the Terminal window and then reopen and retry the command, repeat several times.&lt;br /&gt;
&lt;br /&gt;
Alternate way of launching Steam (after installing):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
MTL_HUD_ENABLED=1 WINEESYNC=1 WINEPREFIX=&amp;lt;path to the Wine bottle you set up&amp;gt; /usr/local/Cellar/game-porting-toolkit/1.0/bin/wine64 'C:\Program Files (x86)/Steam/steam.exe'&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If still not working then try using [[CrossOver]] and create a Steam bottle, then login, then redirect this WINEPREFIX to that bottle:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=&amp;quot;/Users/[username]/Library/Application Support/CrossOver/Bottles/Steam/&amp;quot; &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Steam crashes straight after opening'''&lt;br /&gt;
&lt;br /&gt;
Disconnect any external monitors.&lt;br /&gt;
&lt;br /&gt;
'''Battle.net launcher won't re-launch'''&lt;br /&gt;
&lt;br /&gt;
Re-install the launcher to reopen, no other fix at the moment.&lt;br /&gt;
&lt;br /&gt;
'''My game won’t run because it thinks the version of Windows is too old. Some games detect specific minimum versions of Windows and need to be updated.''' Use this script to update your wineprefix with build 19042 which should work for most games e.g. Spider-Man Remastered.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion' /v CurrentBuild /t REG_SZ /d 19042 /f&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion' /v CurrentBuildNumber /t REG_SZ /d 19042 /f&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wineserver -k&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''steamwebhelper.exe crashes'''&lt;br /&gt;
&lt;br /&gt;
This is caused by Steam being run through macOS Ventura or below, most users should upgrade to macOS Sonoma. You can use the CrossOver workaround to login to Steam but you'll experience constant crashing.&lt;br /&gt;
&lt;br /&gt;
'''My game won't run and crashes with an invalid instruction'''&lt;br /&gt;
&lt;br /&gt;
AVX and AVX2 games are not supported by Apple's arm64 chipset.&lt;br /&gt;
&lt;br /&gt;
'''My game won't run because its anti-cheat or DRM software is incompatible with Wine translation.'''&lt;br /&gt;
&lt;br /&gt;
Likely there will be no fixes for any games that use anti-cheat, e.g. Easy Anti Cheat. Some games have workarounds e.g. Elden Ring. Other games that use say Denuvo may also be incompatible until that DRM is removed by the game's developer.&lt;br /&gt;
&lt;br /&gt;
'''My game won’t run because it requires Mono, .NET, or the MSVCRT runtime.'''&lt;br /&gt;
&lt;br /&gt;
The game porting toolkit’s evaluation environment does not pre-install these runtime support packages. If your game makes use of one of these packages, consider searching for and downloading appropriate installers (.exe or .msi) and installing them to your evaluation environment. Additional runtime installers can be run on your environment by just launching the installer and following its installation instructions:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 &amp;lt;some-installer.exe&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
And .MSI packages can be installed by launching the Windows uninstaller application and choosing to install a downloaded .msi package:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 uninstaller&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Controller issues'''&lt;br /&gt;
&lt;br /&gt;
Issues may be fixed by enrolling into the Steam beta.&lt;br /&gt;
&lt;br /&gt;
'''My game looks pixelated and the display resolution is limited'''&lt;br /&gt;
&lt;br /&gt;
Enable Retina (high resolution) mode:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_CURRENT_USER\Software\Wine\Mac Driver' /v RetinaMode /t REG_SZ /d 'Y' /f&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Some games will not run with Retina mode enabled. To disable it:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_CURRENT_USER\Software\Wine\Mac Driver' /v RetinaMode /t REG_SZ /d 'N' /f&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Game compatibility list ==&lt;br /&gt;
Working games:&lt;br /&gt;
* Astroneer&lt;br /&gt;
* Bloodstained: Ritual of the Night&lt;br /&gt;
* Geshin Impact 3.7 (m2max with 4k 60fps stable) &lt;br /&gt;
* Control (DX12 mode, if downloaded from Heroic, needs to be ran by Terminal)&lt;br /&gt;
* Crysis Remastered&lt;br /&gt;
* Cuphead&lt;br /&gt;
* Cyberpunk 2077&lt;br /&gt;
* Deep Rock Galactic&lt;br /&gt;
* Deceive Inc. - works well if launched without EAC&lt;br /&gt;
* Derail Valley (awesome performance, no missing manuals - in-game objects for train operation - like on CrossOver)&lt;br /&gt;
* Diablo IV [https://www.reddit.com/r/macgaming/comments/14307be/comment/jn7dxzo/?utm_source=reddit&amp;amp;utm_medium=web2x&amp;amp;context=3 ]&lt;br /&gt;
* Dyson Sphere Program (some objects and main character weren't visible before)&lt;br /&gt;
* Elden Ring&lt;br /&gt;
* Final Fantasy VII Remake Intergrade (~50 FPS on High settings at 1080p with M1 Pro)&lt;br /&gt;
* Friends vs. Friends&lt;br /&gt;
* God of War (Works somewhat well on M1 Pro (16gb), wouldn't recommend lesser hardware.)&lt;br /&gt;
* Going Medieval&lt;br /&gt;
* Guilty Gear Strive&lt;br /&gt;
* Halo 3 (MCC - No Online due to Easy Anti-Cheat Compatibility) [https://www.reddit.com/r/macgaming/comments/143zoos/halo_3_mcc_no_online_eac_m1_pro_game_porting/]&lt;br /&gt;
* Halo Reach (MCC) &lt;br /&gt;
* HI-Fi RUSH&lt;br /&gt;
* Hogwarts Legacy&lt;br /&gt;
* Hatsune Miku: Project DIVA Mega Mix+ - works with Retina mode; DivaModLoader and DivaNoSpy recommended; run Steam with WINEDEBUG=-all WINEESYNC=0 WINEDLLOVERRIDES=&amp;quot;dinput8.dll=n,b&amp;quot;; may randomly crash at the title screen (just restart and try again until it works)&lt;br /&gt;
* Kena: Bridge of Spirits&lt;br /&gt;
* Metal Gear Solid V: The Phantom Pain&lt;br /&gt;
* Overwatch 2&lt;br /&gt;
* QUBE 2&lt;br /&gt;
* People Playground&lt;br /&gt;
* Risk of Rain 2 (does not require `-disable-gpu-skinning` like Crossover 22)&lt;br /&gt;
* Scarlet Nexus&lt;br /&gt;
* Sonic Omens&lt;br /&gt;
* Sonic P-06&lt;br /&gt;
* Spider-Man (2018)&lt;br /&gt;
* Spider-Man Miles Morales - ''requires Windows ver fix''&lt;br /&gt;
* SpongeBob SquarePants: The Cosmic Shake&lt;br /&gt;
* StarCraft: Remastered - Game runs fine but opening Option menu the second time will cause game not recognizing any inputs.&lt;br /&gt;
* Tetris Effect: Connected - Game window likes to be uncooperative; really doesn't like retina mode, works otherwise&lt;br /&gt;
* V Rising&lt;br /&gt;
* Warframe - ''To get installer/launcher working add dwrite (disabled) to library overrides in winecfg''&lt;br /&gt;
&lt;br /&gt;
Not working well:&lt;br /&gt;
* Horizon Zero Dawn - slowdown issues&lt;br /&gt;
* Genshin Impact - Launches, but stuck when calling menu using esc&lt;br /&gt;
* Slime Rancher 2 - Launches, but can't into game from main menu&lt;br /&gt;
&lt;br /&gt;
Not working yet:&lt;br /&gt;
* Apex (it will stuck because of anti-cheat)&lt;br /&gt;
* Any games that use the EA Launcher&lt;br /&gt;
** Need for Speed Heat&lt;br /&gt;
** Need for Speed Unbound&lt;br /&gt;
** Tom Clancy's The Division 2&lt;br /&gt;
* Among Us&lt;br /&gt;
* Company of Heroes 3&lt;br /&gt;
* F1 21 - Crash on launch&lt;br /&gt;
* F1 22 - Crash on launch (  &amp;quot;Exception&amp;quot;: &amp;quot;C0000005 EXCEPTION_ACCESS_VIOLATION at 0000000141bd8687&amp;quot;)&lt;br /&gt;
* Halo Infinite - Crash on launch&lt;br /&gt;
* Hitman 3 - launcher works, crash at 0x0000014136dddd hitman3+0x136dddd: int $3&lt;br /&gt;
* Microsoft Flight Simulator 2020 (Steam) - Crash on launch&lt;br /&gt;
* Monster Hunter Rise - DX12 Game, it launches but window goes dark after compiling shaders.&lt;br /&gt;
* Monster Hunter World - Black Screen on Launch&lt;br /&gt;
* New World - Game loaded but couldn't connect to server due to Easy Anti Cheat&lt;br /&gt;
* Red Dead Redemption 2&lt;br /&gt;
* Rogue Company - anti-cheat conflict.&lt;br /&gt;
* Sea of Thieves - Launches, but the prompt to sign into an xbox live account appears blank and cannot&lt;br /&gt;
* SpongeBob Squarepants: Battle for Bikini Bottom Rehydrated - Crashes when loading &lt;br /&gt;
* Teardown - When trying to launch, gives a error, &amp;quot;The program teardown.exe has encountered a serious problem and needs to close. We are sorry for the inconvenience.&amp;quot;&lt;br /&gt;
* theHunter: Call of the Wild - Crash on launch (Unhandled exception: page fault on read access to 0x0000000000000000 in 64-bit code (0x00000140b227f8))&lt;br /&gt;
* Many (all?) DX9 games&lt;br /&gt;
** 30XX - &amp;quot;Failed to create D3D device&amp;quot; -&amp;gt; crash on launch; this is a rare 64-bit DX9 game&lt;br /&gt;
** Black Mesa - Starts to load to main menu at first but then crashes&lt;br /&gt;
** Killing Floor 1 - Crash on launch&lt;br /&gt;
** Left 4 Dead 2 - Black screen -&amp;gt; crash on launch&lt;br /&gt;
** Mega Man Zero/ZX Legacy Collection - &amp;quot;Failed to create d3d9 device&amp;quot; -&amp;gt; crash on launch&lt;br /&gt;
** Sonic Mania - Crash on launch&lt;br /&gt;
** StarCraft II -&amp;gt; &amp;quot;Failed to initialize DirectX&amp;quot; error&lt;br /&gt;
** Star Wars: The Old Republic&lt;br /&gt;
** Battlefield 2 - DirectX installation failed, won't launch, see the [https://gist.github.com/chrismwendt/1d01a306cdc8618a06bdfb555743e25c error log]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{References}}&lt;/div&gt;</summary>
		<author><name>Andytizer</name></author>
	</entry>
	<entry>
		<id>https://www.applegamingwiki.com/w/index.php?title=Game_Porting_Toolkit&amp;diff=7661</id>
		<title>Game Porting Toolkit</title>
		<link rel="alternate" type="text/html" href="https://www.applegamingwiki.com/w/index.php?title=Game_Porting_Toolkit&amp;diff=7661"/>
		<updated>2023-06-09T13:17:31Z</updated>

		<summary type="html">&lt;p&gt;Andytizer: /* Battle.net */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Image|Game Porting Toolkit.png|Released 6th June, 2023 at WWDC23.}}&lt;br /&gt;
&lt;br /&gt;
Game Porting Toolkit is Apple's new translation layer released on 6th June, 2023. Game Porting Toolkit ('''GPT''') combines Wine with Apple's own D3DMetal which supports DirectX 11 and 12&amp;lt;ref&amp;gt;{{Refurl|url=https://mastodon.gamedev.place/@gavkar/110501451404624870|title=Gokhan Avkarogullari: &amp;quot;@yiningkarlli @aras @romainguy…&amp;quot; - Gamedev Mastodon}}&amp;lt;/ref&amp;gt;. This is less user-friendly method of installing Windows games on Apple Silicon Macs compared to [[CrossOver]] or [[Parallels]], however it unlocks the ability to play many DirectX 12 games. A lot more games work using GPTK, however, games that use anti-cheat or aggressive DRMs generally don't work, along with games that require AVX/AVX 2, e.g. The Last of Us Part I.&lt;br /&gt;
&lt;br /&gt;
== Toolkit install instructions ==&lt;br /&gt;
=== Requirements ===&lt;br /&gt;
*macOS Sonoma should be used, currently it is in beta. You can download the pkg installer from [https://mrmacintosh.com/macos-sonoma-full-installer-database-download-directly-from-apple/ Mr Macintosh blog].&lt;br /&gt;
*macOS Ventura causes large numbers of issues with steamwebhelper.exe crashing so it isn't recommended, use the macOS Sonoma beta.&lt;br /&gt;
*Visit [https://developer.apple.com/downloads Apple Developer Downloads site], these files are now free to download use for any logged in Apple account.&lt;br /&gt;
**Search for Command Line Tools for Xcode 15 beta and download the dmg file, then install it. *If you have an old version Xcode installed, remove it.&lt;br /&gt;
**Search for Game Porting Toolkit and download it. Open the dmg file and then run the pkg.&lt;br /&gt;
&lt;br /&gt;
=== Homebrew ===&lt;br /&gt;
Note: if you have ever installed Homebrew before, then it is advised to remove ARM64 Homebrew as this can interfere with this build process. Either use a Homebrew uninstall script or delete the folder &amp;lt;code&amp;gt;/opt/homebrew/bin&amp;lt;/code&amp;gt;. If you prefer to keep both ARM64 and x86 versions of brew installed, you may add a &amp;quot;brew-switcher&amp;quot; to your &amp;lt;code&amp;gt;.zshrc&amp;lt;/code&amp;gt; file to allow either version to be used depending on the active architecture. You may follow the steps at the end of this section after installing Brew to achieve this.&lt;br /&gt;
&lt;br /&gt;
Open Terminal (search in Spotlight on macOS).&lt;br /&gt;
&lt;br /&gt;
Install Rosetta:&lt;br /&gt;
&amp;lt;pre&amp;gt;softwareupdate --install-rosetta&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Enter an x86_64 shell to continue the following steps in a Rosetta environment. All subsequent commands should be run within this shell.&lt;br /&gt;
&amp;lt;pre&amp;gt;arch -x86_64 zsh&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Install the x86_64 version of Homebrew if you don't already have it.&lt;br /&gt;
&amp;lt;pre&amp;gt;/bin/bash -c &amp;quot;$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)&amp;quot;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Make sure the brew command is on your path:&lt;br /&gt;
&amp;lt;pre&amp;gt;which brew&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If this command does not print &amp;lt;code&amp;gt;/usr/local/bin/brew&amp;lt;/code&amp;gt;, you should use this command:&lt;br /&gt;
&amp;lt;pre&amp;gt;export PATH=/usr/local/bin:${PATH}&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Fixbox|description=Optionally retain both ARM64 and x86 versions of Brew|ref=|collapsed=yes|fix=&lt;br /&gt;
(Optional) If you want to have both ARM64 and x86 versions of Brew installed, begin by editing your &amp;lt;code&amp;gt;.zshrc&amp;lt;/code&amp;gt; file:&lt;br /&gt;
&amp;lt;pre&amp;gt;nano ~/.zshrc&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Scroll down (by using the arrow keys or Control + V) to the bottom of the file, and paste the following script:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
if [ &amp;quot;$(arch)&amp;quot; = &amp;quot;arm64&amp;quot; ]; then&lt;br /&gt;
    eval &amp;quot;$(/opt/homebrew/bin/brew shellenv)&amp;quot;&lt;br /&gt;
else&lt;br /&gt;
    eval &amp;quot;$(/usr/local/bin/brew shellenv)&amp;quot;&lt;br /&gt;
fi&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You may now restart your terminal and use the following command to return to an x86_64 shell:&lt;br /&gt;
&amp;lt;pre&amp;gt;arch -x86_64 zsh&amp;lt;/pre&amp;gt;&lt;br /&gt;
Your shell will now select the right installation of Brew, depending on your architecture.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=== Build ===&lt;br /&gt;
Run this command to download Apple tap:&lt;br /&gt;
&amp;lt;pre&amp;gt;brew tap apple/apple http://github.com/apple/homebrew-apple&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Install the game-porting-toolkit formula. This formula downloads and compiles several large software projects. How long this takes will depend on the speed of your computer. It can take over 1 hour to complete depending on the speed of your Mac.&lt;br /&gt;
&amp;lt;pre&amp;gt;brew -v install apple/apple/game-porting-toolkit&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If during installation you see an error such as '''“Error: game-porting-toolkit: unknown or unsupported macOS version: :dunno”, your version of Homebrew doesn’t have macOS Sonoma support. Update to the latest version of Homebrew and try again.'''&lt;br /&gt;
&amp;lt;pre&amp;gt;brew update brew -v install apple/apple/game-porting-toolkit&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Preparing the toolkit ===&lt;br /&gt;
Make sure the Game Porting Toolkit dmg downloaded earlier is mounted at /Volumes/Game Porting Toolkit-1.0. Use this script to copy the Game Porting Toolkit library directory into Wine’s library directory.&lt;br /&gt;
&amp;lt;pre&amp;gt;ditto /Volumes/Game\ Porting\ Toolkit-1.0/lib/ `brew --prefix game-porting-toolkit`/lib/&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Put the 3 scripts from the Game Porting Toolkit DMG into here &amp;lt;code&amp;gt;/usr/local/bin&amp;lt;/code&amp;gt; using this command:&lt;br /&gt;
&amp;lt;pre&amp;gt;cp /Volumes/Game\ Porting\ Toolkit*/gameportingtoolkit* /usr/local/bin&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Wine prefix ===&lt;br /&gt;
A Wine prefix contains a virtual C: drive, similar to a Bottle in [[CrossOver]]. You will install the toolkit and your game into this virtual C: drive. Run the following command to create a new Wine prefix named my-game-prefix in your home directory. This will create a Wine prefix called &amp;lt;code&amp;gt;my-game-prefix&amp;lt;/code&amp;gt; but could be renamed to anything.&lt;br /&gt;
&amp;lt;pre&amp;gt;WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 winecfg&amp;lt;/pre&amp;gt;&lt;br /&gt;
*A “Wine configuration” window should appear on your screen.&lt;br /&gt;
*Change the version of Windows to Windows 10.&lt;br /&gt;
*Choose Apply and then OK to exit winecfg.&lt;br /&gt;
&lt;br /&gt;
If the “Wine configuration” window does not appear, and no new icon appears in the Dock, verify that you have correctly installed the x86_64 version of Homebrew as well as the game-porting-toolkit formula.&lt;br /&gt;
&lt;br /&gt;
Now you are ready to install a launcher or individual Windows games into this Wine prefix, see below.&lt;br /&gt;
&lt;br /&gt;
== Steam ==&lt;br /&gt;
Download the [https://cdn.cloudflare.steamstatic.com/client/installer/SteamSetup.exe Windows version of Steam] and place in your Downloads folder.&lt;br /&gt;
&lt;br /&gt;
'''Install Steam'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix ~/Downloads/SteamSetup.exe&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Run Steam'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix 'C:\Program Files (x86)/Steam/steam.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Log into Steam'''&lt;br /&gt;
&lt;br /&gt;
A common issue is that Steam will present with a blank black window.&lt;br /&gt;
&lt;br /&gt;
Alternate way of launching Steam (after installing):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
MTL_HUD_ENABLED=1 WINEESYNC=1 WINEPREFIX=~/my-game-prefix /usr/local/Cellar/game-porting-toolkit/1.0/bin/wine64 'C:\Program Files (x86)\Steam\steam.exe'&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If this continues then close the Terminal window and then re-open and try again, repeat until the login screen opens. Now you should be able to download and launch Windows games through Steam.&lt;br /&gt;
&lt;br /&gt;
== Battle.net ==&lt;br /&gt;
Download the [https://download.battle.net/en-gb/?platform=windows Windows version of Battle.net] and place in your Downloads folder.&lt;br /&gt;
&lt;br /&gt;
Make a new Wineprefix for Battle.net, you can choose to use &amp;lt;code&amp;gt;my-game-prefix&amp;lt;/code&amp;gt; or change this to anything else.&lt;br /&gt;
&amp;lt;pre&amp;gt;WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 winecfg&amp;lt;/pre&amp;gt;&lt;br /&gt;
*A “Wine configuration” window should appear on your screen.&lt;br /&gt;
*Change the version of Windows to &amp;lt;code&amp;gt;Windows 10&amp;lt;/code&amp;gt;.&lt;br /&gt;
*Choose Apply and then OK to exit winecfg.&lt;br /&gt;
&lt;br /&gt;
If you are running Diablo IV, then you need to run this script to update the Wineprefix to appear as a more recent version of Windows:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion' /v CurrentBuild /t REG_SZ /d 19042 /f&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion' /v CurrentBuildNumber /t REG_SZ /d 19042 /f&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wineserver -k&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Run Battle.net launcher'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/battle-net ~/Downloads/Battle.net-Setup.exe&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Be aware that there is an issue launching Battle.net once installed, the only current way to re-login is to 'install' the launcher again. &lt;br /&gt;
&lt;br /&gt;
Start individual game without the launcher using this command:&lt;br /&gt;
&amp;lt;pre&amp;gt;arch -x86_64 gameportingtoolkit-no-hud ~/battle-net 'C:\Program Files (x86)\Diablo IV\Diablo IV Launcher.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Epic and GOG.com support with the Heroic Games Launcher ==&lt;br /&gt;
This is particularly useful because '''as it currently stands, the real Epic Games Launcher fails to install under the Game Porting Toolkit'''. Heroic supports Epic and GOG.com games.&lt;br /&gt;
&lt;br /&gt;
* Install the [https://github.com/Heroic-Games-Launcher/HeroicGamesLauncher/releases native macOS Heroic Games Launcher] or from Homebrew.&lt;br /&gt;
* Open Heroic, and log into your Epic Games and/or GOG.com account.&lt;br /&gt;
* Go to the &amp;quot;Wine Manager&amp;quot; and install a '''numbered''' version of Wine, such that it won't auto update- we are going to modify it.&lt;br /&gt;
** At the time of writing this, the newest numbered version of Wine-Crossover is &amp;lt;code&amp;gt;Wine-Crossover-Wine-22.1.0&amp;lt;/code&amp;gt;&lt;br /&gt;
* Press the folder icon that appears after installing it to open the directory containing Heroic's Wine installations.&lt;br /&gt;
* Right-click on the version of Wine you just installed and press &amp;quot;Show Package Contents&amp;quot;.&lt;br /&gt;
* Open this directory in the Terminal.&lt;br /&gt;
** If you have &amp;quot;OpenInTerminal&amp;quot; this is one button, otherwise press &amp;quot;Show Path Bar&amp;quot; and navigate where it says with &amp;quot;cd&amp;quot;.&lt;br /&gt;
** It should be something like &amp;lt;code&amp;gt;cd ~/Library/Application\ Support/heroic/tools/wine/Wine-crossover-wine-22.1.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
* &amp;lt;pre&amp;gt;cd Contents/MacOS&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Remove the existing Wine: &amp;lt;pre&amp;gt;rm wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Create a symlink to Game Porting Toolkit's Wine: &lt;br /&gt;
** If using Game Porting Toolkit Wineprefix: &amp;lt;pre&amp;gt;ln -s `/usr/local/bin/brew --prefix game-porting-toolkit`/bin/wine64 wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
** If using Whisky: &amp;lt;pre&amp;gt;ln -s /Applications/Whisky.app/Contents/Resources/Libraries/Wine/bin/wine64 wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
* &amp;lt;pre&amp;gt;cd ../Resources&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Remove the existing Wine: &amp;lt;pre&amp;gt;rm -rfv wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Create a symlink to Game Porting Toolkit's Wine&lt;br /&gt;
** If using Game Porting Toolkit Wineprefix: &amp;lt;pre&amp;gt;ln -s `/usr/local/bin/brew --prefix game-porting-toolkit` wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
** If using Whisky: &amp;lt;pre&amp;gt;ln -s /Applications/Whisky.app/Contents/Resources/Libraries/Wine wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
* We are now done with Terminal. Install any games you want to try playing.&lt;br /&gt;
* Select the game you want to play, and press the settings button in the top-right.&lt;br /&gt;
* Make sure the version of Wine you just downloaded and modified is selected.&lt;br /&gt;
* Make sure your Game Porting Toolkit Wine Prefix is selected. If you followed Apple's guide this is &amp;lt;code&amp;gt;/Users/you/my-game-prefix&amp;lt;/code&amp;gt;.&lt;br /&gt;
* If you Open the &amp;quot;Other&amp;quot; section you can also add any environment variables you want like &amp;lt;code&amp;gt;WINEESYNC=1&amp;quot;&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;&amp;quot;MTL_HUD_ENABLED=1&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
* Close the settings and try running the game.&lt;br /&gt;
&lt;br /&gt;
== Commands ==&lt;br /&gt;
Installing individual exe games: open your Wine prefix’s virtual C: drive in Finder (open ~/my-game-prefix/drive_c) and copy your game into an appropriate subdirectory.&lt;br /&gt;
&lt;br /&gt;
'''A. Standard launching'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix 'C:\Program Files (x86)\Steam\steam.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This launches the given Windows game binary with a visible extended Metal Performance HUD and filters logging to output from the Game Porting Toolkit.&lt;br /&gt;
&lt;br /&gt;
'''B. Launching without a HUD'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit-no-hud ~/my-game-prefix 'C:\Program Files (x86)\Steam\steam.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''C. Launching with Wine ESYNC disabled'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit-no-esync ~/my-game-prefix 'C:\Program Files (x86)\Steam\steam.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To enter Winecfg:&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix winecfg&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Shortcut ==&lt;br /&gt;
{{Image|Game Porting Toolkit Steam icon.png|Made by user Omsier.|150px}}&lt;br /&gt;
You can make a shortcut for Steam for example by using macOS built-in Automator app.&lt;br /&gt;
*Open Automator.&lt;br /&gt;
*Select New Application.&lt;br /&gt;
*In the 2nd column select Run Shell Script.&lt;br /&gt;
*Copy and paste this code into the box:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/zsh&lt;br /&gt;
&lt;br /&gt;
export PATH=&amp;quot;/usr/local/bin:${PATH}&amp;quot;&lt;br /&gt;
&lt;br /&gt;
arch -x86_64 gameportingtoolkit ~/my-game-prefix 'C:\Program Files (x86)\Steam\steam.exe'&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the shortcut somewhere e.g. Applications.&lt;br /&gt;
*Above shortcut can be customised to any Wineprefix or game.&lt;br /&gt;
*Add an icon by selecting the shortcut, pressing {{key|cmd|I}} to Get Info, then dragging and dropping a PNG file onto the top left of the window.&lt;br /&gt;
&lt;br /&gt;
== Logging ==&lt;br /&gt;
The provided bin/gameportingtoolkit* scripts can be copied onto your path to facilitate different forms of logging and launching. You can run these scripts from any shell; you don’t need to switch to the Rosetta environment first.&lt;br /&gt;
&lt;br /&gt;
Logging output will appear in the Terminal window in which you launch your game as well as the system log, which can be viewed with the Console app found in Applications ▸ Utilities. Log messages from the Game Porting Toolkit are prefixed with D3DM. By default the gameportingtoolkit* scripts will filter to just the D3DM-prefixed messages.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
{{Image|GPTK Steam black screen.png|Steam login black screen issue.}}&lt;br /&gt;
'''Steam login black screen'''&lt;br /&gt;
&lt;br /&gt;
Close the Terminal window and then reopen and retry the command, repeat several times.&lt;br /&gt;
&lt;br /&gt;
Alternate way of launching Steam (after installing):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
MTL_HUD_ENABLED=1 WINEESYNC=1 WINEPREFIX=&amp;lt;path to the Wine bottle you set up&amp;gt; /usr/local/Cellar/game-porting-toolkit/1.0/bin/wine64 'C:\Program Files (x86)/Steam/steam.exe'&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If still not working then try using [[CrossOver]] and create a Steam bottle, then login, then redirect this WINEPREFIX to that bottle:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=&amp;quot;/Users/[username]/Library/Application Support/CrossOver/Bottles/Steam/&amp;quot; &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Steam crashes straight after opening'''&lt;br /&gt;
&lt;br /&gt;
Disconnect any external monitors.&lt;br /&gt;
&lt;br /&gt;
'''Battle.net launcher won't re-launch'''&lt;br /&gt;
&lt;br /&gt;
Re-install the launcher to reopen, no other fix at the moment.&lt;br /&gt;
&lt;br /&gt;
'''My game won’t run because it thinks the version of Windows is too old. Some games detect specific minimum versions of Windows and need to be updated.''' Use this script to update your wineprefix with build 19042 which should work for most games e.g. Spider-Man Remastered.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion' /v CurrentBuild /t REG_SZ /d 19042 /f&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion' /v CurrentBuildNumber /t REG_SZ /d 19042 /f&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wineserver -k&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''steamwebhelper.exe crashes'''&lt;br /&gt;
&lt;br /&gt;
This is caused by Steam being run through macOS Ventura or below, most users should upgrade to macOS Sonoma. You can use the CrossOver workaround to login to Steam but you'll experience constant crashing.&lt;br /&gt;
&lt;br /&gt;
'''My game won't run and crashes with an invalid instruction'''&lt;br /&gt;
&lt;br /&gt;
AVX and AVX2 games are not supported by Apple's arm64 chipset.&lt;br /&gt;
&lt;br /&gt;
'''My game won't run because its anti-cheat or DRM software is incompatible with Wine translation.'''&lt;br /&gt;
&lt;br /&gt;
Likely there will be no fixes for any games that use anti-cheat, e.g. Easy Anti Cheat. Some games have workarounds e.g. Elden Ring. Other games that use say Denuvo may also be incompatible until that DRM is removed by the game's developer.&lt;br /&gt;
&lt;br /&gt;
'''My game won’t run because it requires Mono, .NET, or the MSVCRT runtime.'''&lt;br /&gt;
&lt;br /&gt;
The game porting toolkit’s evaluation environment does not pre-install these runtime support packages. If your game makes use of one of these packages, consider searching for and downloading appropriate installers (.exe or .msi) and installing them to your evaluation environment. Additional runtime installers can be run on your environment by just launching the installer and following its installation instructions:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 &amp;lt;some-installer.exe&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
And .MSI packages can be installed by launching the Windows uninstaller application and choosing to install a downloaded .msi package:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 uninstaller&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Controller issues'''&lt;br /&gt;
&lt;br /&gt;
Issues may be fixed by enrolling into the Steam beta.&lt;br /&gt;
&lt;br /&gt;
'''My game looks pixelated and the display resolution is limited'''&lt;br /&gt;
&lt;br /&gt;
Enable Retina (high resolution) mode:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_CURRENT_USER\Software\Wine\Mac Driver' /v RetinaMode /t REG_SZ /d 'Y' /f&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Some games will not run with Retina mode enabled. To disable it:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_CURRENT_USER\Software\Wine\Mac Driver' /v RetinaMode /t REG_SZ /d 'N' /f&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Game compatibility list ==&lt;br /&gt;
Working games:&lt;br /&gt;
* Astroneer&lt;br /&gt;
* Bloodstained: Ritual of the Night&lt;br /&gt;
* Geshin Impact 3.7 (m2max with 4k 60fps stable) &lt;br /&gt;
* Control (DX12 mode, if downloaded from Heroic, needs to be ran by Terminal)&lt;br /&gt;
* Crysis Remastered&lt;br /&gt;
* Cuphead&lt;br /&gt;
* Cyberpunk 2077&lt;br /&gt;
* Deep Rock Galactic&lt;br /&gt;
* Deceive Inc. - works well if launched without EAC&lt;br /&gt;
* Derail Valley (awesome performance, no missing manuals - in-game objects for train operation - like on CrossOver)&lt;br /&gt;
* Diablo IV [https://www.reddit.com/r/macgaming/comments/14307be/comment/jn7dxzo/?utm_source=reddit&amp;amp;utm_medium=web2x&amp;amp;context=3 ]&lt;br /&gt;
* Dyson Sphere Program (some objects and main character weren't visible before)&lt;br /&gt;
* Elden Ring&lt;br /&gt;
* Final Fantasy VII Remake Intergrade (~50 FPS on High settings at 1080p with M1 Pro)&lt;br /&gt;
* Friends vs. Friends&lt;br /&gt;
* God of War (Works somewhat well on M1 Pro (16gb), wouldn't recommend lesser hardware.)&lt;br /&gt;
* Going Medieval&lt;br /&gt;
* Guilty Gear Strive&lt;br /&gt;
* Halo 3 (MCC - No Online due to Easy Anti-Cheat Compatibility) [https://www.reddit.com/r/macgaming/comments/143zoos/halo_3_mcc_no_online_eac_m1_pro_game_porting/]&lt;br /&gt;
* Halo Reach (MCC) &lt;br /&gt;
* HI-Fi RUSH&lt;br /&gt;
* Hogwarts Legacy&lt;br /&gt;
* Hatsune Miku: Project DIVA Mega Mix+ - works with Retina mode; DivaModLoader and DivaNoSpy recommended; run Steam with WINEDEBUG=-all WINEESYNC=0 WINEDLLOVERRIDES=&amp;quot;dinput8.dll=n,b&amp;quot;; may randomly crash at the title screen (just restart and try again until it works)&lt;br /&gt;
* Kena: Bridge of Spirits&lt;br /&gt;
* Metal Gear Solid V: The Phantom Pain&lt;br /&gt;
* Overwatch 2&lt;br /&gt;
* QUBE 2&lt;br /&gt;
* People Playground&lt;br /&gt;
* Risk of Rain 2 (does not require `-disable-gpu-skinning` like Crossover 22)&lt;br /&gt;
* Scarlet Nexus&lt;br /&gt;
* Sonic Omens&lt;br /&gt;
* Sonic P-06&lt;br /&gt;
* Spider-Man (2018)&lt;br /&gt;
* Spider-Man Miles Morales - ''requires Windows ver fix''&lt;br /&gt;
* SpongeBob SquarePants: The Cosmic Shake&lt;br /&gt;
* StarCraft: Remastered - Game runs fine but opening Option menu the second time will cause game not recognizing any inputs.&lt;br /&gt;
* Tetris Effect: Connected - Game window likes to be uncooperative; really doesn't like retina mode, works otherwise&lt;br /&gt;
* V Rising&lt;br /&gt;
* Warframe - ''To get installer/launcher working add dwrite (disabled) to library overrides in winecfg''&lt;br /&gt;
&lt;br /&gt;
Not working well:&lt;br /&gt;
* Horizon Zero Dawn - slowdown issues&lt;br /&gt;
* Genshin Impact - Launches, but stuck when calling menu using esc&lt;br /&gt;
* Slime Rancher 2 - Launches, but can't into game from main menu&lt;br /&gt;
&lt;br /&gt;
Not working yet:&lt;br /&gt;
* Apex (it will stuck because of anti-cheat)&lt;br /&gt;
* Any games that use the EA Launcher&lt;br /&gt;
** Need for Speed Heat&lt;br /&gt;
** Need for Speed Unbound&lt;br /&gt;
** Tom Clancy's The Division 2&lt;br /&gt;
* Among Us&lt;br /&gt;
* Company of Heroes 3&lt;br /&gt;
* F1 21 - Crash on launch&lt;br /&gt;
* F1 22 - Crash on launch (  &amp;quot;Exception&amp;quot;: &amp;quot;C0000005 EXCEPTION_ACCESS_VIOLATION at 0000000141bd8687&amp;quot;)&lt;br /&gt;
* Halo Infinite - Crash on launch&lt;br /&gt;
* Hitman 3 - launcher works, crash at 0x0000014136dddd hitman3+0x136dddd: int $3&lt;br /&gt;
* Microsoft Flight Simulator 2020 (Steam) - Crash on launch&lt;br /&gt;
* Monster Hunter Rise - DX12 Game, it launches but window goes dark after compiling shaders.&lt;br /&gt;
* Monster Hunter World - Black Screen on Launch&lt;br /&gt;
* New World - Game loaded but couldn't connect to server due to Easy Anti Cheat&lt;br /&gt;
* Red Dead Redemption 2&lt;br /&gt;
* Rogue Company - anti-cheat conflict.&lt;br /&gt;
* Sea of Thieves - Launches, but the prompt to sign into an xbox live account appears blank and cannot&lt;br /&gt;
* SpongeBob Squarepants: Battle for Bikini Bottom Rehydrated - Crashes when loading &lt;br /&gt;
* Teardown - When trying to launch, gives a error, &amp;quot;The program teardown.exe has encountered a serious problem and needs to close. We are sorry for the inconvenience.&amp;quot;&lt;br /&gt;
* theHunter: Call of the Wild - Crash on launch (Unhandled exception: page fault on read access to 0x0000000000000000 in 64-bit code (0x00000140b227f8))&lt;br /&gt;
* Many (all?) DX9 games&lt;br /&gt;
** 30XX - &amp;quot;Failed to create D3D device&amp;quot; -&amp;gt; crash on launch; this is a rare 64-bit DX9 game&lt;br /&gt;
** Killing Floor 1 - Crash on launch&lt;br /&gt;
** Left 4 Dead 2 - Black screen -&amp;gt; crash on launch&lt;br /&gt;
** Mega Man Zero/ZX Legacy Collection - &amp;quot;Failed to create d3d9 device&amp;quot; -&amp;gt; crash on launch&lt;br /&gt;
** Sonic Mania - Crash on launch&lt;br /&gt;
** StarCraft II -&amp;gt; &amp;quot;Failed to initialize DirectX&amp;quot; error&lt;br /&gt;
** Star Wars: The Old Republic&lt;br /&gt;
** Battlefield 2 - DirectX installation failed, won't launch, see the [https://gist.github.com/chrismwendt/1d01a306cdc8618a06bdfb555743e25c error log]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{References}}&lt;/div&gt;</summary>
		<author><name>Andytizer</name></author>
	</entry>
	<entry>
		<id>https://www.applegamingwiki.com/w/index.php?title=Game_Porting_Toolkit&amp;diff=7656</id>
		<title>Game Porting Toolkit</title>
		<link rel="alternate" type="text/html" href="https://www.applegamingwiki.com/w/index.php?title=Game_Porting_Toolkit&amp;diff=7656"/>
		<updated>2023-06-09T10:26:19Z</updated>

		<summary type="html">&lt;p&gt;Andytizer: Changing the Battle net instructions so that it's the same as everything else to simplify things my-game-prefix&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Image|Game Porting Toolkit.png|Released 6th June, 2023 at WWDC23.}}&lt;br /&gt;
&lt;br /&gt;
Game Porting Toolkit is Apple's new translation layer released on 6th June, 2023. Game Porting Toolkit ('''GPT''') combines Wine with Apple's own D3DMetal which supports DirectX 11 and 12&amp;lt;ref&amp;gt;{{Refurl|url=https://mastodon.gamedev.place/@gavkar/110501451404624870|title=Gokhan Avkarogullari: &amp;quot;@yiningkarlli @aras @romainguy…&amp;quot; - Gamedev Mastodon}}&amp;lt;/ref&amp;gt;. This is less user-friendly method of installing Windows games on Apple Silicon Macs compared to [[CrossOver]] or [[Parallels]], however it unlocks the ability to play many DirectX 12 games. A lot more games work using GPTK, however, games that use anti-cheat or aggressive DRMs generally don't work, along with games that require AVX/AVX 2, e.g. The Last of Us Part I.&lt;br /&gt;
&lt;br /&gt;
== Toolkit install instructions ==&lt;br /&gt;
=== Requirements ===&lt;br /&gt;
*macOS Sonoma should be used, currently it is in beta. You can download the pkg installer from [https://mrmacintosh.com/macos-sonoma-full-installer-database-download-directly-from-apple/ Mr Macintosh blog].&lt;br /&gt;
*macOS Ventura causes large numbers of issues with steamwebhelper.exe crashing so it isn't recommended, use the macOS Sonoma beta.&lt;br /&gt;
*Visit [https://developer.apple.com/downloads Apple Developer Downloads site], these files are now free to download use for any logged in Apple account.&lt;br /&gt;
**Search for Command Line Tools for Xcode 15 beta and download the dmg file, then install it. *If you have an old version Xcode installed, remove it.&lt;br /&gt;
**Search for Game Porting Toolkit and download it. Open the dmg file and then run the pkg.&lt;br /&gt;
&lt;br /&gt;
=== Homebrew ===&lt;br /&gt;
Note: if you have ever installed Homebrew before, then it is advised to remove ARM64 Homebrew as this can interfere with this build process. Either use a Homebrew uninstall script or delete the folder &amp;lt;code&amp;gt;/opt/homebrew/bin&amp;lt;/code&amp;gt;. If you prefer to keep both ARM64 and x86 versions of brew installed, you may add a &amp;quot;brew-switcher&amp;quot; to your &amp;lt;code&amp;gt;.zshrc&amp;lt;/code&amp;gt; file to allow either version to be used depending on the active architecture. You may follow the steps at the end of this section after installing Brew to achieve this.&lt;br /&gt;
&lt;br /&gt;
Open Terminal (search in Spotlight on macOS).&lt;br /&gt;
&lt;br /&gt;
Install Rosetta:&lt;br /&gt;
&amp;lt;pre&amp;gt;softwareupdate --install-rosetta&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Enter an x86_64 shell to continue the following steps in a Rosetta environment. All subsequent commands should be run within this shell.&lt;br /&gt;
&amp;lt;pre&amp;gt;arch -x86_64 zsh&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Install the x86_64 version of Homebrew if you don't already have it.&lt;br /&gt;
&amp;lt;pre&amp;gt;/bin/bash -c &amp;quot;$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)&amp;quot;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Make sure the brew command is on your path:&lt;br /&gt;
&amp;lt;pre&amp;gt;which brew&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If this command does not print &amp;lt;code&amp;gt;/usr/local/bin/brew&amp;lt;/code&amp;gt;, you should use this command:&lt;br /&gt;
&amp;lt;pre&amp;gt;export PATH=/usr/local/bin:${PATH}&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Fixbox|description=Optionally retain both ARM64 and x86 versions of Brew|ref=|collapsed=yes|fix=&lt;br /&gt;
(Optional) If you want to have both ARM64 and x86 versions of Brew installed, begin by editing your &amp;lt;code&amp;gt;.zshrc&amp;lt;/code&amp;gt; file:&lt;br /&gt;
&amp;lt;pre&amp;gt;nano ~/.zshrc&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Scroll down (by using the arrow keys or Control + V) to the bottom of the file, and paste the following script:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
if [ &amp;quot;$(arch)&amp;quot; = &amp;quot;arm64&amp;quot; ]; then&lt;br /&gt;
    eval &amp;quot;$(/opt/homebrew/bin/brew shellenv)&amp;quot;&lt;br /&gt;
else&lt;br /&gt;
    eval &amp;quot;$(/usr/local/bin/brew shellenv)&amp;quot;&lt;br /&gt;
fi&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You may now restart your terminal and use the following command to return to an x86_64 shell:&lt;br /&gt;
&amp;lt;pre&amp;gt;arch -x86_64 zsh&amp;lt;/pre&amp;gt;&lt;br /&gt;
Your shell will now select the right installation of Brew, depending on your architecture.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=== Build ===&lt;br /&gt;
Run this command to download Apple tap:&lt;br /&gt;
&amp;lt;pre&amp;gt;brew tap apple/apple http://github.com/apple/homebrew-apple&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Install the game-porting-toolkit formula. This formula downloads and compiles several large software projects. How long this takes will depend on the speed of your computer. It can take over 1 hour to complete depending on the speed of your Mac.&lt;br /&gt;
&amp;lt;pre&amp;gt;brew -v install apple/apple/game-porting-toolkit&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If during installation you see an error such as '''“Error: game-porting-toolkit: unknown or unsupported macOS version: :dunno”, your version of Homebrew doesn’t have macOS Sonoma support. Update to the latest version of Homebrew and try again.'''&lt;br /&gt;
&amp;lt;pre&amp;gt;brew update brew -v install apple/apple/game-porting-toolkit&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Preparing the toolkit ===&lt;br /&gt;
Make sure the Game Porting Toolkit dmg downloaded earlier is mounted at /Volumes/Game Porting Toolkit-1.0. Use this script to copy the Game Porting Toolkit library directory into Wine’s library directory.&lt;br /&gt;
&amp;lt;pre&amp;gt;ditto /Volumes/Game\ Porting\ Toolkit-1.0/lib/ `brew --prefix game-porting-toolkit`/lib/&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Put the 3 scripts from the Game Porting Toolkit DMG into here &amp;lt;code&amp;gt;/usr/local/bin&amp;lt;/code&amp;gt; using this command:&lt;br /&gt;
&amp;lt;pre&amp;gt;cp /Volumes/Game\ Porting\ Toolkit*/gameportingtoolkit* /usr/local/bin&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Wine prefix ===&lt;br /&gt;
A Wine prefix contains a virtual C: drive, similar to a Bottle in [[CrossOver]]. You will install the toolkit and your game into this virtual C: drive. Run the following command to create a new Wine prefix named my-game-prefix in your home directory. This will create a Wine prefix called &amp;lt;code&amp;gt;my-game-prefix&amp;lt;/code&amp;gt; but could be renamed to anything.&lt;br /&gt;
&amp;lt;pre&amp;gt;WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 winecfg&amp;lt;/pre&amp;gt;&lt;br /&gt;
*A “Wine configuration” window should appear on your screen.&lt;br /&gt;
*Change the version of Windows to Windows 10.&lt;br /&gt;
*Choose Apply and then OK to exit winecfg.&lt;br /&gt;
&lt;br /&gt;
If the “Wine configuration” window does not appear, and no new icon appears in the Dock, verify that you have correctly installed the x86_64 version of Homebrew as well as the game-porting-toolkit formula.&lt;br /&gt;
&lt;br /&gt;
Now you are ready to install a launcher or individual Windows games into this Wine prefix, see below.&lt;br /&gt;
&lt;br /&gt;
== Steam ==&lt;br /&gt;
Download the [https://cdn.cloudflare.steamstatic.com/client/installer/SteamSetup.exe Windows version of Steam] and place in your Downloads folder.&lt;br /&gt;
&lt;br /&gt;
'''Install Steam'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix ~/Downloads/SteamSetup.exe&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Run Steam'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix 'C:\Program Files (x86)/Steam/steam.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Log into Steam'''&lt;br /&gt;
&lt;br /&gt;
A common issue is that Steam will present with a blank black window.&lt;br /&gt;
&lt;br /&gt;
Alternate way of launching Steam (after installing):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
MTL_HUD_ENABLED=1 WINEESYNC=1 WINEPREFIX=~/my-game-prefix /usr/local/Cellar/game-porting-toolkit/1.0/bin/wine64 'C:\Program Files (x86)\Steam\steam.exe'&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If this continues then close the Terminal window and then re-open and try again, repeat until the login screen opens. Now you should be able to download and launch Windows games through Steam.&lt;br /&gt;
&lt;br /&gt;
== Battle.net ==&lt;br /&gt;
Download the [https://download.battle.net/en-gb/?platform=windows Windows version of Battle.net] and place in your Downloads folder.&lt;br /&gt;
&lt;br /&gt;
Make a new Wineprefix for Battle.net, you can choose to use &amp;lt;code&amp;gt;my-game-prefix&amp;lt;/code&amp;gt; or change this to anything else.&lt;br /&gt;
&amp;lt;pre&amp;gt;WINEPREFIX=~/battle-net `brew --prefix game-porting-toolkit`/bin/wine64 winecfg&amp;lt;/pre&amp;gt;&lt;br /&gt;
*A “Wine configuration” window should appear on your screen.&lt;br /&gt;
*Change the version of Windows to &amp;lt;code&amp;gt;Windows 10&amp;lt;/code&amp;gt;.&lt;br /&gt;
*Choose Apply and then OK to exit winecfg.&lt;br /&gt;
&lt;br /&gt;
If you are running Diablo IV, then you need to run this script to update the Wineprefix to appear as a more recent version of Windows:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion' /v CurrentBuild /t REG_SZ /d 19042 /f&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion' /v CurrentBuildNumber /t REG_SZ /d 19042 /f&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wineserver -k&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Run Battle.net launcher'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/battle-net ~/Downloads/Battle.net-Setup.exe&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Be aware that there is an issue launching Battle.net once installed, the only current way to re-login is to 'install' the launcher again. &lt;br /&gt;
&lt;br /&gt;
Start individual game without the launcher using this command:&lt;br /&gt;
&amp;lt;pre&amp;gt;arch -x86_64 gameportingtoolkit-no-hud ~/battle-net 'C:\Program Files (x86)\Diablo IV\Diablo IV Launcher.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Epic and GOG.com support with the Heroic Games Launcher ==&lt;br /&gt;
This is particularly useful because '''as it currently stands, the real Epic Games Launcher fails to install under the Game Porting Toolkit'''. Heroic supports Epic and GOG.com games.&lt;br /&gt;
&lt;br /&gt;
* Install the [https://github.com/Heroic-Games-Launcher/HeroicGamesLauncher/releases native macOS Heroic Games Launcher] or from Homebrew.&lt;br /&gt;
* Open Heroic, and log into your Epic Games and/or GOG.com account.&lt;br /&gt;
* Go to the &amp;quot;Wine Manager&amp;quot; and install a '''numbered''' version of Wine, such that it won't auto update- we are going to modify it.&lt;br /&gt;
** At the time of writing this, the newest numbered version of Wine-Crossover is &amp;lt;code&amp;gt;Wine-Crossover-Wine-22.1.0&amp;lt;/code&amp;gt;&lt;br /&gt;
* Press the folder icon that appears after installing it to open the directory containing Heroic's Wine installations.&lt;br /&gt;
* Right-click on the version of Wine you just installed and press &amp;quot;Show Package Contents&amp;quot;.&lt;br /&gt;
* Open this directory in the Terminal.&lt;br /&gt;
** If you have &amp;quot;OpenInTerminal&amp;quot; this is one button, otherwise press &amp;quot;Show Path Bar&amp;quot; and navigate where it says with &amp;quot;cd&amp;quot;.&lt;br /&gt;
** It should be something like &amp;lt;code&amp;gt;cd ~/Library/Application\ Support/heroic/tools/wine/Wine-crossover-wine-22.1.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
* &amp;lt;pre&amp;gt;cd Contents/MacOS&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Remove the existing Wine: &amp;lt;pre&amp;gt;rm wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Create a symlink to Game Porting Toolkit's Wine: &lt;br /&gt;
** If using Game Porting Toolkit Wineprefix: &amp;lt;pre&amp;gt;ln -s `/usr/local/bin/brew --prefix game-porting-toolkit`/bin/wine64 wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
** If using Whisky: &amp;lt;pre&amp;gt;ln -s /Applications/Whisky.app/Contents/Resources/Libraries/Wine/bin/wine64 wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
* &amp;lt;pre&amp;gt;cd ../Resources&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Remove the existing Wine: &amp;lt;pre&amp;gt;rm -rfv wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Create a symlink to Game Porting Toolkit's Wine&lt;br /&gt;
** If using Game Porting Toolkit Wineprefix: &amp;lt;pre&amp;gt;ln -s `/usr/local/bin/brew --prefix game-porting-toolkit` wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
** If using Whisky: &amp;lt;pre&amp;gt;ln -s /Applications/Whisky.app/Contents/Resources/Libraries/Wine wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
* We are now done with Terminal. Install any games you want to try playing.&lt;br /&gt;
* Select the game you want to play, and press the settings button in the top-right.&lt;br /&gt;
* Make sure the version of Wine you just downloaded and modified is selected.&lt;br /&gt;
* Make sure your Game Porting Toolkit Wine Prefix is selected. If you followed Apple's guide this is &amp;lt;code&amp;gt;/Users/you/my-game-prefix&amp;lt;/code&amp;gt;.&lt;br /&gt;
* If you Open the &amp;quot;Other&amp;quot; section you can also add any environment variables you want like &amp;lt;code&amp;gt;WINEESYNC=1&amp;quot;&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;&amp;quot;MTL_HUD_ENABLED=1&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
* Close the settings and try running the game.&lt;br /&gt;
&lt;br /&gt;
== Commands ==&lt;br /&gt;
Installing individual exe games: open your Wine prefix’s virtual C: drive in Finder (open ~/my-game-prefix/drive_c) and copy your game into an appropriate subdirectory.&lt;br /&gt;
&lt;br /&gt;
'''A. Standard launching'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix 'C:\Program Files (x86)\Steam\steam.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This launches the given Windows game binary with a visible extended Metal Performance HUD and filters logging to output from the Game Porting Toolkit.&lt;br /&gt;
&lt;br /&gt;
'''B. Launching without a HUD'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit-no-hud ~/my-game-prefix 'C:\Program Files (x86)\Steam\steam.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''C. Launching with Wine ESYNC disabled'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit-no-esync ~/my-game-prefix 'C:\Program Files (x86)\Steam\steam.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To enter Winecfg:&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix winecfg&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Shortcut ==&lt;br /&gt;
{{Image|Game Porting Toolkit Steam icon.png|Made by user Omsier.|150px}}&lt;br /&gt;
You can make a shortcut for Steam for example by using macOS built-in Automator app.&lt;br /&gt;
*Open Automator.&lt;br /&gt;
*Select New Application.&lt;br /&gt;
*In the 2nd column select Run Shell Script.&lt;br /&gt;
*Copy and paste this code into the box:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/zsh&lt;br /&gt;
&lt;br /&gt;
export PATH=&amp;quot;/usr/local/bin:${PATH}&amp;quot;&lt;br /&gt;
&lt;br /&gt;
arch -x86_64 gameportingtoolkit ~/my-game-prefix 'C:\Program Files (x86)\Steam\steam.exe'&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the shortcut somewhere e.g. Applications.&lt;br /&gt;
*Above shortcut can be customised to any Wineprefix or game.&lt;br /&gt;
*Add an icon by selecting the shortcut, pressing {{key|cmd|I}} to Get Info, then dragging and dropping a PNG file onto the top left of the window.&lt;br /&gt;
&lt;br /&gt;
== Logging ==&lt;br /&gt;
The provided bin/gameportingtoolkit* scripts can be copied onto your path to facilitate different forms of logging and launching. You can run these scripts from any shell; you don’t need to switch to the Rosetta environment first.&lt;br /&gt;
&lt;br /&gt;
Logging output will appear in the Terminal window in which you launch your game as well as the system log, which can be viewed with the Console app found in Applications ▸ Utilities. Log messages from the Game Porting Toolkit are prefixed with D3DM. By default the gameportingtoolkit* scripts will filter to just the D3DM-prefixed messages.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
{{Image|GPTK Steam black screen.png|Steam login black screen issue.}}&lt;br /&gt;
'''Steam login black screen'''&lt;br /&gt;
&lt;br /&gt;
Close the Terminal window and then reopen and retry the command, repeat several times.&lt;br /&gt;
&lt;br /&gt;
Alternate way of launching Steam (after installing):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
MTL_HUD_ENABLED=1 WINEESYNC=1 WINEPREFIX=&amp;lt;path to the Wine bottle you set up&amp;gt; /usr/local/Cellar/game-porting-toolkit/1.0/bin/wine64 'C:\Program Files (x86)/Steam/steam.exe'&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If still not working then try using [[CrossOver]] and create a Steam bottle, then login, then redirect this WINEPREFIX to that bottle:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=&amp;quot;/Users/[username]/Library/Application Support/CrossOver/Bottles/Steam/&amp;quot; &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Steam crashes straight after opening'''&lt;br /&gt;
&lt;br /&gt;
Disconnect any external monitors.&lt;br /&gt;
&lt;br /&gt;
'''Battle.net launcher won't re-launch'''&lt;br /&gt;
&lt;br /&gt;
Re-install the launcher to reopen, no other fix at the moment.&lt;br /&gt;
&lt;br /&gt;
'''My game won’t run because it thinks the version of Windows is too old. Some games detect specific minimum versions of Windows and need to be updated.''' Use this script to update your wineprefix with build 19042 which should work for most games e.g. Spider-Man Remastered.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion' /v CurrentBuild /t REG_SZ /d 19042 /f&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion' /v CurrentBuildNumber /t REG_SZ /d 19042 /f&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wineserver -k&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''steamwebhelper.exe crashes'''&lt;br /&gt;
&lt;br /&gt;
This is caused by Steam being run through macOS Ventura or below, most users should upgrade to macOS Sonoma. You can use the CrossOver workaround to login to Steam but you'll experience constant crashing.&lt;br /&gt;
&lt;br /&gt;
'''My game won't run and crashes with an invalid instruction'''&lt;br /&gt;
&lt;br /&gt;
AVX and AVX2 games are not supported by Apple's arm64 chipset.&lt;br /&gt;
&lt;br /&gt;
'''My game won't run because its anti-cheat or DRM software is incompatible with Wine translation.'''&lt;br /&gt;
&lt;br /&gt;
Likely there will be no fixes for any games that use anti-cheat, e.g. Easy Anti Cheat. Some games have workarounds e.g. Elden Ring. Other games that use say Denuvo may also be incompatible until that DRM is removed by the game's developer.&lt;br /&gt;
&lt;br /&gt;
'''My game won’t run because it requires Mono, .NET, or the MSVCRT runtime.'''&lt;br /&gt;
&lt;br /&gt;
The game porting toolkit’s evaluation environment does not pre-install these runtime support packages. If your game makes use of one of these packages, consider searching for and downloading appropriate installers (.exe or .msi) and installing them to your evaluation environment. Additional runtime installers can be run on your environment by just launching the installer and following its installation instructions:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 &amp;lt;some-installer.exe&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
And .MSI packages can be installed by launching the Windows uninstaller application and choosing to install a downloaded .msi package:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 uninstaller&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Controller issues'''&lt;br /&gt;
&lt;br /&gt;
Issues may be fixed by enrolling into the Steam beta.&lt;br /&gt;
&lt;br /&gt;
'''My game looks pixelated and the display resolution is limited'''&lt;br /&gt;
&lt;br /&gt;
Enable Retina (high resolution) mode:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_CURRENT_USER\Software\Wine\Mac Driver' /v RetinaMode /t REG_SZ /d 'Y' /f&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Some games will not run with Retina mode enabled. To disable it:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_CURRENT_USER\Software\Wine\Mac Driver' /v RetinaMode /t REG_SZ /d 'N' /f&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Game compatibility list ==&lt;br /&gt;
Working games:&lt;br /&gt;
* Bloodstained: Ritual of the Night&lt;br /&gt;
* Control (DX12 mode, if downloaded from Heroic, needs to be ran by Terminal)&lt;br /&gt;
* Crysis Remastered&lt;br /&gt;
* Cuphead&lt;br /&gt;
* Cyberpunk 2077&lt;br /&gt;
* Deep Rock Galactic&lt;br /&gt;
* Deceive Inc. - works well if launched without EAC&lt;br /&gt;
* Derail Valley (awesome performance, no missing manuals - in-game objects for train operation - like on CrossOver)&lt;br /&gt;
* Diablo IV [https://www.reddit.com/r/macgaming/comments/14307be/comment/jn7dxzo/?utm_source=reddit&amp;amp;utm_medium=web2x&amp;amp;context=3 ]&lt;br /&gt;
* Dyson Sphere Program (some objects and main character weren't visible before)&lt;br /&gt;
* Elden Ring&lt;br /&gt;
* Final Fantasy VII Remake Intergrade (~50 FPS on High settings at 1080p with M1 Pro)&lt;br /&gt;
* Friends vs. Friends&lt;br /&gt;
* God of War (Works somewhat well on M1 Pro (16gb), wouldn't recommend lesser hardware.)&lt;br /&gt;
* Going Medieval&lt;br /&gt;
* Guilty Gear Strive&lt;br /&gt;
* Halo 3 (MCC - No Online due to Easy Anti-Cheat Compatibility) [https://www.reddit.com/r/macgaming/comments/143zoos/halo_3_mcc_no_online_eac_m1_pro_game_porting/]&lt;br /&gt;
* Halo Reach (MCC) &lt;br /&gt;
* HI-Fi RUSH&lt;br /&gt;
* Hogwarts Legacy&lt;br /&gt;
* Hatsune Miku: Project DIVA Mega Mix+ - works with Retina mode; DivaModLoader and DivaNoSpy recommended; run Steam with WINEDEBUG=-all WINEESYNC=0 WINEDLLOVERRIDES=&amp;quot;dinput8.dll=n,b&amp;quot;; may randomly crash at the title screen (just restart and try again until it works)&lt;br /&gt;
* Kena: Bridge of Spirits&lt;br /&gt;
* Metal Gear Solid V: The Phantom Pain&lt;br /&gt;
* Overwatch 2&lt;br /&gt;
* QUBE 2&lt;br /&gt;
* Risk of Rain 2 (does not require `-disable-gpu-skinning` like Crossover 22)&lt;br /&gt;
* Scarlet Nexus&lt;br /&gt;
* Sonic Omens&lt;br /&gt;
* Sonic P-06&lt;br /&gt;
* Spider-Man (2018)&lt;br /&gt;
* Spider-Man Miles Morales - ''requires Windows ver fix''&lt;br /&gt;
* SpongeBob SquarePants: The Cosmic Shake&lt;br /&gt;
* StarCraft: Remastered - Game runs fine but opening Option menu the second time will cause game not recognizing any inputs.&lt;br /&gt;
* Tetris Effect: Connected - Game window likes to be uncooperative; really doesn't like retina mode, works otherwise&lt;br /&gt;
* V Rising&lt;br /&gt;
* Warframe - ''To get installer/launcher working add dwrite (disabled) to library overrides in winecfg''&lt;br /&gt;
&lt;br /&gt;
Not working well:&lt;br /&gt;
* Horizon Zero Dawn - slowdown issues&lt;br /&gt;
* Genshin Impact - Launches, but stuck when calling menu using esc&lt;br /&gt;
&lt;br /&gt;
Not working yet:&lt;br /&gt;
* Any games that use the EA Launcher&lt;br /&gt;
** Need for Speed Heat&lt;br /&gt;
** Need for Speed Unbound&lt;br /&gt;
** Tom Clancy's The Division 2&lt;br /&gt;
* Among Us&lt;br /&gt;
* Company of Heroes 3&lt;br /&gt;
* F1 21 - Crash on launch&lt;br /&gt;
* F1 22 - Crash on launch (  &amp;quot;Exception&amp;quot;: &amp;quot;C0000005 EXCEPTION_ACCESS_VIOLATION at 0000000141bd8687&amp;quot;)&lt;br /&gt;
* Halo Infinite - Crash on launch&lt;br /&gt;
* Hitman 3 - launcher works, crash at 0x0000014136dddd hitman3+0x136dddd: int $3&lt;br /&gt;
* Microsoft Flight Simulator 2020 (Steam) - Crash on launch&lt;br /&gt;
* Monster Hunter Rise - DX12 Game, it launches but window goes dark after compiling shaders.&lt;br /&gt;
* Monster Hunter World - Black Screen on Launch&lt;br /&gt;
* New World - Game loaded but couldn't connect to server due to Easy Anti Cheat&lt;br /&gt;
* Red Dead Redemption 2&lt;br /&gt;
* Rogue Company - anti-cheat conflict.&lt;br /&gt;
* Sea of Thieves - Launches, but the prompt to sign into an xbox live account appears blank and cannot&lt;br /&gt;
* SpongeBob Squarepants: Battle for Bikini Bottom Rehydrated - Crashes when loading &lt;br /&gt;
* theHunter: Call of the Wild - Crash on launch (Unhandled exception: page fault on read access to 0x0000000000000000 in 64-bit code (0x00000140b227f8))&lt;br /&gt;
* Many (all?) DX9 games&lt;br /&gt;
** 30XX - &amp;quot;Failed to create D3D device&amp;quot; -&amp;gt; crash on launch; this is a rare 64-bit DX9 game&lt;br /&gt;
** Killing Floor 1 - Crash on launch&lt;br /&gt;
** Left 4 Dead 2 - Black screen -&amp;gt; crash on launch&lt;br /&gt;
** Mega Man Zero/ZX Legacy Collection - &amp;quot;Failed to create d3d9 device&amp;quot; -&amp;gt; crash on launch&lt;br /&gt;
** Sonic Mania - Crash on launch&lt;br /&gt;
** StarCraft II -&amp;gt; &amp;quot;Failed to initialize DirectX&amp;quot; error&lt;br /&gt;
** Star Wars: The Old Republic&lt;br /&gt;
** Battlefield 2 - DirectX installation failed, won't launch, see the [https://gist.github.com/chrismwendt/1d01a306cdc8618a06bdfb555743e25c error log]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{References}}&lt;/div&gt;</summary>
		<author><name>Andytizer</name></author>
	</entry>
	<entry>
		<id>https://www.applegamingwiki.com/w/index.php?title=Game_Porting_Toolkit&amp;diff=7639</id>
		<title>Game Porting Toolkit</title>
		<link rel="alternate" type="text/html" href="https://www.applegamingwiki.com/w/index.php?title=Game_Porting_Toolkit&amp;diff=7639"/>
		<updated>2023-06-09T00:35:30Z</updated>

		<summary type="html">&lt;p&gt;Andytizer: Added Windows fix to Battle.net&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Image|Game Porting Toolkit.png|Released 6th June, 2023 at WWDC23.}}&lt;br /&gt;
&lt;br /&gt;
Game Porting Toolkit is Apple's new translation layer released on 6th June, 2023. Game Porting Toolkit ('''GPT''') combines Wine with Apple's own D3DMetal which supports DirectX 11 and 12&amp;lt;ref&amp;gt;{{Refurl|url=https://mastodon.gamedev.place/@gavkar/110501451404624870|title=Gokhan Avkarogullari: &amp;quot;@yiningkarlli @aras @romainguy…&amp;quot; - Gamedev Mastodon}}&amp;lt;/ref&amp;gt;. This is less user-friendly method of installing Windows games on Apple Silicon Macs compared to [[CrossOver]] or [[Parallels]], however it unlocks the ability to play many DirectX 12 games. A lot more games work using GPTK, however, games that use anti-cheat or aggressive DRMs generally don't work, along with games that require AVX/AVX 2, e.g. The Last of Us Part I.&lt;br /&gt;
&lt;br /&gt;
== Toolkit install instructions ==&lt;br /&gt;
=== Requirements ===&lt;br /&gt;
*macOS Sonoma should be used, currently it is in beta. You can download the pkg installer from [https://mrmacintosh.com/macos-sonoma-full-installer-database-download-directly-from-apple/ Mr Macintosh blog].&lt;br /&gt;
*macOS Ventura causes large numbers of issues with steamwebhelper.exe crashing so it isn't recommended, use the macOS Sonoma beta.&lt;br /&gt;
*Visit [https://developer.apple.com/downloads Apple Developer Downloads site], these files are now free to download use for any logged in Apple account.&lt;br /&gt;
**Search for Command Line Tools for Xcode 15 beta and download the dmg file, then install it. *If you have an old version Xcode installed, remove it.&lt;br /&gt;
**Search for Game Porting Toolkit and download it. Open the dmg file and then run the pkg.&lt;br /&gt;
&lt;br /&gt;
=== Homebrew ===&lt;br /&gt;
Note: if you have ever installed Homebrew before, then it is advised to remove ARM64 Homebrew as this can interfere with this build process. Either use a Homebrew uninstall script or delete the folder &amp;lt;code&amp;gt;/opt/homebrew/bin&amp;lt;/code&amp;gt;. If you prefer to keep both ARM64 and x86 versions of brew installed, you may add a &amp;quot;brew-switcher&amp;quot; to your &amp;lt;code&amp;gt;.zshrc&amp;lt;/code&amp;gt; file to allow either version to be used depending on the active architecture. You may follow the steps at the end of this section after installing Brew to achieve this.&lt;br /&gt;
&lt;br /&gt;
Open Terminal (search in Spotlight on macOS).&lt;br /&gt;
&lt;br /&gt;
Install Rosetta:&lt;br /&gt;
&amp;lt;pre&amp;gt;softwareupdate --install-rosetta&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Enter an x86_64 shell to continue the following steps in a Rosetta environment. All subsequent commands should be run within this shell.&lt;br /&gt;
&amp;lt;pre&amp;gt;arch -x86_64 zsh&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Install the x86_64 version of Homebrew if you don't already have it.&lt;br /&gt;
&amp;lt;pre&amp;gt;/bin/bash -c &amp;quot;$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)&amp;quot;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Make sure the brew command is on your path:&lt;br /&gt;
&amp;lt;pre&amp;gt;which brew&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If this command does not print &amp;lt;code&amp;gt;/usr/local/bin/brew&amp;lt;/code&amp;gt;, you should use this command:&lt;br /&gt;
&amp;lt;pre&amp;gt;export PATH=/usr/local/bin:${PATH}&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Fixbox|description=Optionally retain both ARM64 and x86 versions of Brew|ref=|collapsed=yes|fix=&lt;br /&gt;
(Optional) If you want to have both ARM64 and x86 versions of Brew installed, begin by editing your &amp;lt;code&amp;gt;.zshrc&amp;lt;/code&amp;gt; file:&lt;br /&gt;
&amp;lt;pre&amp;gt;nano ~/.zshrc&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Scroll down (by using the arrow keys or Control + V) to the bottom of the file, and paste the following script:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
if [ &amp;quot;$(arch)&amp;quot; = &amp;quot;arm64&amp;quot; ]; then&lt;br /&gt;
    eval &amp;quot;$(/opt/homebrew/bin/brew shellenv)&amp;quot;&lt;br /&gt;
else&lt;br /&gt;
    eval &amp;quot;$(/usr/local/bin/brew shellenv)&amp;quot;&lt;br /&gt;
fi&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You may now restart your terminal and use the following command to return to an x86_64 shell:&lt;br /&gt;
&amp;lt;pre&amp;gt;arch -x86_64 zsh&amp;lt;/pre&amp;gt;&lt;br /&gt;
Your shell will now select the right installation of Brew, depending on your architecture.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=== Build ===&lt;br /&gt;
Run this command to download Apple tap:&lt;br /&gt;
&amp;lt;pre&amp;gt;brew tap apple/apple http://github.com/apple/homebrew-apple&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Install the game-porting-toolkit formula. This formula downloads and compiles several large software projects. How long this takes will depend on the speed of your computer. It can take over 1 hour to complete depending on the speed of your Mac.&lt;br /&gt;
&amp;lt;pre&amp;gt;brew -v install apple/apple/game-porting-toolkit&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If during installation you see an error such as '''“Error: game-porting-toolkit: unknown or unsupported macOS version: :dunno”, your version of Homebrew doesn’t have macOS Sonoma support. Update to the latest version of Homebrew and try again.'''&lt;br /&gt;
&amp;lt;pre&amp;gt;brew update brew -v install apple/apple/game-porting-toolkit&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Preparing the toolkit ===&lt;br /&gt;
Make sure the Game Porting Toolkit dmg downloaded earlier is mounted at /Volumes/Game Porting Toolkit-1.0. Use this script to copy the Game Porting Toolkit library directory into Wine’s library directory.&lt;br /&gt;
&amp;lt;pre&amp;gt;ditto /Volumes/Game\ Porting\ Toolkit-1.0/lib/ `brew --prefix game-porting-toolkit`/lib/&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Put the 3 scripts from the Game Porting Toolkit DMG into here &amp;lt;code&amp;gt;/usr/local/bin&amp;lt;/code&amp;gt; using this command:&lt;br /&gt;
&amp;lt;pre&amp;gt;cp /Volumes/Game\ Porting\ Toolkit*/gameportingtoolkit* /usr/local/bin&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Wine prefix ===&lt;br /&gt;
A Wine prefix contains a virtual C: drive, similar to a Bottle in [[CrossOver]]. You will install the toolkit and your game into this virtual C: drive. Run the following command to create a new Wine prefix named my-game-prefix in your home directory.&lt;br /&gt;
&amp;lt;pre&amp;gt;WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 winecfg&amp;lt;/pre&amp;gt;&lt;br /&gt;
*A “Wine configuration” window should appear on your screen.&lt;br /&gt;
*Change the version of Windows to Windows 10.&lt;br /&gt;
*Choose Apply and then OK to exit winecfg.&lt;br /&gt;
&lt;br /&gt;
If the “Wine configuration” window does not appear, and no new icon appears in the Dock, verify that you have correctly installed the x86_64 version of Homebrew as well as the game-porting-toolkit formula.&lt;br /&gt;
&lt;br /&gt;
Now you are ready to install a launcher or individual Windows games into this Wine prefix, see below.&lt;br /&gt;
&lt;br /&gt;
== Steam ==&lt;br /&gt;
Download the [https://cdn.cloudflare.steamstatic.com/client/installer/SteamSetup.exe Windows version of Steam] and place in your Downloads folder.&lt;br /&gt;
&lt;br /&gt;
'''Install Steam'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix ~/Downloads/SteamSetup.exe&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Run Steam'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix 'C:\Program Files (x86)/Steam/steam.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Log into Steam'''&lt;br /&gt;
&lt;br /&gt;
A common issue is that Steam will present with a blank black window.&lt;br /&gt;
&lt;br /&gt;
Alternate way of launching Steam (after installing):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
MTL_HUD_ENABLED=1 WINEESYNC=1 WINEPREFIX=~/my-game-prefix /usr/local/Cellar/game-porting-toolkit/1.0/bin/wine64 'C:\Program Files (x86)\Steam\steam.exe'&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If this continues then close the Terminal window and then re-open and try again, repeat until the login screen opens. Now you should be able to download and launch Windows games through Steam.&lt;br /&gt;
&lt;br /&gt;
== Battle.net ==&lt;br /&gt;
Download the [https://download.battle.net/en-gb/?platform=windows Windows version of Battle.net] and place in your Downloads folder.&lt;br /&gt;
&lt;br /&gt;
Make a new Wineprefix for Battle.net - we will refer to this as battle-net from now:&lt;br /&gt;
&amp;lt;pre&amp;gt;WINEPREFIX=~/battle-net `brew --prefix game-porting-toolkit`/bin/wine64 winecfg&amp;lt;/pre&amp;gt;&lt;br /&gt;
*A “Wine configuration” window should appear on your screen.&lt;br /&gt;
*Change the version of Windows to &amp;lt;code&amp;gt;Windows 10&amp;lt;/code&amp;gt;.&lt;br /&gt;
*Choose Apply and then OK to exit winecfg.&lt;br /&gt;
&lt;br /&gt;
If you are running Diablo IV, then you need to run this script to update the Wineprefix to appear as a more recent version of Windows:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/battle-net `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion' /v CurrentBuild /t REG_SZ /d 19042 /f&lt;br /&gt;
WINEPREFIX=~/battle-net `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion' /v CurrentBuildNumber /t REG_SZ /d 19042 /f&lt;br /&gt;
WINEPREFIX=~/battle-net `brew --prefix game-porting-toolkit`/bin/wineserver -k&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Run Battle.net launcher'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/battle-net ~/Downloads/Battle.net-Setup.exe&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Be aware that there is an issue launching Battle.net once installed, the only current way to re-login is to 'install' the launcher again. &lt;br /&gt;
&lt;br /&gt;
Start individual game without the launcher using this command:&lt;br /&gt;
&amp;lt;pre&amp;gt;arch -x86_64 gameportingtoolkit-no-hud ~/battle-net 'C:\Program Files (x86)\Diablo IV\Diablo IV Launcher.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Epic and GOG.com support ==&lt;br /&gt;
This is particularly useful because '''as it currently stands, the real Epic Games Launcher fails to install under the Game Porting Toolkit'''. Heroic supports Epic and GOG.com games.&lt;br /&gt;
&lt;br /&gt;
* Install the [https://github.com/Heroic-Games-Launcher/HeroicGamesLauncher/releases native macOS Heroic Games Launcher] or from Homebrew.&lt;br /&gt;
* Open Heroic, and log into your Epic Games and/or GOG.com account.&lt;br /&gt;
* Go to the &amp;quot;Wine Manager&amp;quot; and install a '''numbered''' version of Wine, such that it won't auto update- we are going to modify it.&lt;br /&gt;
** At the time of writing this, the newest numbered version of Wine-Crossover is &amp;lt;code&amp;gt;Wine-Crossover-Wine-22.1.0&amp;lt;/code&amp;gt;&lt;br /&gt;
* Press the folder icon that appears after installing it to open the directory containing Heroic's Wine installations.&lt;br /&gt;
* Right-click on the version of Wine you just installed and press &amp;quot;Show Package Contents&amp;quot;.&lt;br /&gt;
* Open this directory in the Terminal.&lt;br /&gt;
** If you have &amp;quot;OpenInTerminal&amp;quot; this is one button, otherwise press &amp;quot;Show Path Bar&amp;quot; and navigate where it says with &amp;quot;cd&amp;quot;.&lt;br /&gt;
** It should be something like &amp;lt;code&amp;gt;cd ~/Library/Application\ Support/heroic/tools/wine/Wine-crossover-wine-22.1.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
* &amp;lt;pre&amp;gt;cd Contents/MacOS&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Remove the existing Wine: &amp;lt;pre&amp;gt;rm wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Create a symlink to Game Porting Toolkit's Wine: &lt;br /&gt;
** If using Game Porting Toolkit Wineprefix: &amp;lt;pre&amp;gt;ln -s `/usr/local/bin/brew --prefix game-porting-toolkit`/bin/wine64 wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
** If using Whisky: &amp;lt;pre&amp;gt;ln -s /Applications/Whisky.app/Contents/Resources/Libraries/Wine/bin/wine64 wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
* &amp;lt;pre&amp;gt;cd ../Resources&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Remove the existing Wine: &amp;lt;pre&amp;gt;rm -rfv wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Create a symlink to Game Porting Toolkit's Wine&lt;br /&gt;
** If using Game Porting Toolkit Wineprefix: &amp;lt;pre&amp;gt;ln -s `/usr/local/bin/brew --prefix game-porting-toolkit` wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
** If using Whisky: &amp;lt;pre&amp;gt;ln -s /Applications/Whisky.app/Contents/Resources/Libraries/Wine wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
* We are now done with Terminal. Install any games you want to try playing.&lt;br /&gt;
* Select the game you want to play, and press the settings button in the top-right.&lt;br /&gt;
* Make sure the version of Wine you just downloaded and modified is selected.&lt;br /&gt;
* Make sure your Game Porting Toolkit Wine Prefix is selected. If you followed Apple's guide this is &amp;lt;code&amp;gt;/Users/you/my-game-prefix&amp;lt;/code&amp;gt;.&lt;br /&gt;
* If you Open the &amp;quot;Other&amp;quot; section you can also add any environment variables you want like &amp;lt;code&amp;gt;WINEESYNC=1&amp;quot;&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;&amp;quot;MTL_HUD_ENABLED=1&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
* Close the settings and try running the game.&lt;br /&gt;
&lt;br /&gt;
== Commands ==&lt;br /&gt;
Installing individual exe games: open your Wine prefix’s virtual C: drive in Finder (open ~/my-game-prefix/drive_c) and copy your game into an appropriate subdirectory.&lt;br /&gt;
&lt;br /&gt;
'''A. Standard launching'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix 'C:\Program Files (x86)\Steam\steam.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This launches the given Windows game binary with a visible extended Metal Performance HUD and filters logging to output from the Game Porting Toolkit.&lt;br /&gt;
&lt;br /&gt;
'''B. Launching without a HUD'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit-no-hud ~/my-game-prefix 'C:\Program Files (x86)\Steam\steam.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''C. Launching with Wine ESYNC disabled'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit-no-esync ~/my-game-prefix 'C:\Program Files (x86)\Steam\steam.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To enter Winecfg:&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix winecfg&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Shortcut ==&lt;br /&gt;
{{Image|Game Porting Toolkit Steam icon.png|Made by user Omsier.|150px}}&lt;br /&gt;
You can make a shortcut for Steam for example by using macOS built-in Automator app.&lt;br /&gt;
*Open Automator.&lt;br /&gt;
*Select New Application.&lt;br /&gt;
*In the 2nd column select Run Shell Script.&lt;br /&gt;
*Copy and paste this code into the box:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/zsh&lt;br /&gt;
&lt;br /&gt;
export PATH=&amp;quot;/usr/local/bin:${PATH}&amp;quot;&lt;br /&gt;
&lt;br /&gt;
arch -x86_64 gameportingtoolkit ~/my-game-prefix 'C:\Program Files (x86)\Steam\steam.exe'&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the shortcut somewhere e.g. Applications.&lt;br /&gt;
*Above shortcut can be customised to any Wineprefix or game.&lt;br /&gt;
*Add an icon by selecting the shortcut, pressing {{key|cmd|I}} to Get Info, then dragging and dropping a PNG file onto the top left of the window.&lt;br /&gt;
&lt;br /&gt;
== Logging ==&lt;br /&gt;
The provided bin/gameportingtoolkit* scripts can be copied onto your path to facilitate different forms of logging and launching. You can run these scripts from any shell; you don’t need to switch to the Rosetta environment first.&lt;br /&gt;
&lt;br /&gt;
Logging output will appear in the Terminal window in which you launch your game as well as the system log, which can be viewed with the Console app found in Applications ▸ Utilities. Log messages from the Game Porting Toolkit are prefixed with D3DM. By default the gameportingtoolkit* scripts will filter to just the D3DM-prefixed messages.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
{{Image|GPTK Steam black screen.png|Steam login black screen issue.}}&lt;br /&gt;
'''Steam login black screen'''&lt;br /&gt;
&lt;br /&gt;
Close the Terminal window and then reopen and retry the command, repeat several times.&lt;br /&gt;
&lt;br /&gt;
Alternate way of launching Steam (after installing):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
MTL_HUD_ENABLED=1 WINEESYNC=1 WINEPREFIX=&amp;lt;path to the Wine bottle you set up&amp;gt; /usr/local/Cellar/game-porting-toolkit/1.0/bin/wine64 'C:\Program Files (x86)/Steam/steam.exe'&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If still not working then try using [[CrossOver]] and create a Steam bottle, then login, then redirect this WINEPREFIX to that bottle:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=&amp;quot;/Users/[username]/Library/Application Support/CrossOver/Bottles/Steam/&amp;quot; &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Steam crashes straight after opening'''&lt;br /&gt;
&lt;br /&gt;
Disconnect any external monitors.&lt;br /&gt;
&lt;br /&gt;
'''Battle.net launcher won't re-launch'''&lt;br /&gt;
&lt;br /&gt;
Re-install the launcher to reopen, no other fix at the moment.&lt;br /&gt;
&lt;br /&gt;
'''My game won’t run because it thinks the version of Windows is too old. Some games detect specific minimum versions of Windows and need to be updated.''' Use this script to update your wineprefix with build 19042 which should work for most games e.g. Spider-Man Remastered.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion' /v CurrentBuild /t REG_SZ /d 19042 /f&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion' /v CurrentBuildNumber /t REG_SZ /d 19042 /f&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wineserver -k&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''steamwebhelper.exe crashes'''&lt;br /&gt;
&lt;br /&gt;
This is caused by Steam being run through macOS Ventura or below, most users should upgrade to macOS Sonoma. You can use the CrossOver workaround to login to Steam but you'll experience constant crashing.&lt;br /&gt;
&lt;br /&gt;
'''My game won't run and crashes with an invalid instruction'''&lt;br /&gt;
&lt;br /&gt;
AVX and AVX2 games are not supported by Apple's arm64 chipset.&lt;br /&gt;
&lt;br /&gt;
'''My game won't run because its anti-cheat or DRM software is incompatible with Wine translation.'''&lt;br /&gt;
&lt;br /&gt;
Likely there will be no fixes for any games that use anti-cheat, e.g. Easy Anti Cheat. Some games have workarounds e.g. Elden Ring. Other games that use say Denuvo may also be incompatible until that DRM is removed by the game's developer.&lt;br /&gt;
&lt;br /&gt;
'''My game won’t run because it requires Mono, .NET, or the MSVCRT runtime.'''&lt;br /&gt;
&lt;br /&gt;
The game porting toolkit’s evaluation environment does not pre-install these runtime support packages. If your game makes use of one of these packages, consider searching for and downloading appropriate installers (.exe or .msi) and installing them to your evaluation environment. Additional runtime installers can be run on your environment by just launching the installer and following its installation instructions:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 &amp;lt;some-installer.exe&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
And .MSI packages can be installed by launching the Windows uninstaller application and choosing to install a downloaded .msi package:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 uninstaller&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Controller issues'''&lt;br /&gt;
&lt;br /&gt;
Issues may be fixed by enrolling into the Steam beta.&lt;br /&gt;
&lt;br /&gt;
'''My game looks pixelated and the display resolution is limited'''&lt;br /&gt;
&lt;br /&gt;
Enable Retina (high resolution) mode:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_CURRENT_USER\Software\Wine\Mac Driver' /v RetinaMode /t REG_SZ /d 'Y' /f&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Some games will not run with Retina mode enabled. To disable it:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_CURRENT_USER\Software\Wine\Mac Driver' /v RetinaMode /t REG_SZ /d 'N' /f&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Game compatibility list ==&lt;br /&gt;
Working games:&lt;br /&gt;
* Bloodstained: Ritual of the Night&lt;br /&gt;
* Control (DX12 mode, if downloaded from Heroic, needs to be ran by Terminal)&lt;br /&gt;
* Crysis Remastered&lt;br /&gt;
* Cuphead&lt;br /&gt;
* Cyberpunk 2077&lt;br /&gt;
* Deep Rock Galactic&lt;br /&gt;
* Deceive Inc. - works well if launched without EAC&lt;br /&gt;
* Derail Valley (awesome performance, no missing manuals - in-game objects for train operation - like on CrossOver)&lt;br /&gt;
* Diablo IV [https://www.reddit.com/r/macgaming/comments/14307be/comment/jn7dxzo/?utm_source=reddit&amp;amp;utm_medium=web2x&amp;amp;context=3 ]&lt;br /&gt;
* Dyson Sphere Program (some objects and main character weren't visible before)&lt;br /&gt;
* Elden Ring&lt;br /&gt;
* Final Fantasy VII Remake Intergrade (~50 FPS on High settings at 1080p with M1 Pro)&lt;br /&gt;
* God of War (Works somewhat well on M1 Pro (16gb), wouldn't recommend lesser hardware.)&lt;br /&gt;
* Going Medieval&lt;br /&gt;
* Guilty Gear Strive&lt;br /&gt;
* Halo 3 (MCC - No Online due to Easy Anti-Cheat Compatibility) [https://www.reddit.com/r/macgaming/comments/143zoos/halo_3_mcc_no_online_eac_m1_pro_game_porting/]&lt;br /&gt;
* HI-Fi RUSH&lt;br /&gt;
* Hogwarts Legacy&lt;br /&gt;
* Hatsune Miku: Project DIVA Mega Mix+ - works with Retina mode; DivaModLoader and DivaNoSpy recommended; run Steam with WINEDEBUG=-all WINEESYNC=0 WINEDLLOVERRIDES=&amp;quot;dinput8.dll=n,b&amp;quot;; may randomly crash at the title screen (just restart and try again until it works)&lt;br /&gt;
* Kena: Bridge of Spirits&lt;br /&gt;
* Metal Gear Solid V: The Phantom Pain&lt;br /&gt;
* Overwatch 2&lt;br /&gt;
* QUBE 2&lt;br /&gt;
* Risk of Rain 2 (does not require `-disable-gpu-skinning` like Crossover 22)&lt;br /&gt;
* Scarlet Nexus&lt;br /&gt;
* Sonic Omens&lt;br /&gt;
* Sonic P-06&lt;br /&gt;
* Spider-Man (2018)&lt;br /&gt;
* Spider-Man Miles Morales - ''requires Windows ver fix''&lt;br /&gt;
* SpongeBob SquarePants: The Cosmic Shake&lt;br /&gt;
* StarCraft: Remastered - Game runs fine but opening Option menu the second time will cause game not recognizing any inputs.&lt;br /&gt;
* Tetris Effect: Connected - Game window likes to be uncooperative; really doesn't like retina mode, works otherwise&lt;br /&gt;
* Warframe - ''To get installer/launcher working add dwrite (disabled) to library overrides in winecfg''&lt;br /&gt;
&lt;br /&gt;
Not working well:&lt;br /&gt;
* Horizon Zero Dawn - slowdown issues&lt;br /&gt;
&lt;br /&gt;
Not working yet:&lt;br /&gt;
* Among Us&lt;br /&gt;
* Company of Heroes 3&lt;br /&gt;
* F1 22 - Crash on launch (  &amp;quot;Exception&amp;quot;: &amp;quot;C0000005 EXCEPTION_ACCESS_VIOLATION at 0000000141bd8687&amp;quot;)&lt;br /&gt;
* Halo Infinite - Crash on launch&lt;br /&gt;
* Hitman 3 - launcher works, crash at 0x0000014136dddd hitman3+0x136dddd: int $3&lt;br /&gt;
* Microsoft Flight Simulator 2020 (Steam) - Crash on launch&lt;br /&gt;
* Monster Hunter Rise - DX12 Game, it launches but window goes dark after compiling shaders.&lt;br /&gt;
* Monster Hunter World - Black Screen on Launch&lt;br /&gt;
* Red Dead Redemption 2&lt;br /&gt;
* Rogue Company - anti-cheat conflict.&lt;br /&gt;
* Sea of Thieves - Launches, but the prompt to sign into an xbox live account appears blank and cannot&lt;br /&gt;
* Many (all?) DX9 games&lt;br /&gt;
** 30XX - &amp;quot;Failed to create D3D device&amp;quot; -&amp;gt; crash on launch; this is a rare 64-bit DX9 game&lt;br /&gt;
** Killing Floor 1 - Crash on launch&lt;br /&gt;
** Left 4 Dead 2 - Black screen -&amp;gt; crash on launch&lt;br /&gt;
** Mega Man Zero/ZX Legacy Collection - &amp;quot;Failed to create d3d9 device&amp;quot; -&amp;gt; crash on launch&lt;br /&gt;
** Sonic Mania - Crash on launch&lt;br /&gt;
** StarCraft II -&amp;gt; &amp;quot;Failed to initialize DirectX&amp;quot; error&lt;br /&gt;
** Battlefield 2 - DirectX installation failed, won't launch, see the [https://gist.github.com/chrismwendt/1d01a306cdc8618a06bdfb555743e25c error log]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{References}}&lt;/div&gt;</summary>
		<author><name>Andytizer</name></author>
	</entry>
	<entry>
		<id>https://www.applegamingwiki.com/w/index.php?title=Game_Porting_Toolkit&amp;diff=7638</id>
		<title>Game Porting Toolkit</title>
		<link rel="alternate" type="text/html" href="https://www.applegamingwiki.com/w/index.php?title=Game_Porting_Toolkit&amp;diff=7638"/>
		<updated>2023-06-09T00:27:37Z</updated>

		<summary type="html">&lt;p&gt;Andytizer: /* Toolkit install instructions */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Image|Game Porting Toolkit.png|Released 6th June, 2023 at WWDC23.}}&lt;br /&gt;
&lt;br /&gt;
Game Porting Toolkit is Apple's new translation layer released on 6th June, 2023. Game Porting Toolkit ('''GPT''') combines Wine with Apple's own D3DMetal which supports DirectX 11 and 12&amp;lt;ref&amp;gt;{{Refurl|url=https://mastodon.gamedev.place/@gavkar/110501451404624870|title=Gokhan Avkarogullari: &amp;quot;@yiningkarlli @aras @romainguy…&amp;quot; - Gamedev Mastodon}}&amp;lt;/ref&amp;gt;. This is less user-friendly method of installing Windows games on Apple Silicon Macs compared to [[CrossOver]] or [[Parallels]], however it unlocks the ability to play many DirectX 12 games. A lot more games work using GPTK, however, games that use anti-cheat or aggressive DRMs generally don't work, along with games that require AVX/AVX 2, e.g. The Last of Us Part I.&lt;br /&gt;
&lt;br /&gt;
== Toolkit install instructions ==&lt;br /&gt;
=== Requirements ===&lt;br /&gt;
*macOS Sonoma should be used, currently it is in beta. You can download the pkg installer from [https://mrmacintosh.com/macos-sonoma-full-installer-database-download-directly-from-apple/ Mr Macintosh blog].&lt;br /&gt;
*macOS Ventura causes large numbers of issues with steamwebhelper.exe crashing so it isn't recommended, use the macOS Sonoma beta.&lt;br /&gt;
*Visit [https://developer.apple.com/downloads Apple Developer Downloads site], these files are now free to download use for any logged in Apple account.&lt;br /&gt;
**Search for Command Line Tools for Xcode 15 beta and download the dmg file, then install it. *If you have an old version Xcode installed, remove it.&lt;br /&gt;
**Search for Game Porting Toolkit and download it. Open the dmg file and then run the pkg.&lt;br /&gt;
&lt;br /&gt;
=== Homebrew ===&lt;br /&gt;
Note: if you have ever installed Homebrew before, then it is advised to remove ARM64 Homebrew as this can interfere with this build process. Either use a Homebrew uninstall script or delete the folder &amp;lt;code&amp;gt;/opt/homebrew/bin&amp;lt;/code&amp;gt;. If you prefer to keep both ARM64 and x86 versions of brew installed, you may add a &amp;quot;brew-switcher&amp;quot; to your &amp;lt;code&amp;gt;.zshrc&amp;lt;/code&amp;gt; file to allow either version to be used depending on the active architecture. You may follow the steps at the end of this section after installing Brew to achieve this.&lt;br /&gt;
&lt;br /&gt;
Open Terminal (search in Spotlight on macOS).&lt;br /&gt;
&lt;br /&gt;
Install Rosetta:&lt;br /&gt;
&amp;lt;pre&amp;gt;softwareupdate --install-rosetta&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Enter an x86_64 shell to continue the following steps in a Rosetta environment. All subsequent commands should be run within this shell.&lt;br /&gt;
&amp;lt;pre&amp;gt;arch -x86_64 zsh&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Install the x86_64 version of Homebrew if you don't already have it.&lt;br /&gt;
&amp;lt;pre&amp;gt;/bin/bash -c &amp;quot;$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)&amp;quot;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Make sure the brew command is on your path:&lt;br /&gt;
&amp;lt;pre&amp;gt;which brew&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If this command does not print &amp;lt;code&amp;gt;/usr/local/bin/brew&amp;lt;/code&amp;gt;, you should use this command:&lt;br /&gt;
&amp;lt;pre&amp;gt;export PATH=/usr/local/bin:${PATH}&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Fixbox|description=Optionally retain both ARM64 and x86 versions of Brew|ref=|collapsed=yes|fix=&lt;br /&gt;
(Optional) If you want to have both ARM64 and x86 versions of Brew installed, begin by editing your &amp;lt;code&amp;gt;.zshrc&amp;lt;/code&amp;gt; file:&lt;br /&gt;
&amp;lt;pre&amp;gt;nano ~/.zshrc&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Scroll down (by using the arrow keys or Control + V) to the bottom of the file, and paste the following script:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
if [ &amp;quot;$(arch)&amp;quot; = &amp;quot;arm64&amp;quot; ]; then&lt;br /&gt;
    eval &amp;quot;$(/opt/homebrew/bin/brew shellenv)&amp;quot;&lt;br /&gt;
else&lt;br /&gt;
    eval &amp;quot;$(/usr/local/bin/brew shellenv)&amp;quot;&lt;br /&gt;
fi&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You may now restart your terminal and use the following command to return to an x86_64 shell:&lt;br /&gt;
&amp;lt;pre&amp;gt;arch -x86_64 zsh&amp;lt;/pre&amp;gt;&lt;br /&gt;
Your shell will now select the right installation of Brew, depending on your architecture.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=== Build ===&lt;br /&gt;
Run this command to download Apple tap:&lt;br /&gt;
&amp;lt;pre&amp;gt;brew tap apple/apple http://github.com/apple/homebrew-apple&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Install the game-porting-toolkit formula. This formula downloads and compiles several large software projects. How long this takes will depend on the speed of your computer. It can take over 1 hour to complete depending on the speed of your Mac.&lt;br /&gt;
&amp;lt;pre&amp;gt;brew -v install apple/apple/game-porting-toolkit&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If during installation you see an error such as '''“Error: game-porting-toolkit: unknown or unsupported macOS version: :dunno”, your version of Homebrew doesn’t have macOS Sonoma support. Update to the latest version of Homebrew and try again.'''&lt;br /&gt;
&amp;lt;pre&amp;gt;brew update brew -v install apple/apple/game-porting-toolkit&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Preparing the toolkit ===&lt;br /&gt;
Make sure the Game Porting Toolkit dmg downloaded earlier is mounted at /Volumes/Game Porting Toolkit-1.0. Use this script to copy the Game Porting Toolkit library directory into Wine’s library directory.&lt;br /&gt;
&amp;lt;pre&amp;gt;ditto /Volumes/Game\ Porting\ Toolkit-1.0/lib/ `brew --prefix game-porting-toolkit`/lib/&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Put the 3 scripts from the Game Porting Toolkit DMG into here &amp;lt;code&amp;gt;/usr/local/bin&amp;lt;/code&amp;gt; using this command:&lt;br /&gt;
&amp;lt;pre&amp;gt;cp /Volumes/Game\ Porting\ Toolkit*/gameportingtoolkit* /usr/local/bin&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Wine prefix ===&lt;br /&gt;
A Wine prefix contains a virtual C: drive, similar to a Bottle in [[CrossOver]]. You will install the toolkit and your game into this virtual C: drive. Run the following command to create a new Wine prefix named my-game-prefix in your home directory.&lt;br /&gt;
&amp;lt;pre&amp;gt;WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 winecfg&amp;lt;/pre&amp;gt;&lt;br /&gt;
*A “Wine configuration” window should appear on your screen.&lt;br /&gt;
*Change the version of Windows to Windows 10.&lt;br /&gt;
*Choose Apply and then OK to exit winecfg.&lt;br /&gt;
&lt;br /&gt;
If the “Wine configuration” window does not appear, and no new icon appears in the Dock, verify that you have correctly installed the x86_64 version of Homebrew as well as the game-porting-toolkit formula.&lt;br /&gt;
&lt;br /&gt;
Now you are ready to install a launcher or individual Windows games into this Wine prefix, see below.&lt;br /&gt;
&lt;br /&gt;
== Steam ==&lt;br /&gt;
Download the [https://cdn.cloudflare.steamstatic.com/client/installer/SteamSetup.exe Windows version of Steam] and place in your Downloads folder.&lt;br /&gt;
&lt;br /&gt;
'''Install Steam'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix ~/Downloads/SteamSetup.exe&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Run Steam'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix 'C:\Program Files (x86)/Steam/steam.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Log into Steam'''&lt;br /&gt;
&lt;br /&gt;
A common issue is that Steam will present with a blank black window.&lt;br /&gt;
&lt;br /&gt;
Alternate way of launching Steam (after installing):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
MTL_HUD_ENABLED=1 WINEESYNC=1 WINEPREFIX=~/my-game-prefix /usr/local/Cellar/game-porting-toolkit/1.0/bin/wine64 'C:\Program Files (x86)\Steam\steam.exe'&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If this continues then close the Terminal window and then re-open and try again, repeat until the login screen opens. Now you should be able to download and launch Windows games through Steam.&lt;br /&gt;
&lt;br /&gt;
== Battle.net ==&lt;br /&gt;
Download the [https://download.battle.net/en-gb/?platform=windows Windows version of Battle.net] and place in your Downloads folder.&lt;br /&gt;
&lt;br /&gt;
Make a new Wineprefix for Battle.net - we will refer to this as battle-net from now:&lt;br /&gt;
&amp;lt;pre&amp;gt;WINEPREFIX=~/battle-net `brew --prefix game-porting-toolkit`/bin/wine64 winecfg&amp;lt;/pre&amp;gt;&lt;br /&gt;
*A “Wine configuration” window should appear on your screen.&lt;br /&gt;
*Change the version of Windows to &amp;lt;code&amp;gt;Windows 10&amp;lt;/code&amp;gt;.&lt;br /&gt;
*Choose Apply and then OK to exit winecfg.&lt;br /&gt;
&lt;br /&gt;
'''Run Battle.net launcher'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/battle-net ~/Downloads/Battle.net-Setup.exe&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Be aware that there is an issue launching Battle.net once installed, the only current way to re-login is to 'install' the launcher again. &lt;br /&gt;
&lt;br /&gt;
Start individual game without the launcher using this command:&lt;br /&gt;
&amp;lt;pre&amp;gt;arch -x86_64 gameportingtoolkit-no-hud ~/battle-net 'C:\Program Files (x86)\Diablo IV\Diablo IV Launcher.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Epic and GOG.com support ==&lt;br /&gt;
This is particularly useful because '''as it currently stands, the real Epic Games Launcher fails to install under the Game Porting Toolkit'''. Heroic supports Epic and GOG.com games.&lt;br /&gt;
&lt;br /&gt;
* Install the [https://github.com/Heroic-Games-Launcher/HeroicGamesLauncher/releases native macOS Heroic Games Launcher] or from Homebrew.&lt;br /&gt;
* Open Heroic, and log into your Epic Games and/or GOG.com account.&lt;br /&gt;
* Go to the &amp;quot;Wine Manager&amp;quot; and install a '''numbered''' version of Wine, such that it won't auto update- we are going to modify it.&lt;br /&gt;
** At the time of writing this, the newest numbered version of Wine-Crossover is &amp;lt;code&amp;gt;Wine-Crossover-Wine-22.1.0&amp;lt;/code&amp;gt;&lt;br /&gt;
* Press the folder icon that appears after installing it to open the directory containing Heroic's Wine installations.&lt;br /&gt;
* Right-click on the version of Wine you just installed and press &amp;quot;Show Package Contents&amp;quot;.&lt;br /&gt;
* Open this directory in the Terminal.&lt;br /&gt;
** If you have &amp;quot;OpenInTerminal&amp;quot; this is one button, otherwise press &amp;quot;Show Path Bar&amp;quot; and navigate where it says with &amp;quot;cd&amp;quot;.&lt;br /&gt;
** It should be something like &amp;lt;code&amp;gt;cd ~/Library/Application\ Support/heroic/tools/wine/Wine-crossover-wine-22.1.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
* &amp;lt;pre&amp;gt;cd Contents/MacOS&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Remove the existing Wine: &amp;lt;pre&amp;gt;rm wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Create a symlink to Game Porting Toolkit's Wine: &lt;br /&gt;
** If using Game Porting Toolkit Wineprefix: &amp;lt;pre&amp;gt;ln -s `/usr/local/bin/brew --prefix game-porting-toolkit`/bin/wine64 wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
** If using Whisky: &amp;lt;pre&amp;gt;ln -s /Applications/Whisky.app/Contents/Resources/Libraries/Wine/bin/wine64 wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
* &amp;lt;pre&amp;gt;cd ../Resources&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Remove the existing Wine: &amp;lt;pre&amp;gt;rm -rfv wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Create a symlink to Game Porting Toolkit's Wine&lt;br /&gt;
** If using Game Porting Toolkit Wineprefix: &amp;lt;pre&amp;gt;ln -s `/usr/local/bin/brew --prefix game-porting-toolkit` wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
** If using Whisky: &amp;lt;pre&amp;gt;ln -s /Applications/Whisky.app/Contents/Resources/Libraries/Wine wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
* We are now done with Terminal. Install any games you want to try playing.&lt;br /&gt;
* Select the game you want to play, and press the settings button in the top-right.&lt;br /&gt;
* Make sure the version of Wine you just downloaded and modified is selected.&lt;br /&gt;
* Make sure your Game Porting Toolkit Wine Prefix is selected. If you followed Apple's guide this is &amp;lt;code&amp;gt;/Users/you/my-game-prefix&amp;lt;/code&amp;gt;.&lt;br /&gt;
* If you Open the &amp;quot;Other&amp;quot; section you can also add any environment variables you want like &amp;lt;code&amp;gt;WINEESYNC=1&amp;quot;&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;&amp;quot;MTL_HUD_ENABLED=1&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
* Close the settings and try running the game.&lt;br /&gt;
&lt;br /&gt;
== Commands ==&lt;br /&gt;
Installing individual exe games: open your Wine prefix’s virtual C: drive in Finder (open ~/my-game-prefix/drive_c) and copy your game into an appropriate subdirectory.&lt;br /&gt;
&lt;br /&gt;
'''A. Standard launching'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix 'C:\Program Files (x86)\Steam\steam.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This launches the given Windows game binary with a visible extended Metal Performance HUD and filters logging to output from the Game Porting Toolkit.&lt;br /&gt;
&lt;br /&gt;
'''B. Launching without a HUD'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit-no-hud ~/my-game-prefix 'C:\Program Files (x86)\Steam\steam.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''C. Launching with Wine ESYNC disabled'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit-no-esync ~/my-game-prefix 'C:\Program Files (x86)\Steam\steam.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To enter Winecfg:&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix winecfg&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Shortcut ==&lt;br /&gt;
{{Image|Game Porting Toolkit Steam icon.png|Made by user Omsier.|150px}}&lt;br /&gt;
You can make a shortcut for Steam for example by using macOS built-in Automator app.&lt;br /&gt;
*Open Automator.&lt;br /&gt;
*Select New Application.&lt;br /&gt;
*In the 2nd column select Run Shell Script.&lt;br /&gt;
*Copy and paste this code into the box:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/zsh&lt;br /&gt;
&lt;br /&gt;
export PATH=&amp;quot;/usr/local/bin:${PATH}&amp;quot;&lt;br /&gt;
&lt;br /&gt;
arch -x86_64 gameportingtoolkit ~/my-game-prefix 'C:\Program Files (x86)\Steam\steam.exe'&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the shortcut somewhere e.g. Applications.&lt;br /&gt;
*Above shortcut can be customised to any Wineprefix or game.&lt;br /&gt;
*Add an icon by selecting the shortcut, pressing {{key|cmd|I}} to Get Info, then dragging and dropping a PNG file onto the top left of the window.&lt;br /&gt;
&lt;br /&gt;
== Logging ==&lt;br /&gt;
The provided bin/gameportingtoolkit* scripts can be copied onto your path to facilitate different forms of logging and launching. You can run these scripts from any shell; you don’t need to switch to the Rosetta environment first.&lt;br /&gt;
&lt;br /&gt;
Logging output will appear in the Terminal window in which you launch your game as well as the system log, which can be viewed with the Console app found in Applications ▸ Utilities. Log messages from the Game Porting Toolkit are prefixed with D3DM. By default the gameportingtoolkit* scripts will filter to just the D3DM-prefixed messages.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
{{Image|GPTK Steam black screen.png|Steam login black screen issue.}}&lt;br /&gt;
'''Steam login black screen'''&lt;br /&gt;
&lt;br /&gt;
Close the Terminal window and then reopen and retry the command, repeat several times.&lt;br /&gt;
&lt;br /&gt;
Alternate way of launching Steam (after installing):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
MTL_HUD_ENABLED=1 WINEESYNC=1 WINEPREFIX=&amp;lt;path to the Wine bottle you set up&amp;gt; /usr/local/Cellar/game-porting-toolkit/1.0/bin/wine64 'C:\Program Files (x86)/Steam/steam.exe'&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If still not working then try using [[CrossOver]] and create a Steam bottle, then login, then redirect this WINEPREFIX to that bottle:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=&amp;quot;/Users/[username]/Library/Application Support/CrossOver/Bottles/Steam/&amp;quot; &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Steam crashes straight after opening'''&lt;br /&gt;
&lt;br /&gt;
Disconnect any external monitors.&lt;br /&gt;
&lt;br /&gt;
'''Battle.net launcher won't re-launch'''&lt;br /&gt;
&lt;br /&gt;
Re-install the launcher to reopen, no other fix at the moment.&lt;br /&gt;
&lt;br /&gt;
'''My game won’t run because it thinks the version of Windows is too old. Some games detect specific minimum versions of Windows and need to be updated.''' Use this script to update your wineprefix with build 19042 which should work for most games e.g. Spider-Man Remastered.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion' /v CurrentBuild /t REG_SZ /d 19042 /f&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion' /v CurrentBuildNumber /t REG_SZ /d 19042 /f&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wineserver -k&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''steamwebhelper.exe crashes'''&lt;br /&gt;
&lt;br /&gt;
This is caused by Steam being run through macOS Ventura or below, most users should upgrade to macOS Sonoma. You can use the CrossOver workaround to login to Steam but you'll experience constant crashing.&lt;br /&gt;
&lt;br /&gt;
'''My game won't run and crashes with an invalid instruction'''&lt;br /&gt;
&lt;br /&gt;
AVX and AVX2 games are not supported by Apple's arm64 chipset.&lt;br /&gt;
&lt;br /&gt;
'''My game won't run because its anti-cheat or DRM software is incompatible with Wine translation.'''&lt;br /&gt;
&lt;br /&gt;
Likely there will be no fixes for any games that use anti-cheat, e.g. Easy Anti Cheat. Some games have workarounds e.g. Elden Ring. Other games that use say Denuvo may also be incompatible until that DRM is removed by the game's developer.&lt;br /&gt;
&lt;br /&gt;
'''My game won’t run because it requires Mono, .NET, or the MSVCRT runtime.'''&lt;br /&gt;
&lt;br /&gt;
The game porting toolkit’s evaluation environment does not pre-install these runtime support packages. If your game makes use of one of these packages, consider searching for and downloading appropriate installers (.exe or .msi) and installing them to your evaluation environment. Additional runtime installers can be run on your environment by just launching the installer and following its installation instructions:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 &amp;lt;some-installer.exe&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
And .MSI packages can be installed by launching the Windows uninstaller application and choosing to install a downloaded .msi package:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 uninstaller&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Controller issues'''&lt;br /&gt;
&lt;br /&gt;
Issues may be fixed by enrolling into the Steam beta.&lt;br /&gt;
&lt;br /&gt;
'''My game looks pixelated and the display resolution is limited'''&lt;br /&gt;
&lt;br /&gt;
Enable Retina (high resolution) mode:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_CURRENT_USER\Software\Wine\Mac Driver' /v RetinaMode /t REG_SZ /d 'Y' /f&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Some games will not run with Retina mode enabled. To disable it:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_CURRENT_USER\Software\Wine\Mac Driver' /v RetinaMode /t REG_SZ /d 'N' /f&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Game compatibility list ==&lt;br /&gt;
Working games:&lt;br /&gt;
* Bloodstained: Ritual of the Night&lt;br /&gt;
* Control (DX12 mode, if downloaded from Heroic, needs to be ran by Terminal)&lt;br /&gt;
* Crysis Remastered&lt;br /&gt;
* Cuphead&lt;br /&gt;
* Cyberpunk 2077&lt;br /&gt;
* Deep Rock Galactic&lt;br /&gt;
* Deceive Inc. - works well if launched without EAC&lt;br /&gt;
* Derail Valley (awesome performance, no missing manuals - in-game objects for train operation - like on CrossOver)&lt;br /&gt;
* Diablo IV [https://www.reddit.com/r/macgaming/comments/14307be/comment/jn7dxzo/?utm_source=reddit&amp;amp;utm_medium=web2x&amp;amp;context=3 ]&lt;br /&gt;
* Dyson Sphere Program (some objects and main character weren't visible before)&lt;br /&gt;
* Elden Ring&lt;br /&gt;
* Final Fantasy VII Remake Intergrade (~50 FPS on High settings at 1080p with M1 Pro)&lt;br /&gt;
* God of War (Works somewhat well on M1 Pro (16gb), wouldn't recommend lesser hardware.)&lt;br /&gt;
* Going Medieval&lt;br /&gt;
* Guilty Gear Strive&lt;br /&gt;
* Halo 3 (MCC - No Online due to Easy Anti-Cheat Compatibility) [https://www.reddit.com/r/macgaming/comments/143zoos/halo_3_mcc_no_online_eac_m1_pro_game_porting/]&lt;br /&gt;
* HI-Fi RUSH&lt;br /&gt;
* Hogwarts Legacy&lt;br /&gt;
* Hatsune Miku: Project DIVA Mega Mix+ - works with Retina mode; DivaModLoader and DivaNoSpy recommended; run Steam with WINEDEBUG=-all WINEESYNC=0 WINEDLLOVERRIDES=&amp;quot;dinput8.dll=n,b&amp;quot;; may randomly crash at the title screen (just restart and try again until it works)&lt;br /&gt;
* Kena: Bridge of Spirits&lt;br /&gt;
* Metal Gear Solid V: The Phantom Pain&lt;br /&gt;
* Overwatch 2&lt;br /&gt;
* QUBE 2&lt;br /&gt;
* Risk of Rain 2 (does not require `-disable-gpu-skinning` like Crossover 22)&lt;br /&gt;
* Scarlet Nexus&lt;br /&gt;
* Sonic Omens&lt;br /&gt;
* Sonic P-06&lt;br /&gt;
* Spider-Man (2018)&lt;br /&gt;
* Spider-Man Miles Morales - ''requires Windows ver fix''&lt;br /&gt;
* SpongeBob SquarePants: The Cosmic Shake&lt;br /&gt;
* StarCraft: Remastered - Game runs fine but opening Option menu the second time will cause game not recognizing any inputs.&lt;br /&gt;
* Tetris Effect: Connected - Game window likes to be uncooperative; really doesn't like retina mode, works otherwise&lt;br /&gt;
* Warframe - ''To get installer/launcher working add dwrite (disabled) to library overrides in winecfg''&lt;br /&gt;
&lt;br /&gt;
Not working well:&lt;br /&gt;
* Horizon Zero Dawn - slowdown issues&lt;br /&gt;
&lt;br /&gt;
Not working yet:&lt;br /&gt;
* Among Us&lt;br /&gt;
* Company of Heroes 3&lt;br /&gt;
* F1 22 - Crash on launch (  &amp;quot;Exception&amp;quot;: &amp;quot;C0000005 EXCEPTION_ACCESS_VIOLATION at 0000000141bd8687&amp;quot;)&lt;br /&gt;
* Halo Infinite - Crash on launch&lt;br /&gt;
* Hitman 3 - launcher works, crash at 0x0000014136dddd hitman3+0x136dddd: int $3&lt;br /&gt;
* Microsoft Flight Simulator 2020 (Steam) - Crash on launch&lt;br /&gt;
* Monster Hunter Rise - DX12 Game, it launches but window goes dark after compiling shaders.&lt;br /&gt;
* Monster Hunter World - Black Screen on Launch&lt;br /&gt;
* Red Dead Redemption 2&lt;br /&gt;
* Rogue Company - anti-cheat conflict.&lt;br /&gt;
* Sea of Thieves - Launches, but the prompt to sign into an xbox live account appears blank and cannot&lt;br /&gt;
* Many (all?) DX9 games&lt;br /&gt;
** 30XX - &amp;quot;Failed to create D3D device&amp;quot; -&amp;gt; crash on launch; this is a rare 64-bit DX9 game&lt;br /&gt;
** Killing Floor 1 - Crash on launch&lt;br /&gt;
** Left 4 Dead 2 - Black screen -&amp;gt; crash on launch&lt;br /&gt;
** Mega Man Zero/ZX Legacy Collection - &amp;quot;Failed to create d3d9 device&amp;quot; -&amp;gt; crash on launch&lt;br /&gt;
** Sonic Mania - Crash on launch&lt;br /&gt;
** StarCraft II -&amp;gt; &amp;quot;Failed to initialize DirectX&amp;quot; error&lt;br /&gt;
** Battlefield 2 - DirectX installation failed, won't launch, see the [https://gist.github.com/chrismwendt/1d01a306cdc8618a06bdfb555743e25c error log]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{References}}&lt;/div&gt;</summary>
		<author><name>Andytizer</name></author>
	</entry>
	<entry>
		<id>https://www.applegamingwiki.com/w/index.php?title=Game_Porting_Toolkit&amp;diff=7637</id>
		<title>Game Porting Toolkit</title>
		<link rel="alternate" type="text/html" href="https://www.applegamingwiki.com/w/index.php?title=Game_Porting_Toolkit&amp;diff=7637"/>
		<updated>2023-06-08T23:16:40Z</updated>

		<summary type="html">&lt;p&gt;Andytizer: /* Battle.net */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Image|Game Porting Toolkit.png|Released 6th June, 2023 at WWDC23.}}&lt;br /&gt;
&lt;br /&gt;
Game Porting Toolkit is Apple's new translation layer released on 6th June, 2023. Game Porting Toolkit ('''GPT''') combines Wine with Apple's own D3DMetal which supports DirectX 11 and 12&amp;lt;ref&amp;gt;{{Refurl|url=https://mastodon.gamedev.place/@gavkar/110501451404624870|title=Gokhan Avkarogullari: &amp;quot;@yiningkarlli @aras @romainguy…&amp;quot; - Gamedev Mastodon}}&amp;lt;/ref&amp;gt;. This is less user-friendly method of installing Windows games on Apple Silicon Macs compared to [[CrossOver]] or [[Parallels]], however it unlocks the ability to play many DirectX 12 games. A lot more games work using GPTK, however, games that use anti-cheat or aggressive DRMs generally don't work, along with games that require AVX/AVX 2, e.g. The Last of Us Part I.&lt;br /&gt;
&lt;br /&gt;
== Toolkit install instructions ==&lt;br /&gt;
=== Requirements ===&lt;br /&gt;
*macOS Sonoma should be used, currently it is in beta. You can download the pkg installer from [https://mrmacintosh.com/macos-sonoma-full-installer-database-download-directly-from-apple/ Mr Macintosh blog].&lt;br /&gt;
*macOS Ventura causes large numbers of issues with steamwebhelper.exe crashing so it isn't recommended, use the macOS Sonoma beta.&lt;br /&gt;
*Visit [https://developer.apple.com/downloads Apple Developer Downloads site], these files are now free to download use for any logged in Apple account.&lt;br /&gt;
**Search for Command Line Tools for Xcode 15 beta and download the dmg file, then install it. *If you have an old version Xcode installed, remove it.&lt;br /&gt;
**Search for Game Porting Toolkit and download it. Open the dmg file and then run the pkg.&lt;br /&gt;
&lt;br /&gt;
=== Homebrew ===&lt;br /&gt;
Note: if you have ever installed Homebrew before, then it is advised to remove ARM64 Homebrew as this can interfere with this build process. Either use a Homebrew uninstall script or delete the folder &amp;lt;code&amp;gt;/opt/homebrew/bin&amp;lt;/code&amp;gt;. If you prefer to keep both ARM64 and x86 versions of brew installed, you may add a &amp;quot;brew-switcher&amp;quot; to your &amp;lt;code&amp;gt;.zshrc&amp;lt;/code&amp;gt; file to allow either version to be used depending on the active architecture. You may follow the steps at the end of this section after installing Brew to achieve this.&lt;br /&gt;
&lt;br /&gt;
Open Terminal (search in Spotlight on macOS).&lt;br /&gt;
&lt;br /&gt;
Install Rosetta:&lt;br /&gt;
&amp;lt;pre&amp;gt;softwareupdate --install-rosetta&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Enter an x86_64 shell to continue the following steps in a Rosetta environment. All subsequent commands should be run within this shell.&lt;br /&gt;
&amp;lt;pre&amp;gt;arch -x86_64 zsh&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Install the x86_64 version of Homebrew if you don't already have it.&lt;br /&gt;
&amp;lt;pre&amp;gt;/bin/bash -c &amp;quot;$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)&amp;quot;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Make sure the brew command is on your path:&lt;br /&gt;
&amp;lt;pre&amp;gt;which brew&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If this command does not print &amp;lt;code&amp;gt;/usr/local/bin/brew&amp;lt;/code&amp;gt;, you should use this command:&lt;br /&gt;
&amp;lt;pre&amp;gt;export PATH=/usr/local/bin:${PATH}&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Fixbox|description=Optionally retain both ARM64 and x86 versions of Brew|ref=|collapsed=yes|fix=&lt;br /&gt;
(Optional) If you want to have both ARM64 and x86 versions of Brew installed, begin by editing your &amp;lt;code&amp;gt;.zshrc&amp;lt;/code&amp;gt; file:&lt;br /&gt;
&amp;lt;pre&amp;gt;nano ~/.zshrc&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Scroll down (by using the arrow keys or Control + V) to the bottom of the file, and paste the following script:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
if [ &amp;quot;$(arch)&amp;quot; = &amp;quot;arm64&amp;quot; ]; then&lt;br /&gt;
    eval &amp;quot;$(/opt/homebrew/bin/brew shellenv)&amp;quot;&lt;br /&gt;
else&lt;br /&gt;
    eval &amp;quot;$(/usr/local/bin/brew shellenv)&amp;quot;&lt;br /&gt;
fi&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You may now restart your terminal and use the following command to return to an x86_64 shell:&lt;br /&gt;
&amp;lt;pre&amp;gt;arch -x86_64 zsh&amp;lt;/pre&amp;gt;&lt;br /&gt;
Your shell will now select the right installation of Brew, depending on your architecture.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=== Build ===&lt;br /&gt;
Run this command to download Apple tap:&lt;br /&gt;
&amp;lt;pre&amp;gt;brew tap apple/apple http://github.com/apple/homebrew-apple&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Install the game-porting-toolkit formula. This formula downloads and compiles several large software projects. How long this takes will depend on the speed of your computer. It can take over 1 hour to complete depending on the speed of your Mac.&lt;br /&gt;
&amp;lt;pre&amp;gt;brew -v install apple/apple/game-porting-toolkit&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If during installation you see an error such as '''“Error: game-porting-toolkit: unknown or unsupported macOS version: :dunno”, your version of Homebrew doesn’t have macOS Sonoma support. Update to the latest version of Homebrew and try again.'''&lt;br /&gt;
&amp;lt;pre&amp;gt;brew update brew -v install apple/apple/game-porting-toolkit&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Wine prefix ===&lt;br /&gt;
A Wine prefix contains a virtual C: drive. You will install the toolkit and your game into this virtual C: drive. Run the following command to create a new Wine prefix named my-game-prefix in your home directory.&lt;br /&gt;
&amp;lt;pre&amp;gt;WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 winecfg&amp;lt;/pre&amp;gt;&lt;br /&gt;
*A “Wine configuration” window should appear on your screen.&lt;br /&gt;
*Change the version of Windows to Windows 10.&lt;br /&gt;
*Choose Apply and then OK to exit winecfg.&lt;br /&gt;
&lt;br /&gt;
If the “Wine configuration” window does not appear, and no new icon appears in the Dock, verify that you have correctly installed the x86_64 version of Homebrew as well as the game-porting-toolkit formula.&lt;br /&gt;
&lt;br /&gt;
=== Preparing the toolkit ===&lt;br /&gt;
Make sure the Game Porting Toolkit dmg downloaded earlier is mounted at /Volumes/Game Porting Toolkit-1.0. Use this script to copy the Game Porting Toolkit library directory into Wine’s library directory.&lt;br /&gt;
&amp;lt;pre&amp;gt;ditto /Volumes/Game\ Porting\ Toolkit-1.0/lib/ `brew --prefix game-porting-toolkit`/lib/&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Put the 3 scripts from the Game Porting Toolkit DMG into here &amp;lt;code&amp;gt;/usr/local/bin&amp;lt;/code&amp;gt; using this command:&lt;br /&gt;
&amp;lt;pre&amp;gt;cp /Volumes/Game\ Porting\ Toolkit*/gameportingtoolkit* /usr/local/bin&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now you are ready to install a launcher or individual Windows games, see below.&lt;br /&gt;
&lt;br /&gt;
== Steam ==&lt;br /&gt;
Download the [https://cdn.cloudflare.steamstatic.com/client/installer/SteamSetup.exe Windows version of Steam] and place in your Downloads folder.&lt;br /&gt;
&lt;br /&gt;
'''Install Steam'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix ~/Downloads/SteamSetup.exe&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Run Steam'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix 'C:\Program Files (x86)/Steam/steam.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Log into Steam'''&lt;br /&gt;
&lt;br /&gt;
A common issue is that Steam will present with a blank black window.&lt;br /&gt;
&lt;br /&gt;
Alternate way of launching Steam (after installing):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
MTL_HUD_ENABLED=1 WINEESYNC=1 WINEPREFIX=~/my-game-prefix /usr/local/Cellar/game-porting-toolkit/1.0/bin/wine64 'C:\Program Files (x86)\Steam\steam.exe'&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If this continues then close the Terminal window and then re-open and try again, repeat until the login screen opens. Now you should be able to download and launch Windows games through Steam.&lt;br /&gt;
&lt;br /&gt;
== Battle.net ==&lt;br /&gt;
Download the [https://download.battle.net/en-gb/?platform=windows Windows version of Battle.net] and place in your Downloads folder.&lt;br /&gt;
&lt;br /&gt;
Make a new Wineprefix for Battle.net - we will refer to this as battle-net from now:&lt;br /&gt;
&amp;lt;pre&amp;gt;WINEPREFIX=~/battle-net `brew --prefix game-porting-toolkit`/bin/wine64 winecfg&amp;lt;/pre&amp;gt;&lt;br /&gt;
*A “Wine configuration” window should appear on your screen.&lt;br /&gt;
*Change the version of Windows to &amp;lt;code&amp;gt;Windows 10&amp;lt;/code&amp;gt;.&lt;br /&gt;
*Choose Apply and then OK to exit winecfg.&lt;br /&gt;
&lt;br /&gt;
'''Run Battle.net launcher'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/battle-net ~/Downloads/Battle.net-Setup.exe&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Be aware that there is an issue launching Battle.net once installed, the only current way to re-login is to 'install' the launcher again. &lt;br /&gt;
&lt;br /&gt;
Start individual game without the launcher using this command:&lt;br /&gt;
&amp;lt;pre&amp;gt;arch -x86_64 gameportingtoolkit-no-hud ~/battle-net 'C:\Program Files (x86)\Diablo IV\Diablo IV Launcher.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Epic and GOG.com support ==&lt;br /&gt;
This is particularly useful because '''as it currently stands, the real Epic Games Launcher fails to install under the Game Porting Toolkit'''. Heroic supports Epic and GOG.com games.&lt;br /&gt;
&lt;br /&gt;
* Install the [https://github.com/Heroic-Games-Launcher/HeroicGamesLauncher/releases native macOS Heroic Games Launcher] or from Homebrew.&lt;br /&gt;
* Open Heroic, and log into your Epic Games and/or GOG.com account.&lt;br /&gt;
* Go to the &amp;quot;Wine Manager&amp;quot; and install a '''numbered''' version of Wine, such that it won't auto update- we are going to modify it.&lt;br /&gt;
** At the time of writing this, the newest numbered version of Wine-Crossover is &amp;lt;code&amp;gt;Wine-Crossover-Wine-22.1.0&amp;lt;/code&amp;gt;&lt;br /&gt;
* Press the folder icon that appears after installing it to open the directory containing Heroic's Wine installations.&lt;br /&gt;
* Right-click on the version of Wine you just installed and press &amp;quot;Show Package Contents&amp;quot;.&lt;br /&gt;
* Open this directory in the Terminal.&lt;br /&gt;
** If you have &amp;quot;OpenInTerminal&amp;quot; this is one button, otherwise press &amp;quot;Show Path Bar&amp;quot; and navigate where it says with &amp;quot;cd&amp;quot;.&lt;br /&gt;
** It should be something like &amp;lt;code&amp;gt;cd ~/Library/Application\ Support/heroic/tools/wine/Wine-crossover-wine-22.1.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
* &amp;lt;pre&amp;gt;cd Contents/MacOS&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Remove the existing Wine: &amp;lt;pre&amp;gt;rm wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Create a symlink to Game Porting Toolkit's Wine: &lt;br /&gt;
** If using Game Porting Toolkit Wineprefix: &amp;lt;pre&amp;gt;ln -s `/usr/local/bin/brew --prefix game-porting-toolkit`/bin/wine64 wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
** If using Whisky: &amp;lt;pre&amp;gt;ln -s /Applications/Whisky.app/Contents/Resources/Libraries/Wine/bin/wine64 wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
* &amp;lt;pre&amp;gt;cd ../Resources&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Remove the existing Wine: &amp;lt;pre&amp;gt;rm -rfv wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Create a symlink to Game Porting Toolkit's Wine&lt;br /&gt;
** If using Game Porting Toolkit Wineprefix: &amp;lt;pre&amp;gt;ln -s `/usr/local/bin/brew --prefix game-porting-toolkit` wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
** If using Whisky: &amp;lt;pre&amp;gt;ln -s /Applications/Whisky.app/Contents/Resources/Libraries/Wine wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
* We are now done with Terminal. Install any games you want to try playing.&lt;br /&gt;
* Select the game you want to play, and press the settings button in the top-right.&lt;br /&gt;
* Make sure the version of Wine you just downloaded and modified is selected.&lt;br /&gt;
* Make sure your Game Porting Toolkit Wine Prefix is selected. If you followed Apple's guide this is &amp;lt;code&amp;gt;/Users/you/my-game-prefix&amp;lt;/code&amp;gt;.&lt;br /&gt;
* If you Open the &amp;quot;Other&amp;quot; section you can also add any environment variables you want like &amp;lt;code&amp;gt;WINEESYNC=1&amp;quot;&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;&amp;quot;MTL_HUD_ENABLED=1&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
* Close the settings and try running the game.&lt;br /&gt;
&lt;br /&gt;
== Commands ==&lt;br /&gt;
Installing individual exe games: open your Wine prefix’s virtual C: drive in Finder (open ~/my-game-prefix/drive_c) and copy your game into an appropriate subdirectory.&lt;br /&gt;
&lt;br /&gt;
'''A. Standard launching'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix 'C:\Program Files (x86)\Steam\steam.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This launches the given Windows game binary with a visible extended Metal Performance HUD and filters logging to output from the Game Porting Toolkit.&lt;br /&gt;
&lt;br /&gt;
'''B. Launching without a HUD'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit-no-hud ~/my-game-prefix 'C:\Program Files (x86)\Steam\steam.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''C. Launching with Wine ESYNC disabled'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit-no-esync ~/my-game-prefix 'C:\Program Files (x86)\Steam\steam.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To enter Winecfg:&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix winecfg&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Shortcut ==&lt;br /&gt;
{{Image|Game Porting Toolkit Steam icon.png|Made by user Omsier.|150px}}&lt;br /&gt;
You can make a shortcut for Steam for example by using macOS built-in Automator app.&lt;br /&gt;
*Open Automator.&lt;br /&gt;
*Select New Application.&lt;br /&gt;
*In the 2nd column select Run Shell Script.&lt;br /&gt;
*Copy and paste this code into the box:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/zsh&lt;br /&gt;
&lt;br /&gt;
export PATH=&amp;quot;/usr/local/bin:${PATH}&amp;quot;&lt;br /&gt;
&lt;br /&gt;
arch -x86_64 gameportingtoolkit ~/my-game-prefix 'C:\Program Files (x86)\Steam\steam.exe'&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the shortcut somewhere e.g. Applications.&lt;br /&gt;
*Above shortcut can be customised to any Wineprefix or game.&lt;br /&gt;
*Add an icon by selecting the shortcut, pressing {{key|cmd|I}} to Get Info, then dragging and dropping a PNG file onto the top left of the window.&lt;br /&gt;
&lt;br /&gt;
== Logging ==&lt;br /&gt;
The provided bin/gameportingtoolkit* scripts can be copied onto your path to facilitate different forms of logging and launching. You can run these scripts from any shell; you don’t need to switch to the Rosetta environment first.&lt;br /&gt;
&lt;br /&gt;
Logging output will appear in the Terminal window in which you launch your game as well as the system log, which can be viewed with the Console app found in Applications ▸ Utilities. Log messages from the Game Porting Toolkit are prefixed with D3DM. By default the gameportingtoolkit* scripts will filter to just the D3DM-prefixed messages.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
{{Image|GPTK Steam black screen.png|Steam login black screen issue.}}&lt;br /&gt;
'''Steam login black screen'''&lt;br /&gt;
&lt;br /&gt;
Close the Terminal window and then reopen and retry the command, repeat several times.&lt;br /&gt;
&lt;br /&gt;
Alternate way of launching Steam (after installing):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
MTL_HUD_ENABLED=1 WINEESYNC=1 WINEPREFIX=&amp;lt;path to the Wine bottle you set up&amp;gt; /usr/local/Cellar/game-porting-toolkit/1.0/bin/wine64 'C:\Program Files (x86)/Steam/steam.exe'&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If still not working then try using [[CrossOver]] and create a Steam bottle, then login, then redirect this WINEPREFIX to that bottle:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=&amp;quot;/Users/[username]/Library/Application Support/CrossOver/Bottles/Steam/&amp;quot; &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Steam crashes straight after opening'''&lt;br /&gt;
&lt;br /&gt;
Disconnect any external monitors.&lt;br /&gt;
&lt;br /&gt;
'''Battle.net launcher won't re-launch'''&lt;br /&gt;
&lt;br /&gt;
Re-install the launcher to reopen, no other fix at the moment.&lt;br /&gt;
&lt;br /&gt;
'''My game won’t run because it thinks the version of Windows is too old. Some games detect specific minimum versions of Windows and need to be updated.''' Use this script to update your wineprefix with build 19042 which should work for most games e.g. Spider-Man Remastered.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion' /v CurrentBuild /t REG_SZ /d 19042 /f&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion' /v CurrentBuildNumber /t REG_SZ /d 19042 /f&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wineserver -k&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''steamwebhelper.exe crashes'''&lt;br /&gt;
&lt;br /&gt;
This is caused by Steam being run through macOS Ventura or below, most users should upgrade to macOS Sonoma. You can use the CrossOver workaround to login to Steam but you'll experience constant crashing.&lt;br /&gt;
&lt;br /&gt;
'''My game won't run and crashes with an invalid instruction'''&lt;br /&gt;
&lt;br /&gt;
AVX and AVX2 games are not supported by Apple's arm64 chipset.&lt;br /&gt;
&lt;br /&gt;
'''My game won't run because its anti-cheat or DRM software is incompatible with Wine translation.'''&lt;br /&gt;
&lt;br /&gt;
Likely there will be no fixes for any games that use anti-cheat, e.g. Easy Anti Cheat. Some games have workarounds e.g. Elden Ring. Other games that use say Denuvo may also be incompatible until that DRM is removed by the game's developer.&lt;br /&gt;
&lt;br /&gt;
'''My game won’t run because it requires Mono, .NET, or the MSVCRT runtime.'''&lt;br /&gt;
&lt;br /&gt;
The game porting toolkit’s evaluation environment does not pre-install these runtime support packages. If your game makes use of one of these packages, consider searching for and downloading appropriate installers (.exe or .msi) and installing them to your evaluation environment. Additional runtime installers can be run on your environment by just launching the installer and following its installation instructions:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 &amp;lt;some-installer.exe&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
And .MSI packages can be installed by launching the Windows uninstaller application and choosing to install a downloaded .msi package:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 uninstaller&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Controller issues'''&lt;br /&gt;
&lt;br /&gt;
Issues may be fixed by enrolling into the Steam beta.&lt;br /&gt;
&lt;br /&gt;
'''My game looks pixelated and the display resolution is limited'''&lt;br /&gt;
&lt;br /&gt;
Enable Retina (high resolution) mode:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_CURRENT_USER\Software\Wine\Mac Driver' /v RetinaMode /t REG_SZ /d 'Y' /f&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Some games will not run with Retina mode enabled. To disable it:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_CURRENT_USER\Software\Wine\Mac Driver' /v RetinaMode /t REG_SZ /d 'N' /f&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Game compatibility list ==&lt;br /&gt;
Working games:&lt;br /&gt;
* Bloodstained: Ritual of the Night&lt;br /&gt;
* Control (DX12 mode, if downloaded from Heroic, needs to be ran by Terminal)&lt;br /&gt;
* Crysis Remastered&lt;br /&gt;
* Cuphead&lt;br /&gt;
* Cyberpunk 2077&lt;br /&gt;
* Deep Rock Galactic&lt;br /&gt;
* Deceive Inc. - works well if launched without EAC&lt;br /&gt;
* Derail Valley (awesome performance, no missing manuals - in-game objects for train operation - like on CrossOver)&lt;br /&gt;
* Diablo IV [https://www.reddit.com/r/macgaming/comments/14307be/comment/jn7dxzo/?utm_source=reddit&amp;amp;utm_medium=web2x&amp;amp;context=3 ]&lt;br /&gt;
* Dyson Sphere Program (some objects and main character weren't visible before)&lt;br /&gt;
* Elden Ring&lt;br /&gt;
* Final Fantasy VII Remake Intergrade (~50 FPS on High settings at 1080p with M1 Pro)&lt;br /&gt;
* God of War (Works somewhat well on M1 Pro (16gb), wouldn't recommend lesser hardware.)&lt;br /&gt;
* Going Medieval&lt;br /&gt;
* Guilty Gear Strive&lt;br /&gt;
* Halo 3 (MCC - No Online due to Easy Anti-Cheat Compatibility) [https://www.reddit.com/r/macgaming/comments/143zoos/halo_3_mcc_no_online_eac_m1_pro_game_porting/]&lt;br /&gt;
* HI-Fi RUSH&lt;br /&gt;
* Hogwarts Legacy&lt;br /&gt;
* Hatsune Miku: Project DIVA Mega Mix+ - works with Retina mode; DivaModLoader and DivaNoSpy recommended; run Steam with WINEDEBUG=-all WINEESYNC=0 WINEDLLOVERRIDES=&amp;quot;dinput8.dll=n,b&amp;quot;; may randomly crash at the title screen (just restart and try again until it works)&lt;br /&gt;
* Kena: Bridge of Spirits&lt;br /&gt;
* Metal Gear Solid V: The Phantom Pain&lt;br /&gt;
* Overwatch 2&lt;br /&gt;
* QUBE 2&lt;br /&gt;
* Risk of Rain 2 (does not require `-disable-gpu-skinning` like Crossover 22)&lt;br /&gt;
* Scarlet Nexus&lt;br /&gt;
* Sonic Omens&lt;br /&gt;
* Sonic P-06&lt;br /&gt;
* Spider-Man (2018)&lt;br /&gt;
* Spider-Man Miles Morales - ''requires Windows ver fix''&lt;br /&gt;
* SpongeBob SquarePants: The Cosmic Shake&lt;br /&gt;
* StarCraft: Remastered - Game runs fine but opening Option menu the second time will cause game not recognizing any inputs.&lt;br /&gt;
* Tetris Effect: Connected - Game window likes to be uncooperative; really doesn't like retina mode, works otherwise&lt;br /&gt;
* Warframe - ''To get installer/launcher working add dwrite (disabled) to library overrides in winecfg''&lt;br /&gt;
&lt;br /&gt;
Not working well:&lt;br /&gt;
* Horizon Zero Dawn - slowdown issues&lt;br /&gt;
&lt;br /&gt;
Not working yet:&lt;br /&gt;
* Among Us&lt;br /&gt;
* Company of Heroes 3&lt;br /&gt;
* F1 22 - Crash on launch (  &amp;quot;Exception&amp;quot;: &amp;quot;C0000005 EXCEPTION_ACCESS_VIOLATION at 0000000141bd8687&amp;quot;)&lt;br /&gt;
* Halo Infinite - Crash on launch&lt;br /&gt;
* Hitman 3 - launcher works, crash at 0x0000014136dddd hitman3+0x136dddd: int $3&lt;br /&gt;
* Microsoft Flight Simulator 2020 (Steam) - Crash on launch&lt;br /&gt;
* Monster Hunter Rise - DX12 Game, it launches but window goes dark after compiling shaders.&lt;br /&gt;
* Monster Hunter World - Black Screen on Launch&lt;br /&gt;
* Red Dead Redemption 2&lt;br /&gt;
* Rogue Company - anti-cheat conflict.&lt;br /&gt;
* Sea of Thieves - Launches, but the prompt to sign into an xbox live account appears blank and cannot&lt;br /&gt;
* Many (all?) DX9 games&lt;br /&gt;
** 30XX - &amp;quot;Failed to create D3D device&amp;quot; -&amp;gt; crash on launch; this is a rare 64-bit DX9 game&lt;br /&gt;
** Killing Floor 1 - Crash on launch&lt;br /&gt;
** Left 4 Dead 2 - Black screen -&amp;gt; crash on launch&lt;br /&gt;
** Mega Man Zero/ZX Legacy Collection - &amp;quot;Failed to create d3d9 device&amp;quot; -&amp;gt; crash on launch&lt;br /&gt;
** Sonic Mania - Crash on launch&lt;br /&gt;
** StarCraft II -&amp;gt; &amp;quot;Failed to initialize DirectX&amp;quot; error&lt;br /&gt;
** Battlefield 2 - DirectX installation failed, won't launch, see the [https://gist.github.com/chrismwendt/1d01a306cdc8618a06bdfb555743e25c error log]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{References}}&lt;/div&gt;</summary>
		<author><name>Andytizer</name></author>
	</entry>
	<entry>
		<id>https://www.applegamingwiki.com/w/index.php?title=Game_Porting_Toolkit&amp;diff=7636</id>
		<title>Game Porting Toolkit</title>
		<link rel="alternate" type="text/html" href="https://www.applegamingwiki.com/w/index.php?title=Game_Porting_Toolkit&amp;diff=7636"/>
		<updated>2023-06-08T23:14:23Z</updated>

		<summary type="html">&lt;p&gt;Andytizer: /* Shortcut */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Image|Game Porting Toolkit.png|Released 6th June, 2023 at WWDC23.}}&lt;br /&gt;
&lt;br /&gt;
Game Porting Toolkit is Apple's new translation layer released on 6th June, 2023. Game Porting Toolkit ('''GPT''') combines Wine with Apple's own D3DMetal which supports DirectX 11 and 12&amp;lt;ref&amp;gt;{{Refurl|url=https://mastodon.gamedev.place/@gavkar/110501451404624870|title=Gokhan Avkarogullari: &amp;quot;@yiningkarlli @aras @romainguy…&amp;quot; - Gamedev Mastodon}}&amp;lt;/ref&amp;gt;. This is less user-friendly method of installing Windows games on Apple Silicon Macs compared to [[CrossOver]] or [[Parallels]], however it unlocks the ability to play many DirectX 12 games. A lot more games work using GPTK, however, games that use anti-cheat or aggressive DRMs generally don't work, along with games that require AVX/AVX 2, e.g. The Last of Us Part I.&lt;br /&gt;
&lt;br /&gt;
== Toolkit install instructions ==&lt;br /&gt;
=== Requirements ===&lt;br /&gt;
*macOS Sonoma should be used, currently it is in beta. You can download the pkg installer from [https://mrmacintosh.com/macos-sonoma-full-installer-database-download-directly-from-apple/ Mr Macintosh blog].&lt;br /&gt;
*macOS Ventura causes large numbers of issues with steamwebhelper.exe crashing so it isn't recommended, use the macOS Sonoma beta.&lt;br /&gt;
*Visit [https://developer.apple.com/downloads Apple Developer Downloads site], these files are now free to download use for any logged in Apple account.&lt;br /&gt;
**Search for Command Line Tools for Xcode 15 beta and download the dmg file, then install it. *If you have an old version Xcode installed, remove it.&lt;br /&gt;
**Search for Game Porting Toolkit and download it. Open the dmg file and then run the pkg.&lt;br /&gt;
&lt;br /&gt;
=== Homebrew ===&lt;br /&gt;
Note: if you have ever installed Homebrew before, then it is advised to remove ARM64 Homebrew as this can interfere with this build process. Either use a Homebrew uninstall script or delete the folder &amp;lt;code&amp;gt;/opt/homebrew/bin&amp;lt;/code&amp;gt;. If you prefer to keep both ARM64 and x86 versions of brew installed, you may add a &amp;quot;brew-switcher&amp;quot; to your &amp;lt;code&amp;gt;.zshrc&amp;lt;/code&amp;gt; file to allow either version to be used depending on the active architecture. You may follow the steps at the end of this section after installing Brew to achieve this.&lt;br /&gt;
&lt;br /&gt;
Open Terminal (search in Spotlight on macOS).&lt;br /&gt;
&lt;br /&gt;
Install Rosetta:&lt;br /&gt;
&amp;lt;pre&amp;gt;softwareupdate --install-rosetta&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Enter an x86_64 shell to continue the following steps in a Rosetta environment. All subsequent commands should be run within this shell.&lt;br /&gt;
&amp;lt;pre&amp;gt;arch -x86_64 zsh&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Install the x86_64 version of Homebrew if you don't already have it.&lt;br /&gt;
&amp;lt;pre&amp;gt;/bin/bash -c &amp;quot;$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)&amp;quot;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Make sure the brew command is on your path:&lt;br /&gt;
&amp;lt;pre&amp;gt;which brew&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If this command does not print &amp;lt;code&amp;gt;/usr/local/bin/brew&amp;lt;/code&amp;gt;, you should use this command:&lt;br /&gt;
&amp;lt;pre&amp;gt;export PATH=/usr/local/bin:${PATH}&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Fixbox|description=Optionally retain both ARM64 and x86 versions of Brew|ref=|collapsed=yes|fix=&lt;br /&gt;
(Optional) If you want to have both ARM64 and x86 versions of Brew installed, begin by editing your &amp;lt;code&amp;gt;.zshrc&amp;lt;/code&amp;gt; file:&lt;br /&gt;
&amp;lt;pre&amp;gt;nano ~/.zshrc&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Scroll down (by using the arrow keys or Control + V) to the bottom of the file, and paste the following script:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
if [ &amp;quot;$(arch)&amp;quot; = &amp;quot;arm64&amp;quot; ]; then&lt;br /&gt;
    eval &amp;quot;$(/opt/homebrew/bin/brew shellenv)&amp;quot;&lt;br /&gt;
else&lt;br /&gt;
    eval &amp;quot;$(/usr/local/bin/brew shellenv)&amp;quot;&lt;br /&gt;
fi&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You may now restart your terminal and use the following command to return to an x86_64 shell:&lt;br /&gt;
&amp;lt;pre&amp;gt;arch -x86_64 zsh&amp;lt;/pre&amp;gt;&lt;br /&gt;
Your shell will now select the right installation of Brew, depending on your architecture.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=== Build ===&lt;br /&gt;
Run this command to download Apple tap:&lt;br /&gt;
&amp;lt;pre&amp;gt;brew tap apple/apple http://github.com/apple/homebrew-apple&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Install the game-porting-toolkit formula. This formula downloads and compiles several large software projects. How long this takes will depend on the speed of your computer. It can take over 1 hour to complete depending on the speed of your Mac.&lt;br /&gt;
&amp;lt;pre&amp;gt;brew -v install apple/apple/game-porting-toolkit&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If during installation you see an error such as '''“Error: game-porting-toolkit: unknown or unsupported macOS version: :dunno”, your version of Homebrew doesn’t have macOS Sonoma support. Update to the latest version of Homebrew and try again.'''&lt;br /&gt;
&amp;lt;pre&amp;gt;brew update brew -v install apple/apple/game-porting-toolkit&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Wine prefix ===&lt;br /&gt;
A Wine prefix contains a virtual C: drive. You will install the toolkit and your game into this virtual C: drive. Run the following command to create a new Wine prefix named my-game-prefix in your home directory.&lt;br /&gt;
&amp;lt;pre&amp;gt;WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 winecfg&amp;lt;/pre&amp;gt;&lt;br /&gt;
*A “Wine configuration” window should appear on your screen.&lt;br /&gt;
*Change the version of Windows to Windows 10.&lt;br /&gt;
*Choose Apply and then OK to exit winecfg.&lt;br /&gt;
&lt;br /&gt;
If the “Wine configuration” window does not appear, and no new icon appears in the Dock, verify that you have correctly installed the x86_64 version of Homebrew as well as the game-porting-toolkit formula.&lt;br /&gt;
&lt;br /&gt;
=== Preparing the toolkit ===&lt;br /&gt;
Make sure the Game Porting Toolkit dmg downloaded earlier is mounted at /Volumes/Game Porting Toolkit-1.0. Use this script to copy the Game Porting Toolkit library directory into Wine’s library directory.&lt;br /&gt;
&amp;lt;pre&amp;gt;ditto /Volumes/Game\ Porting\ Toolkit-1.0/lib/ `brew --prefix game-porting-toolkit`/lib/&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Put the 3 scripts from the Game Porting Toolkit DMG into here &amp;lt;code&amp;gt;/usr/local/bin&amp;lt;/code&amp;gt; using this command:&lt;br /&gt;
&amp;lt;pre&amp;gt;cp /Volumes/Game\ Porting\ Toolkit*/gameportingtoolkit* /usr/local/bin&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now you are ready to install a launcher or individual Windows games, see below.&lt;br /&gt;
&lt;br /&gt;
== Steam ==&lt;br /&gt;
Download the [https://cdn.cloudflare.steamstatic.com/client/installer/SteamSetup.exe Windows version of Steam] and place in your Downloads folder.&lt;br /&gt;
&lt;br /&gt;
'''Install Steam'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix ~/Downloads/SteamSetup.exe&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Run Steam'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix 'C:\Program Files (x86)/Steam/steam.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Log into Steam'''&lt;br /&gt;
&lt;br /&gt;
A common issue is that Steam will present with a blank black window.&lt;br /&gt;
&lt;br /&gt;
Alternate way of launching Steam (after installing):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
MTL_HUD_ENABLED=1 WINEESYNC=1 WINEPREFIX=~/my-game-prefix /usr/local/Cellar/game-porting-toolkit/1.0/bin/wine64 'C:\Program Files (x86)\Steam\steam.exe'&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If this continues then close the Terminal window and then re-open and try again, repeat until the login screen opens. Now you should be able to download and launch Windows games through Steam.&lt;br /&gt;
&lt;br /&gt;
== Battle.net ==&lt;br /&gt;
Download the [https://download.battle.net/en-gb/?platform=windows Windows version of Battle.net].&lt;br /&gt;
&lt;br /&gt;
Make a new Wineprefix for Battle.net - we will refer to this as battle-net from now:&lt;br /&gt;
&amp;lt;pre&amp;gt;WINEPREFIX=~/battle-net `brew --prefix game-porting-toolkit`/bin/wine64 winecfg&amp;lt;/pre&amp;gt;&lt;br /&gt;
*A “Wine configuration” window should appear on your screen.&lt;br /&gt;
*Change the version of Windows to &amp;lt;code&amp;gt;Windows 10&amp;lt;/code&amp;gt;.&lt;br /&gt;
*Choose Apply and then OK to exit winecfg.&lt;br /&gt;
&lt;br /&gt;
'''Run Battle.net launcher'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/battle-net ~/Downloads/Battle.net-Setup.exe&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Be aware that there is an issue launching Battle.net once installed, the only current way to re-login is to 'install' the launcher again. &lt;br /&gt;
&lt;br /&gt;
Start individual game without the launcher using this command:&lt;br /&gt;
&amp;lt;pre&amp;gt;arch -x86_64 gameportingtoolkit-no-hud ~/battle-net 'C:\Program Files (x86)\Diablo IV\Diablo IV Launcher.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Epic and GOG.com support ==&lt;br /&gt;
This is particularly useful because '''as it currently stands, the real Epic Games Launcher fails to install under the Game Porting Toolkit'''. Heroic supports Epic and GOG.com games.&lt;br /&gt;
&lt;br /&gt;
* Install the [https://github.com/Heroic-Games-Launcher/HeroicGamesLauncher/releases native macOS Heroic Games Launcher] or from Homebrew.&lt;br /&gt;
* Open Heroic, and log into your Epic Games and/or GOG.com account.&lt;br /&gt;
* Go to the &amp;quot;Wine Manager&amp;quot; and install a '''numbered''' version of Wine, such that it won't auto update- we are going to modify it.&lt;br /&gt;
** At the time of writing this, the newest numbered version of Wine-Crossover is &amp;lt;code&amp;gt;Wine-Crossover-Wine-22.1.0&amp;lt;/code&amp;gt;&lt;br /&gt;
* Press the folder icon that appears after installing it to open the directory containing Heroic's Wine installations.&lt;br /&gt;
* Right-click on the version of Wine you just installed and press &amp;quot;Show Package Contents&amp;quot;.&lt;br /&gt;
* Open this directory in the Terminal.&lt;br /&gt;
** If you have &amp;quot;OpenInTerminal&amp;quot; this is one button, otherwise press &amp;quot;Show Path Bar&amp;quot; and navigate where it says with &amp;quot;cd&amp;quot;.&lt;br /&gt;
** It should be something like &amp;lt;code&amp;gt;cd ~/Library/Application\ Support/heroic/tools/wine/Wine-crossover-wine-22.1.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
* &amp;lt;pre&amp;gt;cd Contents/MacOS&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Remove the existing Wine: &amp;lt;pre&amp;gt;rm wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Create a symlink to Game Porting Toolkit's Wine: &lt;br /&gt;
** If using Game Porting Toolkit Wineprefix: &amp;lt;pre&amp;gt;ln -s `/usr/local/bin/brew --prefix game-porting-toolkit`/bin/wine64 wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
** If using Whisky: &amp;lt;pre&amp;gt;ln -s /Applications/Whisky.app/Contents/Resources/Libraries/Wine/bin/wine64 wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
* &amp;lt;pre&amp;gt;cd ../Resources&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Remove the existing Wine: &amp;lt;pre&amp;gt;rm -rfv wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Create a symlink to Game Porting Toolkit's Wine&lt;br /&gt;
** If using Game Porting Toolkit Wineprefix: &amp;lt;pre&amp;gt;ln -s `/usr/local/bin/brew --prefix game-porting-toolkit` wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
** If using Whisky: &amp;lt;pre&amp;gt;ln -s /Applications/Whisky.app/Contents/Resources/Libraries/Wine wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
* We are now done with Terminal. Install any games you want to try playing.&lt;br /&gt;
* Select the game you want to play, and press the settings button in the top-right.&lt;br /&gt;
* Make sure the version of Wine you just downloaded and modified is selected.&lt;br /&gt;
* Make sure your Game Porting Toolkit Wine Prefix is selected. If you followed Apple's guide this is &amp;lt;code&amp;gt;/Users/you/my-game-prefix&amp;lt;/code&amp;gt;.&lt;br /&gt;
* If you Open the &amp;quot;Other&amp;quot; section you can also add any environment variables you want like &amp;lt;code&amp;gt;WINEESYNC=1&amp;quot;&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;&amp;quot;MTL_HUD_ENABLED=1&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
* Close the settings and try running the game.&lt;br /&gt;
&lt;br /&gt;
== Commands ==&lt;br /&gt;
Installing individual exe games: open your Wine prefix’s virtual C: drive in Finder (open ~/my-game-prefix/drive_c) and copy your game into an appropriate subdirectory.&lt;br /&gt;
&lt;br /&gt;
'''A. Standard launching'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix 'C:\Program Files (x86)\Steam\steam.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This launches the given Windows game binary with a visible extended Metal Performance HUD and filters logging to output from the Game Porting Toolkit.&lt;br /&gt;
&lt;br /&gt;
'''B. Launching without a HUD'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit-no-hud ~/my-game-prefix 'C:\Program Files (x86)\Steam\steam.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''C. Launching with Wine ESYNC disabled'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit-no-esync ~/my-game-prefix 'C:\Program Files (x86)\Steam\steam.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To enter Winecfg:&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix winecfg&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Shortcut ==&lt;br /&gt;
{{Image|Game Porting Toolkit Steam icon.png|Made by user Omsier.|150px}}&lt;br /&gt;
You can make a shortcut for Steam for example by using macOS built-in Automator app.&lt;br /&gt;
*Open Automator.&lt;br /&gt;
*Select New Application.&lt;br /&gt;
*In the 2nd column select Run Shell Script.&lt;br /&gt;
*Copy and paste this code into the box:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/zsh&lt;br /&gt;
&lt;br /&gt;
export PATH=&amp;quot;/usr/local/bin:${PATH}&amp;quot;&lt;br /&gt;
&lt;br /&gt;
arch -x86_64 gameportingtoolkit ~/my-game-prefix 'C:\Program Files (x86)\Steam\steam.exe'&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the shortcut somewhere e.g. Applications.&lt;br /&gt;
*Above shortcut can be customised to any Wineprefix or game.&lt;br /&gt;
*Add an icon by selecting the shortcut, pressing {{key|cmd|I}} to Get Info, then dragging and dropping a PNG file onto the top left of the window.&lt;br /&gt;
&lt;br /&gt;
== Logging ==&lt;br /&gt;
The provided bin/gameportingtoolkit* scripts can be copied onto your path to facilitate different forms of logging and launching. You can run these scripts from any shell; you don’t need to switch to the Rosetta environment first.&lt;br /&gt;
&lt;br /&gt;
Logging output will appear in the Terminal window in which you launch your game as well as the system log, which can be viewed with the Console app found in Applications ▸ Utilities. Log messages from the Game Porting Toolkit are prefixed with D3DM. By default the gameportingtoolkit* scripts will filter to just the D3DM-prefixed messages.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
{{Image|GPTK Steam black screen.png|Steam login black screen issue.}}&lt;br /&gt;
'''Steam login black screen'''&lt;br /&gt;
&lt;br /&gt;
Close the Terminal window and then reopen and retry the command, repeat several times.&lt;br /&gt;
&lt;br /&gt;
Alternate way of launching Steam (after installing):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
MTL_HUD_ENABLED=1 WINEESYNC=1 WINEPREFIX=&amp;lt;path to the Wine bottle you set up&amp;gt; /usr/local/Cellar/game-porting-toolkit/1.0/bin/wine64 'C:\Program Files (x86)/Steam/steam.exe'&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If still not working then try using [[CrossOver]] and create a Steam bottle, then login, then redirect this WINEPREFIX to that bottle:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=&amp;quot;/Users/[username]/Library/Application Support/CrossOver/Bottles/Steam/&amp;quot; &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Steam crashes straight after opening'''&lt;br /&gt;
&lt;br /&gt;
Disconnect any external monitors.&lt;br /&gt;
&lt;br /&gt;
'''Battle.net launcher won't re-launch'''&lt;br /&gt;
&lt;br /&gt;
Re-install the launcher to reopen, no other fix at the moment.&lt;br /&gt;
&lt;br /&gt;
'''My game won’t run because it thinks the version of Windows is too old. Some games detect specific minimum versions of Windows and need to be updated.''' Use this script to update your wineprefix with build 19042 which should work for most games e.g. Spider-Man Remastered.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion' /v CurrentBuild /t REG_SZ /d 19042 /f&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion' /v CurrentBuildNumber /t REG_SZ /d 19042 /f&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wineserver -k&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''steamwebhelper.exe crashes'''&lt;br /&gt;
&lt;br /&gt;
This is caused by Steam being run through macOS Ventura or below, most users should upgrade to macOS Sonoma. You can use the CrossOver workaround to login to Steam but you'll experience constant crashing.&lt;br /&gt;
&lt;br /&gt;
'''My game won't run and crashes with an invalid instruction'''&lt;br /&gt;
&lt;br /&gt;
AVX and AVX2 games are not supported by Apple's arm64 chipset.&lt;br /&gt;
&lt;br /&gt;
'''My game won't run because its anti-cheat or DRM software is incompatible with Wine translation.'''&lt;br /&gt;
&lt;br /&gt;
Likely there will be no fixes for any games that use anti-cheat, e.g. Easy Anti Cheat. Some games have workarounds e.g. Elden Ring. Other games that use say Denuvo may also be incompatible until that DRM is removed by the game's developer.&lt;br /&gt;
&lt;br /&gt;
'''My game won’t run because it requires Mono, .NET, or the MSVCRT runtime.'''&lt;br /&gt;
&lt;br /&gt;
The game porting toolkit’s evaluation environment does not pre-install these runtime support packages. If your game makes use of one of these packages, consider searching for and downloading appropriate installers (.exe or .msi) and installing them to your evaluation environment. Additional runtime installers can be run on your environment by just launching the installer and following its installation instructions:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 &amp;lt;some-installer.exe&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
And .MSI packages can be installed by launching the Windows uninstaller application and choosing to install a downloaded .msi package:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 uninstaller&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Controller issues'''&lt;br /&gt;
&lt;br /&gt;
Issues may be fixed by enrolling into the Steam beta.&lt;br /&gt;
&lt;br /&gt;
'''My game looks pixelated and the display resolution is limited'''&lt;br /&gt;
&lt;br /&gt;
Enable Retina (high resolution) mode:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_CURRENT_USER\Software\Wine\Mac Driver' /v RetinaMode /t REG_SZ /d 'Y' /f&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Some games will not run with Retina mode enabled. To disable it:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_CURRENT_USER\Software\Wine\Mac Driver' /v RetinaMode /t REG_SZ /d 'N' /f&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Game compatibility list ==&lt;br /&gt;
Working games:&lt;br /&gt;
* Bloodstained: Ritual of the Night&lt;br /&gt;
* Control (DX12 mode, if downloaded from Heroic, needs to be ran by Terminal)&lt;br /&gt;
* Crysis Remastered&lt;br /&gt;
* Cuphead&lt;br /&gt;
* Cyberpunk 2077&lt;br /&gt;
* Deep Rock Galactic&lt;br /&gt;
* Deceive Inc. - works well if launched without EAC&lt;br /&gt;
* Derail Valley (awesome performance, no missing manuals - in-game objects for train operation - like on CrossOver)&lt;br /&gt;
* Diablo IV [https://www.reddit.com/r/macgaming/comments/14307be/comment/jn7dxzo/?utm_source=reddit&amp;amp;utm_medium=web2x&amp;amp;context=3 ]&lt;br /&gt;
* Dyson Sphere Program (some objects and main character weren't visible before)&lt;br /&gt;
* Elden Ring&lt;br /&gt;
* Final Fantasy VII Remake Intergrade (~50 FPS on High settings at 1080p with M1 Pro)&lt;br /&gt;
* God of War (Works somewhat well on M1 Pro (16gb), wouldn't recommend lesser hardware.)&lt;br /&gt;
* Going Medieval&lt;br /&gt;
* Guilty Gear Strive&lt;br /&gt;
* Halo 3 (MCC - No Online due to Easy Anti-Cheat Compatibility) [https://www.reddit.com/r/macgaming/comments/143zoos/halo_3_mcc_no_online_eac_m1_pro_game_porting/]&lt;br /&gt;
* HI-Fi RUSH&lt;br /&gt;
* Hogwarts Legacy&lt;br /&gt;
* Hatsune Miku: Project DIVA Mega Mix+ - works with Retina mode; DivaModLoader and DivaNoSpy recommended; run Steam with WINEDEBUG=-all WINEESYNC=0 WINEDLLOVERRIDES=&amp;quot;dinput8.dll=n,b&amp;quot;; may randomly crash at the title screen (just restart and try again until it works)&lt;br /&gt;
* Kena: Bridge of Spirits&lt;br /&gt;
* Metal Gear Solid V: The Phantom Pain&lt;br /&gt;
* Overwatch 2&lt;br /&gt;
* QUBE 2&lt;br /&gt;
* Risk of Rain 2 (does not require `-disable-gpu-skinning` like Crossover 22)&lt;br /&gt;
* Scarlet Nexus&lt;br /&gt;
* Sonic Omens&lt;br /&gt;
* Sonic P-06&lt;br /&gt;
* Spider-Man (2018)&lt;br /&gt;
* Spider-Man Miles Morales - ''requires Windows ver fix''&lt;br /&gt;
* SpongeBob SquarePants: The Cosmic Shake&lt;br /&gt;
* StarCraft: Remastered - Game runs fine but opening Option menu the second time will cause game not recognizing any inputs.&lt;br /&gt;
* Tetris Effect: Connected - Game window likes to be uncooperative; really doesn't like retina mode, works otherwise&lt;br /&gt;
* Warframe - ''To get installer/launcher working add dwrite (disabled) to library overrides in winecfg''&lt;br /&gt;
&lt;br /&gt;
Not working well:&lt;br /&gt;
* Horizon Zero Dawn - slowdown issues&lt;br /&gt;
&lt;br /&gt;
Not working yet:&lt;br /&gt;
* Among Us&lt;br /&gt;
* Company of Heroes 3&lt;br /&gt;
* F1 22 - Crash on launch (  &amp;quot;Exception&amp;quot;: &amp;quot;C0000005 EXCEPTION_ACCESS_VIOLATION at 0000000141bd8687&amp;quot;)&lt;br /&gt;
* Halo Infinite - Crash on launch&lt;br /&gt;
* Hitman 3 - launcher works, crash at 0x0000014136dddd hitman3+0x136dddd: int $3&lt;br /&gt;
* Microsoft Flight Simulator 2020 (Steam) - Crash on launch&lt;br /&gt;
* Monster Hunter Rise - DX12 Game, it launches but window goes dark after compiling shaders.&lt;br /&gt;
* Monster Hunter World - Black Screen on Launch&lt;br /&gt;
* Red Dead Redemption 2&lt;br /&gt;
* Rogue Company - anti-cheat conflict.&lt;br /&gt;
* Sea of Thieves - Launches, but the prompt to sign into an xbox live account appears blank and cannot&lt;br /&gt;
* Many (all?) DX9 games&lt;br /&gt;
** 30XX - &amp;quot;Failed to create D3D device&amp;quot; -&amp;gt; crash on launch; this is a rare 64-bit DX9 game&lt;br /&gt;
** Killing Floor 1 - Crash on launch&lt;br /&gt;
** Left 4 Dead 2 - Black screen -&amp;gt; crash on launch&lt;br /&gt;
** Mega Man Zero/ZX Legacy Collection - &amp;quot;Failed to create d3d9 device&amp;quot; -&amp;gt; crash on launch&lt;br /&gt;
** Sonic Mania - Crash on launch&lt;br /&gt;
** StarCraft II -&amp;gt; &amp;quot;Failed to initialize DirectX&amp;quot; error&lt;br /&gt;
** Battlefield 2 - DirectX installation failed, won't launch, see the [https://gist.github.com/chrismwendt/1d01a306cdc8618a06bdfb555743e25c error log]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{References}}&lt;/div&gt;</summary>
		<author><name>Andytizer</name></author>
	</entry>
	<entry>
		<id>https://www.applegamingwiki.com/w/index.php?title=File:Game_Porting_Toolkit_Steam_icon.png&amp;diff=7635</id>
		<title>File:Game Porting Toolkit Steam icon.png</title>
		<link rel="alternate" type="text/html" href="https://www.applegamingwiki.com/w/index.php?title=File:Game_Porting_Toolkit_Steam_icon.png&amp;diff=7635"/>
		<updated>2023-06-08T23:13:43Z</updated>

		<summary type="html">&lt;p&gt;Andytizer: Made by user Omsier.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary ==&lt;br /&gt;
Made by user Omsier.&lt;/div&gt;</summary>
		<author><name>Andytizer</name></author>
	</entry>
	<entry>
		<id>https://www.applegamingwiki.com/w/index.php?title=Game_Porting_Toolkit&amp;diff=7634</id>
		<title>Game Porting Toolkit</title>
		<link rel="alternate" type="text/html" href="https://www.applegamingwiki.com/w/index.php?title=Game_Porting_Toolkit&amp;diff=7634"/>
		<updated>2023-06-08T23:13:11Z</updated>

		<summary type="html">&lt;p&gt;Andytizer: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Image|Game Porting Toolkit.png|Released 6th June, 2023 at WWDC23.}}&lt;br /&gt;
&lt;br /&gt;
Game Porting Toolkit is Apple's new translation layer released on 6th June, 2023. Game Porting Toolkit ('''GPT''') combines Wine with Apple's own D3DMetal which supports DirectX 11 and 12&amp;lt;ref&amp;gt;{{Refurl|url=https://mastodon.gamedev.place/@gavkar/110501451404624870|title=Gokhan Avkarogullari: &amp;quot;@yiningkarlli @aras @romainguy…&amp;quot; - Gamedev Mastodon}}&amp;lt;/ref&amp;gt;. This is less user-friendly method of installing Windows games on Apple Silicon Macs compared to [[CrossOver]] or [[Parallels]], however it unlocks the ability to play many DirectX 12 games. A lot more games work using GPTK, however, games that use anti-cheat or aggressive DRMs generally don't work, along with games that require AVX/AVX 2, e.g. The Last of Us Part I.&lt;br /&gt;
&lt;br /&gt;
== Toolkit install instructions ==&lt;br /&gt;
=== Requirements ===&lt;br /&gt;
*macOS Sonoma should be used, currently it is in beta. You can download the pkg installer from [https://mrmacintosh.com/macos-sonoma-full-installer-database-download-directly-from-apple/ Mr Macintosh blog].&lt;br /&gt;
*macOS Ventura causes large numbers of issues with steamwebhelper.exe crashing so it isn't recommended, use the macOS Sonoma beta.&lt;br /&gt;
*Visit [https://developer.apple.com/downloads Apple Developer Downloads site], these files are now free to download use for any logged in Apple account.&lt;br /&gt;
**Search for Command Line Tools for Xcode 15 beta and download the dmg file, then install it. *If you have an old version Xcode installed, remove it.&lt;br /&gt;
**Search for Game Porting Toolkit and download it. Open the dmg file and then run the pkg.&lt;br /&gt;
&lt;br /&gt;
=== Homebrew ===&lt;br /&gt;
Note: if you have ever installed Homebrew before, then it is advised to remove ARM64 Homebrew as this can interfere with this build process. Either use a Homebrew uninstall script or delete the folder &amp;lt;code&amp;gt;/opt/homebrew/bin&amp;lt;/code&amp;gt;. If you prefer to keep both ARM64 and x86 versions of brew installed, you may add a &amp;quot;brew-switcher&amp;quot; to your &amp;lt;code&amp;gt;.zshrc&amp;lt;/code&amp;gt; file to allow either version to be used depending on the active architecture. You may follow the steps at the end of this section after installing Brew to achieve this.&lt;br /&gt;
&lt;br /&gt;
Open Terminal (search in Spotlight on macOS).&lt;br /&gt;
&lt;br /&gt;
Install Rosetta:&lt;br /&gt;
&amp;lt;pre&amp;gt;softwareupdate --install-rosetta&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Enter an x86_64 shell to continue the following steps in a Rosetta environment. All subsequent commands should be run within this shell.&lt;br /&gt;
&amp;lt;pre&amp;gt;arch -x86_64 zsh&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Install the x86_64 version of Homebrew if you don't already have it.&lt;br /&gt;
&amp;lt;pre&amp;gt;/bin/bash -c &amp;quot;$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)&amp;quot;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Make sure the brew command is on your path:&lt;br /&gt;
&amp;lt;pre&amp;gt;which brew&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If this command does not print &amp;lt;code&amp;gt;/usr/local/bin/brew&amp;lt;/code&amp;gt;, you should use this command:&lt;br /&gt;
&amp;lt;pre&amp;gt;export PATH=/usr/local/bin:${PATH}&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Fixbox|description=Optionally retain both ARM64 and x86 versions of Brew|ref=|collapsed=yes|fix=&lt;br /&gt;
(Optional) If you want to have both ARM64 and x86 versions of Brew installed, begin by editing your &amp;lt;code&amp;gt;.zshrc&amp;lt;/code&amp;gt; file:&lt;br /&gt;
&amp;lt;pre&amp;gt;nano ~/.zshrc&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Scroll down (by using the arrow keys or Control + V) to the bottom of the file, and paste the following script:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
if [ &amp;quot;$(arch)&amp;quot; = &amp;quot;arm64&amp;quot; ]; then&lt;br /&gt;
    eval &amp;quot;$(/opt/homebrew/bin/brew shellenv)&amp;quot;&lt;br /&gt;
else&lt;br /&gt;
    eval &amp;quot;$(/usr/local/bin/brew shellenv)&amp;quot;&lt;br /&gt;
fi&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You may now restart your terminal and use the following command to return to an x86_64 shell:&lt;br /&gt;
&amp;lt;pre&amp;gt;arch -x86_64 zsh&amp;lt;/pre&amp;gt;&lt;br /&gt;
Your shell will now select the right installation of Brew, depending on your architecture.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=== Build ===&lt;br /&gt;
Run this command to download Apple tap:&lt;br /&gt;
&amp;lt;pre&amp;gt;brew tap apple/apple http://github.com/apple/homebrew-apple&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Install the game-porting-toolkit formula. This formula downloads and compiles several large software projects. How long this takes will depend on the speed of your computer. It can take over 1 hour to complete depending on the speed of your Mac.&lt;br /&gt;
&amp;lt;pre&amp;gt;brew -v install apple/apple/game-porting-toolkit&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If during installation you see an error such as '''“Error: game-porting-toolkit: unknown or unsupported macOS version: :dunno”, your version of Homebrew doesn’t have macOS Sonoma support. Update to the latest version of Homebrew and try again.'''&lt;br /&gt;
&amp;lt;pre&amp;gt;brew update brew -v install apple/apple/game-porting-toolkit&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Wine prefix ===&lt;br /&gt;
A Wine prefix contains a virtual C: drive. You will install the toolkit and your game into this virtual C: drive. Run the following command to create a new Wine prefix named my-game-prefix in your home directory.&lt;br /&gt;
&amp;lt;pre&amp;gt;WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 winecfg&amp;lt;/pre&amp;gt;&lt;br /&gt;
*A “Wine configuration” window should appear on your screen.&lt;br /&gt;
*Change the version of Windows to Windows 10.&lt;br /&gt;
*Choose Apply and then OK to exit winecfg.&lt;br /&gt;
&lt;br /&gt;
If the “Wine configuration” window does not appear, and no new icon appears in the Dock, verify that you have correctly installed the x86_64 version of Homebrew as well as the game-porting-toolkit formula.&lt;br /&gt;
&lt;br /&gt;
=== Preparing the toolkit ===&lt;br /&gt;
Make sure the Game Porting Toolkit dmg downloaded earlier is mounted at /Volumes/Game Porting Toolkit-1.0. Use this script to copy the Game Porting Toolkit library directory into Wine’s library directory.&lt;br /&gt;
&amp;lt;pre&amp;gt;ditto /Volumes/Game\ Porting\ Toolkit-1.0/lib/ `brew --prefix game-porting-toolkit`/lib/&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Put the 3 scripts from the Game Porting Toolkit DMG into here &amp;lt;code&amp;gt;/usr/local/bin&amp;lt;/code&amp;gt; using this command:&lt;br /&gt;
&amp;lt;pre&amp;gt;cp /Volumes/Game\ Porting\ Toolkit*/gameportingtoolkit* /usr/local/bin&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now you are ready to install a launcher or individual Windows games, see below.&lt;br /&gt;
&lt;br /&gt;
== Steam ==&lt;br /&gt;
Download the [https://cdn.cloudflare.steamstatic.com/client/installer/SteamSetup.exe Windows version of Steam] and place in your Downloads folder.&lt;br /&gt;
&lt;br /&gt;
'''Install Steam'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix ~/Downloads/SteamSetup.exe&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Run Steam'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix 'C:\Program Files (x86)/Steam/steam.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Log into Steam'''&lt;br /&gt;
&lt;br /&gt;
A common issue is that Steam will present with a blank black window.&lt;br /&gt;
&lt;br /&gt;
Alternate way of launching Steam (after installing):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
MTL_HUD_ENABLED=1 WINEESYNC=1 WINEPREFIX=~/my-game-prefix /usr/local/Cellar/game-porting-toolkit/1.0/bin/wine64 'C:\Program Files (x86)\Steam\steam.exe'&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If this continues then close the Terminal window and then re-open and try again, repeat until the login screen opens. Now you should be able to download and launch Windows games through Steam.&lt;br /&gt;
&lt;br /&gt;
== Battle.net ==&lt;br /&gt;
Download the [https://download.battle.net/en-gb/?platform=windows Windows version of Battle.net].&lt;br /&gt;
&lt;br /&gt;
Make a new Wineprefix for Battle.net - we will refer to this as battle-net from now:&lt;br /&gt;
&amp;lt;pre&amp;gt;WINEPREFIX=~/battle-net `brew --prefix game-porting-toolkit`/bin/wine64 winecfg&amp;lt;/pre&amp;gt;&lt;br /&gt;
*A “Wine configuration” window should appear on your screen.&lt;br /&gt;
*Change the version of Windows to &amp;lt;code&amp;gt;Windows 10&amp;lt;/code&amp;gt;.&lt;br /&gt;
*Choose Apply and then OK to exit winecfg.&lt;br /&gt;
&lt;br /&gt;
'''Run Battle.net launcher'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/battle-net ~/Downloads/Battle.net-Setup.exe&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Be aware that there is an issue launching Battle.net once installed, the only current way to re-login is to 'install' the launcher again. &lt;br /&gt;
&lt;br /&gt;
Start individual game without the launcher using this command:&lt;br /&gt;
&amp;lt;pre&amp;gt;arch -x86_64 gameportingtoolkit-no-hud ~/battle-net 'C:\Program Files (x86)\Diablo IV\Diablo IV Launcher.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Epic and GOG.com support ==&lt;br /&gt;
This is particularly useful because '''as it currently stands, the real Epic Games Launcher fails to install under the Game Porting Toolkit'''. Heroic supports Epic and GOG.com games.&lt;br /&gt;
&lt;br /&gt;
* Install the [https://github.com/Heroic-Games-Launcher/HeroicGamesLauncher/releases native macOS Heroic Games Launcher] or from Homebrew.&lt;br /&gt;
* Open Heroic, and log into your Epic Games and/or GOG.com account.&lt;br /&gt;
* Go to the &amp;quot;Wine Manager&amp;quot; and install a '''numbered''' version of Wine, such that it won't auto update- we are going to modify it.&lt;br /&gt;
** At the time of writing this, the newest numbered version of Wine-Crossover is &amp;lt;code&amp;gt;Wine-Crossover-Wine-22.1.0&amp;lt;/code&amp;gt;&lt;br /&gt;
* Press the folder icon that appears after installing it to open the directory containing Heroic's Wine installations.&lt;br /&gt;
* Right-click on the version of Wine you just installed and press &amp;quot;Show Package Contents&amp;quot;.&lt;br /&gt;
* Open this directory in the Terminal.&lt;br /&gt;
** If you have &amp;quot;OpenInTerminal&amp;quot; this is one button, otherwise press &amp;quot;Show Path Bar&amp;quot; and navigate where it says with &amp;quot;cd&amp;quot;.&lt;br /&gt;
** It should be something like &amp;lt;code&amp;gt;cd ~/Library/Application\ Support/heroic/tools/wine/Wine-crossover-wine-22.1.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
* &amp;lt;pre&amp;gt;cd Contents/MacOS&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Remove the existing Wine: &amp;lt;pre&amp;gt;rm wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Create a symlink to Game Porting Toolkit's Wine: &lt;br /&gt;
** If using Game Porting Toolkit Wineprefix: &amp;lt;pre&amp;gt;ln -s `/usr/local/bin/brew --prefix game-porting-toolkit`/bin/wine64 wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
** If using Whisky: &amp;lt;pre&amp;gt;ln -s /Applications/Whisky.app/Contents/Resources/Libraries/Wine/bin/wine64 wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
* &amp;lt;pre&amp;gt;cd ../Resources&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Remove the existing Wine: &amp;lt;pre&amp;gt;rm -rfv wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Create a symlink to Game Porting Toolkit's Wine&lt;br /&gt;
** If using Game Porting Toolkit Wineprefix: &amp;lt;pre&amp;gt;ln -s `/usr/local/bin/brew --prefix game-porting-toolkit` wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
** If using Whisky: &amp;lt;pre&amp;gt;ln -s /Applications/Whisky.app/Contents/Resources/Libraries/Wine wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
* We are now done with Terminal. Install any games you want to try playing.&lt;br /&gt;
* Select the game you want to play, and press the settings button in the top-right.&lt;br /&gt;
* Make sure the version of Wine you just downloaded and modified is selected.&lt;br /&gt;
* Make sure your Game Porting Toolkit Wine Prefix is selected. If you followed Apple's guide this is &amp;lt;code&amp;gt;/Users/you/my-game-prefix&amp;lt;/code&amp;gt;.&lt;br /&gt;
* If you Open the &amp;quot;Other&amp;quot; section you can also add any environment variables you want like &amp;lt;code&amp;gt;WINEESYNC=1&amp;quot;&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;&amp;quot;MTL_HUD_ENABLED=1&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
* Close the settings and try running the game.&lt;br /&gt;
&lt;br /&gt;
== Commands ==&lt;br /&gt;
Installing individual exe games: open your Wine prefix’s virtual C: drive in Finder (open ~/my-game-prefix/drive_c) and copy your game into an appropriate subdirectory.&lt;br /&gt;
&lt;br /&gt;
'''A. Standard launching'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix 'C:\Program Files (x86)\Steam\steam.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This launches the given Windows game binary with a visible extended Metal Performance HUD and filters logging to output from the Game Porting Toolkit.&lt;br /&gt;
&lt;br /&gt;
'''B. Launching without a HUD'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit-no-hud ~/my-game-prefix 'C:\Program Files (x86)\Steam\steam.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''C. Launching with Wine ESYNC disabled'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit-no-esync ~/my-game-prefix 'C:\Program Files (x86)\Steam\steam.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To enter Winecfg:&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix winecfg&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Shortcut ==&lt;br /&gt;
{{Image|Game Porting Toolkit Steam icon.png|Made by user Omsier.}}&lt;br /&gt;
You can make a shortcut for Steam for example by using macOS built-in Automator app.&lt;br /&gt;
*Open Automator.&lt;br /&gt;
*Select New Application.&lt;br /&gt;
*In the 2nd column select Run Shell Script.&lt;br /&gt;
*Copy and paste this code into the box:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/zsh&lt;br /&gt;
&lt;br /&gt;
export PATH=&amp;quot;/usr/local/bin:${PATH}&amp;quot;&lt;br /&gt;
&lt;br /&gt;
arch -x86_64 gameportingtoolkit ~/my-game-prefix 'C:\Program Files (x86)\Steam\steam.exe'&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the shortcut somewhere e.g. Applications.&lt;br /&gt;
*Above shortcut can be customised to any Wineprefix or game.&lt;br /&gt;
*Add an icon by selecting the shortcut, pressing {{key|cmd|I}} to Get Info, then dragging and dropping a PNG file onto the top left of the window.&lt;br /&gt;
&lt;br /&gt;
== Logging ==&lt;br /&gt;
The provided bin/gameportingtoolkit* scripts can be copied onto your path to facilitate different forms of logging and launching. You can run these scripts from any shell; you don’t need to switch to the Rosetta environment first.&lt;br /&gt;
&lt;br /&gt;
Logging output will appear in the Terminal window in which you launch your game as well as the system log, which can be viewed with the Console app found in Applications ▸ Utilities. Log messages from the Game Porting Toolkit are prefixed with D3DM. By default the gameportingtoolkit* scripts will filter to just the D3DM-prefixed messages.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
{{Image|GPTK Steam black screen.png|Steam login black screen issue.}}&lt;br /&gt;
'''Steam login black screen'''&lt;br /&gt;
&lt;br /&gt;
Close the Terminal window and then reopen and retry the command, repeat several times.&lt;br /&gt;
&lt;br /&gt;
Alternate way of launching Steam (after installing):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
MTL_HUD_ENABLED=1 WINEESYNC=1 WINEPREFIX=&amp;lt;path to the Wine bottle you set up&amp;gt; /usr/local/Cellar/game-porting-toolkit/1.0/bin/wine64 'C:\Program Files (x86)/Steam/steam.exe'&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If still not working then try using [[CrossOver]] and create a Steam bottle, then login, then redirect this WINEPREFIX to that bottle:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=&amp;quot;/Users/[username]/Library/Application Support/CrossOver/Bottles/Steam/&amp;quot; &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Steam crashes straight after opening'''&lt;br /&gt;
&lt;br /&gt;
Disconnect any external monitors.&lt;br /&gt;
&lt;br /&gt;
'''Battle.net launcher won't re-launch'''&lt;br /&gt;
&lt;br /&gt;
Re-install the launcher to reopen, no other fix at the moment.&lt;br /&gt;
&lt;br /&gt;
'''My game won’t run because it thinks the version of Windows is too old. Some games detect specific minimum versions of Windows and need to be updated.''' Use this script to update your wineprefix with build 19042 which should work for most games e.g. Spider-Man Remastered.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion' /v CurrentBuild /t REG_SZ /d 19042 /f&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion' /v CurrentBuildNumber /t REG_SZ /d 19042 /f&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wineserver -k&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''steamwebhelper.exe crashes'''&lt;br /&gt;
&lt;br /&gt;
This is caused by Steam being run through macOS Ventura or below, most users should upgrade to macOS Sonoma. You can use the CrossOver workaround to login to Steam but you'll experience constant crashing.&lt;br /&gt;
&lt;br /&gt;
'''My game won't run and crashes with an invalid instruction'''&lt;br /&gt;
&lt;br /&gt;
AVX and AVX2 games are not supported by Apple's arm64 chipset.&lt;br /&gt;
&lt;br /&gt;
'''My game won't run because its anti-cheat or DRM software is incompatible with Wine translation.'''&lt;br /&gt;
&lt;br /&gt;
Likely there will be no fixes for any games that use anti-cheat, e.g. Easy Anti Cheat. Some games have workarounds e.g. Elden Ring. Other games that use say Denuvo may also be incompatible until that DRM is removed by the game's developer.&lt;br /&gt;
&lt;br /&gt;
'''My game won’t run because it requires Mono, .NET, or the MSVCRT runtime.'''&lt;br /&gt;
&lt;br /&gt;
The game porting toolkit’s evaluation environment does not pre-install these runtime support packages. If your game makes use of one of these packages, consider searching for and downloading appropriate installers (.exe or .msi) and installing them to your evaluation environment. Additional runtime installers can be run on your environment by just launching the installer and following its installation instructions:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 &amp;lt;some-installer.exe&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
And .MSI packages can be installed by launching the Windows uninstaller application and choosing to install a downloaded .msi package:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 uninstaller&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Controller issues'''&lt;br /&gt;
&lt;br /&gt;
Issues may be fixed by enrolling into the Steam beta.&lt;br /&gt;
&lt;br /&gt;
'''My game looks pixelated and the display resolution is limited'''&lt;br /&gt;
&lt;br /&gt;
Enable Retina (high resolution) mode:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_CURRENT_USER\Software\Wine\Mac Driver' /v RetinaMode /t REG_SZ /d 'Y' /f&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Some games will not run with Retina mode enabled. To disable it:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_CURRENT_USER\Software\Wine\Mac Driver' /v RetinaMode /t REG_SZ /d 'N' /f&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Game compatibility list ==&lt;br /&gt;
Working games:&lt;br /&gt;
* Bloodstained: Ritual of the Night&lt;br /&gt;
* Control (DX12 mode, if downloaded from Heroic, needs to be ran by Terminal)&lt;br /&gt;
* Crysis Remastered&lt;br /&gt;
* Cuphead&lt;br /&gt;
* Cyberpunk 2077&lt;br /&gt;
* Deep Rock Galactic&lt;br /&gt;
* Deceive Inc. - works well if launched without EAC&lt;br /&gt;
* Derail Valley (awesome performance, no missing manuals - in-game objects for train operation - like on CrossOver)&lt;br /&gt;
* Diablo IV [https://www.reddit.com/r/macgaming/comments/14307be/comment/jn7dxzo/?utm_source=reddit&amp;amp;utm_medium=web2x&amp;amp;context=3 ]&lt;br /&gt;
* Dyson Sphere Program (some objects and main character weren't visible before)&lt;br /&gt;
* Elden Ring&lt;br /&gt;
* Final Fantasy VII Remake Intergrade (~50 FPS on High settings at 1080p with M1 Pro)&lt;br /&gt;
* God of War (Works somewhat well on M1 Pro (16gb), wouldn't recommend lesser hardware.)&lt;br /&gt;
* Going Medieval&lt;br /&gt;
* Guilty Gear Strive&lt;br /&gt;
* Halo 3 (MCC - No Online due to Easy Anti-Cheat Compatibility) [https://www.reddit.com/r/macgaming/comments/143zoos/halo_3_mcc_no_online_eac_m1_pro_game_porting/]&lt;br /&gt;
* HI-Fi RUSH&lt;br /&gt;
* Hogwarts Legacy&lt;br /&gt;
* Hatsune Miku: Project DIVA Mega Mix+ - works with Retina mode; DivaModLoader and DivaNoSpy recommended; run Steam with WINEDEBUG=-all WINEESYNC=0 WINEDLLOVERRIDES=&amp;quot;dinput8.dll=n,b&amp;quot;; may randomly crash at the title screen (just restart and try again until it works)&lt;br /&gt;
* Kena: Bridge of Spirits&lt;br /&gt;
* Metal Gear Solid V: The Phantom Pain&lt;br /&gt;
* Overwatch 2&lt;br /&gt;
* QUBE 2&lt;br /&gt;
* Risk of Rain 2 (does not require `-disable-gpu-skinning` like Crossover 22)&lt;br /&gt;
* Scarlet Nexus&lt;br /&gt;
* Sonic Omens&lt;br /&gt;
* Sonic P-06&lt;br /&gt;
* Spider-Man (2018)&lt;br /&gt;
* Spider-Man Miles Morales - ''requires Windows ver fix''&lt;br /&gt;
* SpongeBob SquarePants: The Cosmic Shake&lt;br /&gt;
* StarCraft: Remastered - Game runs fine but opening Option menu the second time will cause game not recognizing any inputs.&lt;br /&gt;
* Tetris Effect: Connected - Game window likes to be uncooperative; really doesn't like retina mode, works otherwise&lt;br /&gt;
* Warframe - ''To get installer/launcher working add dwrite (disabled) to library overrides in winecfg''&lt;br /&gt;
&lt;br /&gt;
Not working well:&lt;br /&gt;
* Horizon Zero Dawn - slowdown issues&lt;br /&gt;
&lt;br /&gt;
Not working yet:&lt;br /&gt;
* Among Us&lt;br /&gt;
* Company of Heroes 3&lt;br /&gt;
* F1 22 - Crash on launch (  &amp;quot;Exception&amp;quot;: &amp;quot;C0000005 EXCEPTION_ACCESS_VIOLATION at 0000000141bd8687&amp;quot;)&lt;br /&gt;
* Halo Infinite - Crash on launch&lt;br /&gt;
* Hitman 3 - launcher works, crash at 0x0000014136dddd hitman3+0x136dddd: int $3&lt;br /&gt;
* Microsoft Flight Simulator 2020 (Steam) - Crash on launch&lt;br /&gt;
* Monster Hunter Rise - DX12 Game, it launches but window goes dark after compiling shaders.&lt;br /&gt;
* Monster Hunter World - Black Screen on Launch&lt;br /&gt;
* Red Dead Redemption 2&lt;br /&gt;
* Rogue Company - anti-cheat conflict.&lt;br /&gt;
* Sea of Thieves - Launches, but the prompt to sign into an xbox live account appears blank and cannot&lt;br /&gt;
* Many (all?) DX9 games&lt;br /&gt;
** 30XX - &amp;quot;Failed to create D3D device&amp;quot; -&amp;gt; crash on launch; this is a rare 64-bit DX9 game&lt;br /&gt;
** Killing Floor 1 - Crash on launch&lt;br /&gt;
** Left 4 Dead 2 - Black screen -&amp;gt; crash on launch&lt;br /&gt;
** Mega Man Zero/ZX Legacy Collection - &amp;quot;Failed to create d3d9 device&amp;quot; -&amp;gt; crash on launch&lt;br /&gt;
** Sonic Mania - Crash on launch&lt;br /&gt;
** StarCraft II -&amp;gt; &amp;quot;Failed to initialize DirectX&amp;quot; error&lt;br /&gt;
** Battlefield 2 - DirectX installation failed, won't launch, see the [https://gist.github.com/chrismwendt/1d01a306cdc8618a06bdfb555743e25c error log]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{References}}&lt;/div&gt;</summary>
		<author><name>Andytizer</name></author>
	</entry>
	<entry>
		<id>https://www.applegamingwiki.com/w/index.php?title=Game_Porting_Toolkit&amp;diff=7633</id>
		<title>Game Porting Toolkit</title>
		<link rel="alternate" type="text/html" href="https://www.applegamingwiki.com/w/index.php?title=Game_Porting_Toolkit&amp;diff=7633"/>
		<updated>2023-06-08T22:21:15Z</updated>

		<summary type="html">&lt;p&gt;Andytizer: /* Toolkit install instructions */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Image|Game Porting Toolkit.png|Released 6th June, 2023 at WWDC23.}}&lt;br /&gt;
&lt;br /&gt;
Game Porting Toolkit is Apple's new translation layer released on 6th June, 2023. Game Porting Toolkit ('''GPT''') combines Wine with Apple's own D3DMetal which supports DirectX 11 and 12&amp;lt;ref&amp;gt;{{Refurl|url=https://mastodon.gamedev.place/@gavkar/110501451404624870|title=Gokhan Avkarogullari: &amp;quot;@yiningkarlli @aras @romainguy…&amp;quot; - Gamedev Mastodon}}&amp;lt;/ref&amp;gt;. This is less user-friendly method of installing Windows games on Apple Silicon Macs compared to [[CrossOver]] or [[Parallels]], however it unlocks the ability to play many DirectX 12 games. A lot more games work using GPTK, however, games that use anti-cheat or aggressive DRMs generally don't work, along with games that require AVX/AVX 2, e.g. The Last of Us Part I.&lt;br /&gt;
&lt;br /&gt;
== Toolkit install instructions ==&lt;br /&gt;
=== Requirements ===&lt;br /&gt;
*macOS Sonoma should be used, currently it is in beta. You can download the pkg installer from [https://mrmacintosh.com/macos-sonoma-full-installer-database-download-directly-from-apple/ Mr Macintosh blog].&lt;br /&gt;
*macOS Ventura causes large numbers of issues with steamwebhelper.exe crashing so it isn't recommended, use the macOS Sonoma beta.&lt;br /&gt;
*Visit [https://developer.apple.com/downloads Apple Developer Downloads site], these files are now free to download use for any logged in Apple account.&lt;br /&gt;
**Search for Command Line Tools for Xcode 15 beta and download the dmg file, then install it. *If you have an old version Xcode installed, remove it.&lt;br /&gt;
**Search for Game Porting Toolkit and download it. Open the dmg file and then run the pkg.&lt;br /&gt;
&lt;br /&gt;
=== Homebrew ===&lt;br /&gt;
Note: if you have ever installed Homebrew before, then it is advised to remove ARM64 Homebrew as this can interfere with this build process. Either use a Homebrew uninstall script or delete the folder &amp;lt;code&amp;gt;/opt/homebrew/bin&amp;lt;/code&amp;gt;. If you prefer to keep both ARM64 and x86 versions of brew installed, you may add a &amp;quot;brew-switcher&amp;quot; to your &amp;lt;code&amp;gt;.zshrc&amp;lt;/code&amp;gt; file to allow either version to be used depending on the active architecture. You may follow the steps at the end of this section after installing Brew to achieve this.&lt;br /&gt;
&lt;br /&gt;
Open Terminal (search in Spotlight on macOS).&lt;br /&gt;
&lt;br /&gt;
Install Rosetta:&lt;br /&gt;
&amp;lt;pre&amp;gt;softwareupdate --install-rosetta&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Enter an x86_64 shell to continue the following steps in a Rosetta environment. All subsequent commands should be run within this shell.&lt;br /&gt;
&amp;lt;pre&amp;gt;arch -x86_64 zsh&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Install the x86_64 version of Homebrew if you don't already have it.&lt;br /&gt;
&amp;lt;pre&amp;gt;/bin/bash -c &amp;quot;$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)&amp;quot;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Make sure the brew command is on your path:&lt;br /&gt;
&amp;lt;pre&amp;gt;which brew&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If this command does not print &amp;lt;code&amp;gt;/usr/local/bin/brew&amp;lt;/code&amp;gt;, you should use this command:&lt;br /&gt;
&amp;lt;pre&amp;gt;export PATH=/usr/local/bin:${PATH}&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Fixbox|description=Optionally retain both ARM64 and x86 versions of Brew|ref=|collapsed=yes|fix=&lt;br /&gt;
(Optional) If you want to have both ARM64 and x86 versions of Brew installed, begin by editing your &amp;lt;code&amp;gt;.zshrc&amp;lt;/code&amp;gt; file:&lt;br /&gt;
&amp;lt;pre&amp;gt;nano ~/.zshrc&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Scroll down (by using the arrow keys or Control + V) to the bottom of the file, and paste the following script:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
if [ &amp;quot;$(arch)&amp;quot; = &amp;quot;arm64&amp;quot; ]; then&lt;br /&gt;
    eval &amp;quot;$(/opt/homebrew/bin/brew shellenv)&amp;quot;&lt;br /&gt;
else&lt;br /&gt;
    eval &amp;quot;$(/usr/local/bin/brew shellenv)&amp;quot;&lt;br /&gt;
fi&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You may now restart your terminal and use the following command to return to an x86_64 shell:&lt;br /&gt;
&amp;lt;pre&amp;gt;arch -x86_64 zsh&amp;lt;/pre&amp;gt;&lt;br /&gt;
Your shell will now select the right installation of Brew, depending on your architecture.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=== Build ===&lt;br /&gt;
Run this command to download Apple tap:&lt;br /&gt;
&amp;lt;pre&amp;gt;brew tap apple/apple http://github.com/apple/homebrew-apple&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Install the game-porting-toolkit formula. This formula downloads and compiles several large software projects. How long this takes will depend on the speed of your computer. It can take over 1 hour to complete depending on the speed of your Mac.&lt;br /&gt;
&amp;lt;pre&amp;gt;brew -v install apple/apple/game-porting-toolkit&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If during installation you see an error such as '''“Error: game-porting-toolkit: unknown or unsupported macOS version: :dunno”, your version of Homebrew doesn’t have macOS Sonoma support. Update to the latest version of Homebrew and try again.'''&lt;br /&gt;
&amp;lt;pre&amp;gt;brew update brew -v install apple/apple/game-porting-toolkit&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Wine prefix ===&lt;br /&gt;
A Wine prefix contains a virtual C: drive. You will install the toolkit and your game into this virtual C: drive. Run the following command to create a new Wine prefix named my-game-prefix in your home directory.&lt;br /&gt;
&amp;lt;pre&amp;gt;WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 winecfg&amp;lt;/pre&amp;gt;&lt;br /&gt;
*A “Wine configuration” window should appear on your screen.&lt;br /&gt;
*Change the version of Windows to Windows 10.&lt;br /&gt;
*Choose Apply and then OK to exit winecfg.&lt;br /&gt;
&lt;br /&gt;
If the “Wine configuration” window does not appear, and no new icon appears in the Dock, verify that you have correctly installed the x86_64 version of Homebrew as well as the game-porting-toolkit formula.&lt;br /&gt;
&lt;br /&gt;
=== Preparing the toolkit ===&lt;br /&gt;
Make sure the Game Porting Toolkit dmg downloaded earlier is mounted at /Volumes/Game Porting Toolkit-1.0. Use this script to copy the Game Porting Toolkit library directory into Wine’s library directory.&lt;br /&gt;
&amp;lt;pre&amp;gt;ditto /Volumes/Game\ Porting\ Toolkit-1.0/lib/ `brew --prefix game-porting-toolkit`/lib/&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Put the 3 scripts from the Game Porting Toolkit DMG into here &amp;lt;code&amp;gt;/usr/local/bin&amp;lt;/code&amp;gt; using this command:&lt;br /&gt;
&amp;lt;pre&amp;gt;cp /Volumes/Game\ Porting\ Toolkit*/gameportingtoolkit* /usr/local/bin&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now you are ready to install a launcher or individual Windows games, see below.&lt;br /&gt;
&lt;br /&gt;
== Steam ==&lt;br /&gt;
Download the [https://cdn.cloudflare.steamstatic.com/client/installer/SteamSetup.exe Windows version of Steam] and place in your Downloads folder.&lt;br /&gt;
&lt;br /&gt;
'''Install Steam'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix ~/Downloads/SteamSetup.exe&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Run Steam'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix 'C:\Program Files (x86)/Steam/steam.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Log into Steam'''&lt;br /&gt;
&lt;br /&gt;
A common issue is that Steam will present with a blank black window.&lt;br /&gt;
&lt;br /&gt;
Alternate way of launching Steam (after installing):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
MTL_HUD_ENABLED=1 WINEESYNC=1 WINEPREFIX=~/my-game-prefix /usr/local/Cellar/game-porting-toolkit/1.0/bin/wine64 'C:\Program Files (x86)\Steam\steam.exe'&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If this continues then close the Terminal window and then re-open and try again, repeat until the login screen opens. Now you should be able to download and launch Windows games through Steam.&lt;br /&gt;
&lt;br /&gt;
== Battle.net ==&lt;br /&gt;
Download the [https://download.battle.net/en-gb/?platform=windows Windows version of Battle.net].&lt;br /&gt;
&lt;br /&gt;
Make a new Wineprefix for Battle.net - we will refer to this as battle-net from now:&lt;br /&gt;
&amp;lt;pre&amp;gt;WINEPREFIX=~/battle-net `brew --prefix game-porting-toolkit`/bin/wine64 winecfg&amp;lt;/pre&amp;gt;&lt;br /&gt;
*A “Wine configuration” window should appear on your screen.&lt;br /&gt;
*Change the version of Windows to &amp;lt;code&amp;gt;Windows 10&amp;lt;/code&amp;gt;.&lt;br /&gt;
*Choose Apply and then OK to exit winecfg.&lt;br /&gt;
&lt;br /&gt;
'''Run Battle.net launcher'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/battle-net ~/Downloads/Battle.net-Setup.exe&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Be aware that there is an issue launching Battle.net once installed, the only current way to re-login is to 'install' the launcher again. &lt;br /&gt;
&lt;br /&gt;
Start individual game without the launcher using this command:&lt;br /&gt;
&amp;lt;pre&amp;gt;arch -x86_64 gameportingtoolkit-no-hud ~/battle-net 'C:\Program Files (x86)\Diablo IV\Diablo IV Launcher.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Epic and GOG.com support ==&lt;br /&gt;
This is particularly useful because '''as it currently stands, the real Epic Games Launcher fails to install under the Game Porting Toolkit'''. Heroic supports Epic and GOG.com games.&lt;br /&gt;
&lt;br /&gt;
* Install the [https://github.com/Heroic-Games-Launcher/HeroicGamesLauncher/releases native macOS Heroic Games Launcher] or from Homebrew.&lt;br /&gt;
* Open Heroic, and log into your Epic Games and/or GOG.com account.&lt;br /&gt;
* Go to the &amp;quot;Wine Manager&amp;quot; and install a '''numbered''' version of Wine, such that it won't auto update- we are going to modify it.&lt;br /&gt;
** At the time of writing this, the newest numbered version of Wine-Crossover is &amp;lt;code&amp;gt;Wine-Crossover-Wine-22.1.0&amp;lt;/code&amp;gt;&lt;br /&gt;
* Press the folder icon that appears after installing it to open the directory containing Heroic's Wine installations.&lt;br /&gt;
* Right-click on the version of Wine you just installed and press &amp;quot;Show Package Contents&amp;quot;.&lt;br /&gt;
* Open this directory in the Terminal.&lt;br /&gt;
** If you have &amp;quot;OpenInTerminal&amp;quot; this is one button, otherwise press &amp;quot;Show Path Bar&amp;quot; and navigate where it says with &amp;quot;cd&amp;quot;.&lt;br /&gt;
** It should be something like &amp;lt;code&amp;gt;cd ~/Library/Application\ Support/heroic/tools/wine/Wine-crossover-wine-22.1.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
* &amp;lt;pre&amp;gt;cd Contents/MacOS&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Remove the existing Wine: &amp;lt;pre&amp;gt;rm wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Create a symlink to Game Porting Toolkit's Wine: &lt;br /&gt;
** If using Game Porting Toolkit Wineprefix: &amp;lt;pre&amp;gt;ln -s `/usr/local/bin/brew --prefix game-porting-toolkit`/bin/wine64 wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
** If using Whisky: &amp;lt;pre&amp;gt;ln -s /Applications/Whisky.app/Contents/Resources/Libraries/Wine/bin/wine64 wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
* &amp;lt;pre&amp;gt;cd ../Resources&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Remove the existing Wine: &amp;lt;pre&amp;gt;rm -rfv wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Create a symlink to Game Porting Toolkit's Wine&lt;br /&gt;
** If using Game Porting Toolkit Wineprefix: &amp;lt;pre&amp;gt;ln -s `/usr/local/bin/brew --prefix game-porting-toolkit` wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
** If using Whisky: &amp;lt;pre&amp;gt;ln -s /Applications/Whisky.app/Contents/Resources/Libraries/Wine wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
* We are now done with Terminal. Install any games you want to try playing.&lt;br /&gt;
* Select the game you want to play, and press the settings button in the top-right.&lt;br /&gt;
* Make sure the version of Wine you just downloaded and modified is selected.&lt;br /&gt;
* Make sure your Game Porting Toolkit Wine Prefix is selected. If you followed Apple's guide this is &amp;lt;code&amp;gt;/Users/you/my-game-prefix&amp;lt;/code&amp;gt;.&lt;br /&gt;
* If you Open the &amp;quot;Other&amp;quot; section you can also add any environment variables you want like &amp;lt;code&amp;gt;WINEESYNC=1&amp;quot;&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;&amp;quot;MTL_HUD_ENABLED=1&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
* Close the settings and try running the game.&lt;br /&gt;
&lt;br /&gt;
== Commands ==&lt;br /&gt;
Installing individual exe games: open your Wine prefix’s virtual C: drive in Finder (open ~/my-game-prefix/drive_c) and copy your game into an appropriate subdirectory.&lt;br /&gt;
&lt;br /&gt;
'''A. Standard launching'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix 'C:\Program Files (x86)\Steam\steam.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This launches the given Windows game binary with a visible extended Metal Performance HUD and filters logging to output from the Game Porting Toolkit.&lt;br /&gt;
&lt;br /&gt;
'''B. Launching without a HUD'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit-no-hud ~/my-game-prefix 'C:\Program Files (x86)\Steam\steam.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''C. Launching with Wine ESYNC disabled'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit-no-esync ~/my-game-prefix 'C:\Program Files (x86)\Steam\steam.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To enter Winecfg:&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix winecfg&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Shortcut ==&lt;br /&gt;
You can make a shortcut for Steam for example by using macOS built-in Automator app.&lt;br /&gt;
*Open Automator.&lt;br /&gt;
*Select New Application.&lt;br /&gt;
*In the 2nd column select Run Shell Script.&lt;br /&gt;
*Copy and paste this code into the box:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/zsh&lt;br /&gt;
&lt;br /&gt;
export PATH=&amp;quot;/usr/local/bin:${PATH}&amp;quot;&lt;br /&gt;
&lt;br /&gt;
arch -x86_64 gameportingtoolkit ~/my-game-prefix 'C:\Program Files (x86)\Steam\steam.exe'&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the shortcut somewhere e.g. Applications.&lt;br /&gt;
*Above shortcut can be customised to any Wineprefix or game.&lt;br /&gt;
*Add an icon by selecting the shortcut, pressing {{key|cmd|I}} to Get Info, then dragging and dropping a PNG file onto the top left of the window.&lt;br /&gt;
&lt;br /&gt;
== Logging ==&lt;br /&gt;
The provided bin/gameportingtoolkit* scripts can be copied onto your path to facilitate different forms of logging and launching. You can run these scripts from any shell; you don’t need to switch to the Rosetta environment first.&lt;br /&gt;
&lt;br /&gt;
Logging output will appear in the Terminal window in which you launch your game as well as the system log, which can be viewed with the Console app found in Applications ▸ Utilities. Log messages from the Game Porting Toolkit are prefixed with D3DM. By default the gameportingtoolkit* scripts will filter to just the D3DM-prefixed messages.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
{{Image|GPTK Steam black screen.png|Steam login black screen issue.}}&lt;br /&gt;
'''Steam login black screen'''&lt;br /&gt;
&lt;br /&gt;
Close the Terminal window and then reopen and retry the command, repeat several times.&lt;br /&gt;
&lt;br /&gt;
Alternate way of launching Steam (after installing):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
MTL_HUD_ENABLED=1 WINEESYNC=1 WINEPREFIX=&amp;lt;path to the Wine bottle you set up&amp;gt; /usr/local/Cellar/game-porting-toolkit/1.0/bin/wine64 'C:\Program Files (x86)/Steam/steam.exe'&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If still not working then try using [[CrossOver]] and create a Steam bottle, then login, then redirect this WINEPREFIX to that bottle:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=&amp;quot;/Users/[username]/Library/Application Support/CrossOver/Bottles/Steam/&amp;quot; &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Steam crashes straight after opening'''&lt;br /&gt;
&lt;br /&gt;
Disconnect any external monitors.&lt;br /&gt;
&lt;br /&gt;
'''Battle.net launcher won't re-launch'''&lt;br /&gt;
&lt;br /&gt;
Re-install the launcher to reopen, no other fix at the moment.&lt;br /&gt;
&lt;br /&gt;
'''My game won’t run because it thinks the version of Windows is too old. Some games detect specific minimum versions of Windows and need to be updated.''' Use this script to update your wineprefix with build 19042 which should work for most games e.g. Spider-Man Remastered.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion' /v CurrentBuild /t REG_SZ /d 19042 /f&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion' /v CurrentBuildNumber /t REG_SZ /d 19042 /f&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wineserver -k&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''steamwebhelper.exe crashes'''&lt;br /&gt;
&lt;br /&gt;
This is caused by Steam being run through macOS Ventura or below, most users should upgrade to macOS Sonoma. You can use the CrossOver workaround to login to Steam but you'll experience constant crashing.&lt;br /&gt;
&lt;br /&gt;
'''My game won't run and crashes with an invalid instruction'''&lt;br /&gt;
&lt;br /&gt;
AVX and AVX2 games are not supported by Apple's arm64 chipset.&lt;br /&gt;
&lt;br /&gt;
'''My game won't run because its anti-cheat or DRM software is incompatible with Wine translation.'''&lt;br /&gt;
&lt;br /&gt;
Likely there will be no fixes for any games that use anti-cheat, e.g. Easy Anti Cheat. Some games have workarounds e.g. Elden Ring. Other games that use say Denuvo may also be incompatible until that DRM is removed by the game's developer.&lt;br /&gt;
&lt;br /&gt;
'''My game won’t run because it requires Mono, .NET, or the MSVCRT runtime.'''&lt;br /&gt;
&lt;br /&gt;
The game porting toolkit’s evaluation environment does not pre-install these runtime support packages. If your game makes use of one of these packages, consider searching for and downloading appropriate installers (.exe or .msi) and installing them to your evaluation environment. Additional runtime installers can be run on your environment by just launching the installer and following its installation instructions:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 &amp;lt;some-installer.exe&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
And .MSI packages can be installed by launching the Windows uninstaller application and choosing to install a downloaded .msi package:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 uninstaller&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Controller issues'''&lt;br /&gt;
&lt;br /&gt;
Issues may be fixed by enrolling into the Steam beta.&lt;br /&gt;
&lt;br /&gt;
'''My game looks pixelated and the display resolution is limited'''&lt;br /&gt;
&lt;br /&gt;
Enable Retina (high resolution) mode:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_CURRENT_USER\Software\Wine\Mac Driver' /v RetinaMode /t REG_SZ /d 'Y' /f&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Some games will not run with Retina mode enabled. To disable it:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_CURRENT_USER\Software\Wine\Mac Driver' /v RetinaMode /t REG_SZ /d 'N' /f&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Game compatibility list ==&lt;br /&gt;
Working games:&lt;br /&gt;
* Bloodstained: Ritual of the Night&lt;br /&gt;
* Control (DX12 mode, if downloaded from Heroic, needs to be ran by Terminal)&lt;br /&gt;
* Crysis Remastered&lt;br /&gt;
* Cuphead&lt;br /&gt;
* Cyberpunk 2077&lt;br /&gt;
* Deep Rock Galactic&lt;br /&gt;
* Deceive Inc. - works well if launched without EAC&lt;br /&gt;
* Derail Valley (awesome performance, no missing manuals - in-game objects for train operation - like on CrossOver)&lt;br /&gt;
* Diablo IV [https://www.reddit.com/r/macgaming/comments/14307be/comment/jn7dxzo/?utm_source=reddit&amp;amp;utm_medium=web2x&amp;amp;context=3 ]&lt;br /&gt;
* Dyson Sphere Program (some objects and main character weren't visible before)&lt;br /&gt;
* Elden Ring&lt;br /&gt;
* Final Fantasy VII Remake Intergrade (~50 FPS on High settings at 1080p with M1 Pro)&lt;br /&gt;
* God of War (Works somewhat well on M1 Pro (16gb), wouldn't recommend lesser hardware.)&lt;br /&gt;
* Going Medieval&lt;br /&gt;
* Guilty Gear Strive&lt;br /&gt;
* Halo 3 (MCC - No Online due to Easy Anti-Cheat Compatibility) [https://www.reddit.com/r/macgaming/comments/143zoos/halo_3_mcc_no_online_eac_m1_pro_game_porting/]&lt;br /&gt;
* HI-Fi RUSH&lt;br /&gt;
* Hogwarts Legacy&lt;br /&gt;
* Hatsune Miku: Project DIVA Mega Mix+ - works with Retina mode; DivaModLoader and DivaNoSpy recommended; run Steam with WINEDEBUG=-all WINEESYNC=0 WINEDLLOVERRIDES=&amp;quot;dinput8.dll=n,b&amp;quot;; may randomly crash at the title screen (just restart and try again until it works)&lt;br /&gt;
* Kena: Bridge of Spirits&lt;br /&gt;
* Metal Gear Solid V: The Phantom Pain&lt;br /&gt;
* Overwatch 2&lt;br /&gt;
* QUBE 2&lt;br /&gt;
* Risk of Rain 2 (does not require `-disable-gpu-skinning` like Crossover 22)&lt;br /&gt;
* Scarlet Nexus&lt;br /&gt;
* Sonic Omens&lt;br /&gt;
* Sonic P-06&lt;br /&gt;
* Spider-Man (2018)&lt;br /&gt;
* Spider-Man Miles Morales - ''requires Windows ver fix''&lt;br /&gt;
* SpongeBob SquarePants: The Cosmic Shake&lt;br /&gt;
* StarCraft: Remastered - Game runs fine but opening Option menu the second time will cause game not recognizing any inputs.&lt;br /&gt;
* Tetris Effect: Connected - Game window likes to be uncooperative; really doesn't like retina mode, works otherwise&lt;br /&gt;
* Warframe - ''To get installer/launcher working add dwrite (disabled) to library overrides in winecfg''&lt;br /&gt;
&lt;br /&gt;
Not working well:&lt;br /&gt;
* Horizon Zero Dawn - slowdown issues&lt;br /&gt;
&lt;br /&gt;
Not working yet:&lt;br /&gt;
* Among Us&lt;br /&gt;
* Company of Heroes 3&lt;br /&gt;
* F1 22 - Crash on launch (  &amp;quot;Exception&amp;quot;: &amp;quot;C0000005 EXCEPTION_ACCESS_VIOLATION at 0000000141bd8687&amp;quot;)&lt;br /&gt;
* Halo Infinite - Crash on launch&lt;br /&gt;
* Hitman 3 - launcher works, crash at 0x0000014136dddd hitman3+0x136dddd: int $3&lt;br /&gt;
* Microsoft Flight Simulator 2020 (Steam) - Crash on launch&lt;br /&gt;
* Monster Hunter Rise - DX12 Game, it launches but window goes dark after compiling shaders.&lt;br /&gt;
* Monster Hunter World - Black Screen on Launch&lt;br /&gt;
* Red Dead Redemption 2&lt;br /&gt;
* Rogue Company - anti-cheat conflict.&lt;br /&gt;
* Sea of Thieves - Launches, but the prompt to sign into an xbox live account appears blank and cannot&lt;br /&gt;
* Many (all?) DX9 games&lt;br /&gt;
** 30XX - &amp;quot;Failed to create D3D device&amp;quot; -&amp;gt; crash on launch; this is a rare 64-bit DX9 game&lt;br /&gt;
** Killing Floor 1 - Crash on launch&lt;br /&gt;
** Left 4 Dead 2 - Black screen -&amp;gt; crash on launch&lt;br /&gt;
** Mega Man Zero/ZX Legacy Collection - &amp;quot;Failed to create d3d9 device&amp;quot; -&amp;gt; crash on launch&lt;br /&gt;
** Sonic Mania - Crash on launch&lt;br /&gt;
** StarCraft II -&amp;gt; &amp;quot;Failed to initialize DirectX&amp;quot; error&lt;br /&gt;
** Battlefield 2 - DirectX installation failed, won't launch, see the [https://gist.github.com/chrismwendt/1d01a306cdc8618a06bdfb555743e25c error log]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{References}}&lt;/div&gt;</summary>
		<author><name>Andytizer</name></author>
	</entry>
	<entry>
		<id>https://www.applegamingwiki.com/w/index.php?title=Game_Porting_Toolkit&amp;diff=7632</id>
		<title>Game Porting Toolkit</title>
		<link rel="alternate" type="text/html" href="https://www.applegamingwiki.com/w/index.php?title=Game_Porting_Toolkit&amp;diff=7632"/>
		<updated>2023-06-08T22:01:53Z</updated>

		<summary type="html">&lt;p&gt;Andytizer: /* Troubleshooting */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Image|Game Porting Toolkit.png|Released 6th June, 2023 at WWDC23.}}&lt;br /&gt;
&lt;br /&gt;
Game Porting Toolkit is Apple's new translation layer released on 6th June, 2023. Game Porting Toolkit ('''GPT''') combines Wine with Apple's own D3DMetal which supports DirectX 11 and 12&amp;lt;ref&amp;gt;{{Refurl|url=https://mastodon.gamedev.place/@gavkar/110501451404624870|title=Gokhan Avkarogullari: &amp;quot;@yiningkarlli @aras @romainguy…&amp;quot; - Gamedev Mastodon}}&amp;lt;/ref&amp;gt;. This is less user-friendly method of installing Windows games on Apple Silicon Macs compared to [[CrossOver]] or [[Parallels]], however it unlocks the ability to play many DirectX 12 games. A lot more games work using GPTK, however, games that use anti-cheat or aggressive DRMs generally don't work, along with games that require AVX/AVX 2, e.g. The Last of Us Part I.&lt;br /&gt;
&lt;br /&gt;
== Toolkit install instructions ==&lt;br /&gt;
=== Requirements ===&lt;br /&gt;
*macOS Sonoma should be used, currently it is in beta. You can download the pkg installer from [https://mrmacintosh.com/macos-sonoma-full-installer-database-download-directly-from-apple/ Mr Macintosh blog].&lt;br /&gt;
*macOS Ventura causes large numbers of issues with steamwebhelper.exe crashing so it isn't recommended, use the macOS Sonoma beta.&lt;br /&gt;
**If you have an old version Xcode installed, remove it.&lt;br /&gt;
*Visit [https://developer.apple.com/downloads Apple Developer Downloads site], these files are now free to download use for any logged in Apple account.&lt;br /&gt;
**Search for Command Line Tools for Xcode 15 beta and download the dmg file, then install it.&lt;br /&gt;
**Search for Game Porting Toolkit and download it. Open the dmg file and then run the pkg.&lt;br /&gt;
&lt;br /&gt;
=== Homebrew ===&lt;br /&gt;
Note: if you have ever installed Homebrew before, then it is advised to remove ARM64 Homebrew as this can interfere with this build process. Either use a Homebrew uninstall script or delete the folder &amp;lt;code&amp;gt;/opt/homebrew/bin&amp;lt;/code&amp;gt;. If you prefer to keep both ARM64 and x86 versions of brew installed, you may add a &amp;quot;brew-switcher&amp;quot; to your &amp;lt;code&amp;gt;.zshrc&amp;lt;/code&amp;gt; file to allow either version to be used depending on the active architecture. You may follow the steps at the end of this section after installing Brew to achieve this.&lt;br /&gt;
&lt;br /&gt;
Open Terminal (search in Spotlight on macOS).&lt;br /&gt;
&lt;br /&gt;
Install Rosetta:&lt;br /&gt;
&amp;lt;pre&amp;gt;softwareupdate --install-rosetta&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Enter an x86_64 shell to continue the following steps in a Rosetta environment. All subsequent commands should be run within this shell.&lt;br /&gt;
&amp;lt;pre&amp;gt;arch -x86_64 zsh&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Install the x86_64 version of Homebrew if you don't already have it.&lt;br /&gt;
&amp;lt;pre&amp;gt;/bin/bash -c &amp;quot;$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)&amp;quot;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Make sure the brew command is on your path:&lt;br /&gt;
&amp;lt;pre&amp;gt;which brew&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If this command does not print &amp;lt;code&amp;gt;/usr/local/bin/brew&amp;lt;/code&amp;gt;, you should use this command:&lt;br /&gt;
&amp;lt;pre&amp;gt;export PATH=/usr/local/bin:${PATH}&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Fixbox|description=Optionally retain both ARM64 and x86 versions of Brew|ref=|collapsed=yes|fix=&lt;br /&gt;
(Optional) If you want to have both ARM64 and x86 versions of Brew installed, begin by editing your &amp;lt;code&amp;gt;.zshrc&amp;lt;/code&amp;gt; file:&lt;br /&gt;
&amp;lt;pre&amp;gt;nano ~/.zshrc&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Scroll down (by using the arrow keys or Control + V) to the bottom of the file, and paste the following script:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
if [ &amp;quot;$(arch)&amp;quot; = &amp;quot;arm64&amp;quot; ]; then&lt;br /&gt;
    eval &amp;quot;$(/opt/homebrew/bin/brew shellenv)&amp;quot;&lt;br /&gt;
else&lt;br /&gt;
    eval &amp;quot;$(/usr/local/bin/brew shellenv)&amp;quot;&lt;br /&gt;
fi&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You may now restart your terminal and use the following command to return to an x86_64 shell:&lt;br /&gt;
&amp;lt;pre&amp;gt;arch -x86_64 zsh&amp;lt;/pre&amp;gt;&lt;br /&gt;
Your shell will now select the right installation of Brew, depending on your architecture.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=== Build ===&lt;br /&gt;
Run this command to download Apple tap:&lt;br /&gt;
&amp;lt;pre&amp;gt;brew tap apple/apple http://github.com/apple/homebrew-apple&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Install the game-porting-toolkit formula. This formula downloads and compiles several large software projects. How long this takes will depend on the speed of your computer. It can take over 1 hour to complete depending on the speed of your Mac.&lt;br /&gt;
&amp;lt;pre&amp;gt;brew -v install apple/apple/game-porting-toolkit&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If during installation you see an error such as '''“Error: game-porting-toolkit: unknown or unsupported macOS version: :dunno”, your version of Homebrew doesn’t have macOS Sonoma support. Update to the latest version of Homebrew and try again.'''&lt;br /&gt;
&amp;lt;pre&amp;gt;brew update brew -v install apple/apple/game-porting-toolkit&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Wine prefix ===&lt;br /&gt;
A Wine prefix contains a virtual C: drive. You will install the toolkit and your game into this virtual C: drive. Run the following command to create a new Wine prefix named my-game-prefix in your home directory.&lt;br /&gt;
&amp;lt;pre&amp;gt;WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 winecfg&amp;lt;/pre&amp;gt;&lt;br /&gt;
*A “Wine configuration” window should appear on your screen.&lt;br /&gt;
*Change the version of Windows to Windows 10.&lt;br /&gt;
*Choose Apply and then OK to exit winecfg.&lt;br /&gt;
&lt;br /&gt;
If the “Wine configuration” window does not appear, and no new icon appears in the Dock, verify that you have correctly installed the x86_64 version of Homebrew as well as the game-porting-toolkit formula.&lt;br /&gt;
&lt;br /&gt;
=== Preparing the toolkit ===&lt;br /&gt;
Make sure the Game Porting Toolkit dmg downloaded earlier is mounted at /Volumes/Game Porting Toolkit-1.0. Use this script to copy the Game Porting Toolkit library directory into Wine’s library directory.&lt;br /&gt;
&amp;lt;pre&amp;gt;ditto /Volumes/Game\ Porting\ Toolkit-1.0/lib/ `brew --prefix game-porting-toolkit`/lib/&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Put the 3 scripts from the Game Porting Toolkit DMG into here &amp;lt;code&amp;gt;/usr/local/bin&amp;lt;/code&amp;gt; using this command:&lt;br /&gt;
&amp;lt;pre&amp;gt;cp /Volumes/Game\ Porting\ Toolkit*/gameportingtoolkit* /usr/local/bin&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now you are ready to install a launcher or individual Windows games, see below.&lt;br /&gt;
&lt;br /&gt;
== Steam ==&lt;br /&gt;
Download the [https://cdn.cloudflare.steamstatic.com/client/installer/SteamSetup.exe Windows version of Steam] and place in your Downloads folder.&lt;br /&gt;
&lt;br /&gt;
'''Install Steam'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix ~/Downloads/SteamSetup.exe&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Run Steam'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix 'C:\Program Files (x86)/Steam/steam.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Log into Steam'''&lt;br /&gt;
&lt;br /&gt;
A common issue is that Steam will present with a blank black window.&lt;br /&gt;
&lt;br /&gt;
Alternate way of launching Steam (after installing):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
MTL_HUD_ENABLED=1 WINEESYNC=1 WINEPREFIX=~/my-game-prefix /usr/local/Cellar/game-porting-toolkit/1.0/bin/wine64 'C:\Program Files (x86)\Steam\steam.exe'&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If this continues then close the Terminal window and then re-open and try again, repeat until the login screen opens. Now you should be able to download and launch Windows games through Steam.&lt;br /&gt;
&lt;br /&gt;
== Battle.net ==&lt;br /&gt;
Download the [https://download.battle.net/en-gb/?platform=windows Windows version of Battle.net].&lt;br /&gt;
&lt;br /&gt;
Make a new Wineprefix for Battle.net - we will refer to this as battle-net from now:&lt;br /&gt;
&amp;lt;pre&amp;gt;WINEPREFIX=~/battle-net `brew --prefix game-porting-toolkit`/bin/wine64 winecfg&amp;lt;/pre&amp;gt;&lt;br /&gt;
*A “Wine configuration” window should appear on your screen.&lt;br /&gt;
*Change the version of Windows to &amp;lt;code&amp;gt;Windows 10&amp;lt;/code&amp;gt;.&lt;br /&gt;
*Choose Apply and then OK to exit winecfg.&lt;br /&gt;
&lt;br /&gt;
'''Run Battle.net launcher'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/battle-net ~/Downloads/Battle.net-Setup.exe&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Be aware that there is an issue launching Battle.net once installed, the only current way to re-login is to 'install' the launcher again. &lt;br /&gt;
&lt;br /&gt;
Start individual game without the launcher using this command:&lt;br /&gt;
&amp;lt;pre&amp;gt;arch -x86_64 gameportingtoolkit-no-hud ~/battle-net 'C:\Program Files (x86)\Diablo IV\Diablo IV Launcher.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Epic and GOG.com support ==&lt;br /&gt;
This is particularly useful because '''as it currently stands, the real Epic Games Launcher fails to install under the Game Porting Toolkit'''. Heroic supports Epic and GOG.com games.&lt;br /&gt;
&lt;br /&gt;
* Install the [https://github.com/Heroic-Games-Launcher/HeroicGamesLauncher/releases native macOS Heroic Games Launcher] or from Homebrew.&lt;br /&gt;
* Open Heroic, and log into your Epic Games and/or GOG.com account.&lt;br /&gt;
* Go to the &amp;quot;Wine Manager&amp;quot; and install a '''numbered''' version of Wine, such that it won't auto update- we are going to modify it.&lt;br /&gt;
** At the time of writing this, the newest numbered version of Wine-Crossover is &amp;lt;code&amp;gt;Wine-Crossover-Wine-22.1.0&amp;lt;/code&amp;gt;&lt;br /&gt;
* Press the folder icon that appears after installing it to open the directory containing Heroic's Wine installations.&lt;br /&gt;
* Right-click on the version of Wine you just installed and press &amp;quot;Show Package Contents&amp;quot;.&lt;br /&gt;
* Open this directory in the Terminal.&lt;br /&gt;
** If you have &amp;quot;OpenInTerminal&amp;quot; this is one button, otherwise press &amp;quot;Show Path Bar&amp;quot; and navigate where it says with &amp;quot;cd&amp;quot;.&lt;br /&gt;
** It should be something like &amp;lt;code&amp;gt;cd ~/Library/Application\ Support/heroic/tools/wine/Wine-crossover-wine-22.1.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
* &amp;lt;pre&amp;gt;cd Contents/MacOS&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Remove the existing Wine: &amp;lt;pre&amp;gt;rm wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Create a symlink to Game Porting Toolkit's Wine: &lt;br /&gt;
** If using Game Porting Toolkit Wineprefix: &amp;lt;pre&amp;gt;ln -s `/usr/local/bin/brew --prefix game-porting-toolkit`/bin/wine64 wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
** If using Whisky: &amp;lt;pre&amp;gt;ln -s /Applications/Whisky.app/Contents/Resources/Libraries/Wine/bin/wine64 wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
* &amp;lt;pre&amp;gt;cd ../Resources&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Remove the existing Wine: &amp;lt;pre&amp;gt;rm -rfv wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Create a symlink to Game Porting Toolkit's Wine&lt;br /&gt;
** If using Game Porting Toolkit Wineprefix: &amp;lt;pre&amp;gt;ln -s `/usr/local/bin/brew --prefix game-porting-toolkit` wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
** If using Whisky: &amp;lt;pre&amp;gt;ln -s /Applications/Whisky.app/Contents/Resources/Libraries/Wine wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
* We are now done with Terminal. Install any games you want to try playing.&lt;br /&gt;
* Select the game you want to play, and press the settings button in the top-right.&lt;br /&gt;
* Make sure the version of Wine you just downloaded and modified is selected.&lt;br /&gt;
* Make sure your Game Porting Toolkit Wine Prefix is selected. If you followed Apple's guide this is &amp;lt;code&amp;gt;/Users/you/my-game-prefix&amp;lt;/code&amp;gt;.&lt;br /&gt;
* If you Open the &amp;quot;Other&amp;quot; section you can also add any environment variables you want like &amp;lt;code&amp;gt;WINEESYNC=1&amp;quot;&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;&amp;quot;MTL_HUD_ENABLED=1&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
* Close the settings and try running the game.&lt;br /&gt;
&lt;br /&gt;
== Commands ==&lt;br /&gt;
Installing individual exe games: open your Wine prefix’s virtual C: drive in Finder (open ~/my-game-prefix/drive_c) and copy your game into an appropriate subdirectory.&lt;br /&gt;
&lt;br /&gt;
'''A. Standard launching'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix 'C:\Program Files (x86)\Steam\steam.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This launches the given Windows game binary with a visible extended Metal Performance HUD and filters logging to output from the Game Porting Toolkit.&lt;br /&gt;
&lt;br /&gt;
'''B. Launching without a HUD'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit-no-hud ~/my-game-prefix 'C:\Program Files (x86)\Steam\steam.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''C. Launching with Wine ESYNC disabled'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit-no-esync ~/my-game-prefix 'C:\Program Files (x86)\Steam\steam.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To enter Winecfg:&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix winecfg&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Shortcut ==&lt;br /&gt;
You can make a shortcut for Steam for example by using macOS built-in Automator app.&lt;br /&gt;
*Open Automator.&lt;br /&gt;
*Select New Application.&lt;br /&gt;
*In the 2nd column select Run Shell Script.&lt;br /&gt;
*Copy and paste this code into the box:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/zsh&lt;br /&gt;
&lt;br /&gt;
export PATH=&amp;quot;/usr/local/bin:${PATH}&amp;quot;&lt;br /&gt;
&lt;br /&gt;
arch -x86_64 gameportingtoolkit ~/my-game-prefix 'C:\Program Files (x86)\Steam\steam.exe'&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the shortcut somewhere e.g. Applications.&lt;br /&gt;
*Above shortcut can be customised to any Wineprefix or game.&lt;br /&gt;
*Add an icon by selecting the shortcut, pressing {{key|cmd|I}} to Get Info, then dragging and dropping a PNG file onto the top left of the window.&lt;br /&gt;
&lt;br /&gt;
== Logging ==&lt;br /&gt;
The provided bin/gameportingtoolkit* scripts can be copied onto your path to facilitate different forms of logging and launching. You can run these scripts from any shell; you don’t need to switch to the Rosetta environment first.&lt;br /&gt;
&lt;br /&gt;
Logging output will appear in the Terminal window in which you launch your game as well as the system log, which can be viewed with the Console app found in Applications ▸ Utilities. Log messages from the Game Porting Toolkit are prefixed with D3DM. By default the gameportingtoolkit* scripts will filter to just the D3DM-prefixed messages.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
{{Image|GPTK Steam black screen.png|Steam login black screen issue.}}&lt;br /&gt;
'''Steam login black screen'''&lt;br /&gt;
&lt;br /&gt;
Close the Terminal window and then reopen and retry the command, repeat several times.&lt;br /&gt;
&lt;br /&gt;
Alternate way of launching Steam (after installing):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
MTL_HUD_ENABLED=1 WINEESYNC=1 WINEPREFIX=&amp;lt;path to the Wine bottle you set up&amp;gt; /usr/local/Cellar/game-porting-toolkit/1.0/bin/wine64 'C:\Program Files (x86)/Steam/steam.exe'&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If still not working then try using [[CrossOver]] and create a Steam bottle, then login, then redirect this WINEPREFIX to that bottle:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=&amp;quot;/Users/[username]/Library/Application Support/CrossOver/Bottles/Steam/&amp;quot; &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Steam crashes straight after opening'''&lt;br /&gt;
&lt;br /&gt;
Disconnect any external monitors.&lt;br /&gt;
&lt;br /&gt;
'''Battle.net launcher won't re-launch'''&lt;br /&gt;
&lt;br /&gt;
Re-install the launcher to reopen, no other fix at the moment.&lt;br /&gt;
&lt;br /&gt;
'''My game won’t run because it thinks the version of Windows is too old. Some games detect specific minimum versions of Windows and need to be updated.''' Use this script to update your wineprefix with build 19042 which should work for most games e.g. Spider-Man Remastered.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion' /v CurrentBuild /t REG_SZ /d 19042 /f&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion' /v CurrentBuildNumber /t REG_SZ /d 19042 /f&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wineserver -k&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''steamwebhelper.exe crashes'''&lt;br /&gt;
&lt;br /&gt;
This is caused by Steam being run through macOS Ventura or below, most users should upgrade to macOS Sonoma. You can use the CrossOver workaround to login to Steam but you'll experience constant crashing.&lt;br /&gt;
&lt;br /&gt;
'''My game won't run and crashes with an invalid instruction'''&lt;br /&gt;
&lt;br /&gt;
AVX and AVX2 games are not supported by Apple's arm64 chipset.&lt;br /&gt;
&lt;br /&gt;
'''My game won't run because its anti-cheat or DRM software is incompatible with Wine translation.'''&lt;br /&gt;
&lt;br /&gt;
Likely there will be no fixes for any games that use anti-cheat, e.g. Easy Anti Cheat. Some games have workarounds e.g. Elden Ring. Other games that use say Denuvo may also be incompatible until that DRM is removed by the game's developer.&lt;br /&gt;
&lt;br /&gt;
'''My game won’t run because it requires Mono, .NET, or the MSVCRT runtime.'''&lt;br /&gt;
&lt;br /&gt;
The game porting toolkit’s evaluation environment does not pre-install these runtime support packages. If your game makes use of one of these packages, consider searching for and downloading appropriate installers (.exe or .msi) and installing them to your evaluation environment. Additional runtime installers can be run on your environment by just launching the installer and following its installation instructions:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 &amp;lt;some-installer.exe&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
And .MSI packages can be installed by launching the Windows uninstaller application and choosing to install a downloaded .msi package:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 uninstaller&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Controller issues'''&lt;br /&gt;
&lt;br /&gt;
Issues may be fixed by enrolling into the Steam beta.&lt;br /&gt;
&lt;br /&gt;
'''My game looks pixelated and the display resolution is limited'''&lt;br /&gt;
&lt;br /&gt;
Enable Retina (high resolution) mode:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_CURRENT_USER\Software\Wine\Mac Driver' /v RetinaMode /t REG_SZ /d 'Y' /f&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Some games will not run with Retina mode enabled. To disable it:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_CURRENT_USER\Software\Wine\Mac Driver' /v RetinaMode /t REG_SZ /d 'N' /f&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Game compatibility list ==&lt;br /&gt;
Working games:&lt;br /&gt;
* Bloodstained: Ritual of the Night&lt;br /&gt;
* Control (DX12 mode, if downloaded from Heroic, needs to be ran by Terminal)&lt;br /&gt;
* Crysis Remastered&lt;br /&gt;
* Cuphead&lt;br /&gt;
* Cyberpunk 2077&lt;br /&gt;
* Deep Rock Galactic&lt;br /&gt;
* Deceive Inc. - works well if launched without EAC&lt;br /&gt;
* Derail Valley (awesome performance, no missing manuals - in-game objects for train operation - like on CrossOver)&lt;br /&gt;
* Diablo IV [https://www.reddit.com/r/macgaming/comments/14307be/comment/jn7dxzo/?utm_source=reddit&amp;amp;utm_medium=web2x&amp;amp;context=3 ]&lt;br /&gt;
* Dyson Sphere Program (some objects and main character weren't visible before)&lt;br /&gt;
* Elden Ring&lt;br /&gt;
* Final Fantasy VII Remake Intergrade (~50 FPS on High settings at 1080p with M1 Pro)&lt;br /&gt;
* God of War (Works somewhat well on M1 Pro (16gb), wouldn't recommend lesser hardware.)&lt;br /&gt;
* Going Medieval&lt;br /&gt;
* Guilty Gear Strive&lt;br /&gt;
* Halo 3 (MCC - No Online due to Easy Anti-Cheat Compatibility) [https://www.reddit.com/r/macgaming/comments/143zoos/halo_3_mcc_no_online_eac_m1_pro_game_porting/]&lt;br /&gt;
* HI-Fi RUSH&lt;br /&gt;
* Hogwarts Legacy&lt;br /&gt;
* Hatsune Miku: Project DIVA Mega Mix+ - works with Retina mode; DivaModLoader and DivaNoSpy recommended; run Steam with WINEDEBUG=-all WINEESYNC=0 WINEDLLOVERRIDES=&amp;quot;dinput8.dll=n,b&amp;quot;; may randomly crash at the title screen (just restart and try again until it works)&lt;br /&gt;
* Kena: Bridge of Spirits&lt;br /&gt;
* Metal Gear Solid V: The Phantom Pain&lt;br /&gt;
* Overwatch 2&lt;br /&gt;
* QUBE 2&lt;br /&gt;
* Risk of Rain 2 (does not require `-disable-gpu-skinning` like Crossover 22)&lt;br /&gt;
* Scarlet Nexus&lt;br /&gt;
* Sonic Omens&lt;br /&gt;
* Sonic P-06&lt;br /&gt;
* Spider-Man (2018)&lt;br /&gt;
* Spider-Man Miles Morales - ''requires Windows ver fix''&lt;br /&gt;
* SpongeBob SquarePants: The Cosmic Shake&lt;br /&gt;
* StarCraft: Remastered - Game runs fine but opening Option menu the second time will cause game not recognizing any inputs.&lt;br /&gt;
* Tetris Effect: Connected - Game window likes to be uncooperative; really doesn't like retina mode, works otherwise&lt;br /&gt;
* Warframe - ''To get installer/launcher working add dwrite (disabled) to library overrides in winecfg''&lt;br /&gt;
&lt;br /&gt;
Not working well:&lt;br /&gt;
* Horizon Zero Dawn - slowdown issues&lt;br /&gt;
&lt;br /&gt;
Not working yet:&lt;br /&gt;
* Among Us&lt;br /&gt;
* Company of Heroes 3&lt;br /&gt;
* F1 22 - Crash on launch (  &amp;quot;Exception&amp;quot;: &amp;quot;C0000005 EXCEPTION_ACCESS_VIOLATION at 0000000141bd8687&amp;quot;)&lt;br /&gt;
* Halo Infinite - Crash on launch&lt;br /&gt;
* Hitman 3 - launcher works, crash at 0x0000014136dddd hitman3+0x136dddd: int $3&lt;br /&gt;
* Microsoft Flight Simulator 2020 (Steam) - Crash on launch&lt;br /&gt;
* Monster Hunter Rise - DX12 Game, it launches but window goes dark after compiling shaders.&lt;br /&gt;
* Monster Hunter World - Black Screen on Launch&lt;br /&gt;
* Red Dead Redemption 2&lt;br /&gt;
* Rogue Company - anti-cheat conflict.&lt;br /&gt;
* Sea of Thieves - Launches, but the prompt to sign into an xbox live account appears blank and cannot&lt;br /&gt;
* Many (all?) DX9 games&lt;br /&gt;
** 30XX - &amp;quot;Failed to create D3D device&amp;quot; -&amp;gt; crash on launch; this is a rare 64-bit DX9 game&lt;br /&gt;
** Killing Floor 1 - Crash on launch&lt;br /&gt;
** Left 4 Dead 2 - Black screen -&amp;gt; crash on launch&lt;br /&gt;
** Mega Man Zero/ZX Legacy Collection - &amp;quot;Failed to create d3d9 device&amp;quot; -&amp;gt; crash on launch&lt;br /&gt;
** Sonic Mania - Crash on launch&lt;br /&gt;
** StarCraft II -&amp;gt; &amp;quot;Failed to initialize DirectX&amp;quot; error&lt;br /&gt;
** Battlefield 2 - DirectX installation failed, won't launch, see the [https://gist.github.com/chrismwendt/1d01a306cdc8618a06bdfb555743e25c error log]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{References}}&lt;/div&gt;</summary>
		<author><name>Andytizer</name></author>
	</entry>
	<entry>
		<id>https://www.applegamingwiki.com/w/index.php?title=Game_Porting_Toolkit&amp;diff=7631</id>
		<title>Game Porting Toolkit</title>
		<link rel="alternate" type="text/html" href="https://www.applegamingwiki.com/w/index.php?title=Game_Porting_Toolkit&amp;diff=7631"/>
		<updated>2023-06-08T21:59:39Z</updated>

		<summary type="html">&lt;p&gt;Andytizer: Apple internally refers to this as GPT&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Image|Game Porting Toolkit.png|Released 6th June, 2023 at WWDC23.}}&lt;br /&gt;
&lt;br /&gt;
Game Porting Toolkit is Apple's new translation layer released on 6th June, 2023. Game Porting Toolkit ('''GPT''') combines Wine with Apple's own D3DMetal which supports DirectX 11 and 12&amp;lt;ref&amp;gt;{{Refurl|url=https://mastodon.gamedev.place/@gavkar/110501451404624870|title=Gokhan Avkarogullari: &amp;quot;@yiningkarlli @aras @romainguy…&amp;quot; - Gamedev Mastodon}}&amp;lt;/ref&amp;gt;. This is less user-friendly method of installing Windows games on Apple Silicon Macs compared to [[CrossOver]] or [[Parallels]], however it unlocks the ability to play many DirectX 12 games. A lot more games work using GPTK, however, games that use anti-cheat or aggressive DRMs generally don't work, along with games that require AVX/AVX 2, e.g. The Last of Us Part I.&lt;br /&gt;
&lt;br /&gt;
== Toolkit install instructions ==&lt;br /&gt;
=== Requirements ===&lt;br /&gt;
*macOS Sonoma should be used, currently it is in beta. You can download the pkg installer from [https://mrmacintosh.com/macos-sonoma-full-installer-database-download-directly-from-apple/ Mr Macintosh blog].&lt;br /&gt;
*macOS Ventura causes large numbers of issues with steamwebhelper.exe crashing so it isn't recommended, use the macOS Sonoma beta.&lt;br /&gt;
**If you have an old version Xcode installed, remove it.&lt;br /&gt;
*Visit [https://developer.apple.com/downloads Apple Developer Downloads site], these files are now free to download use for any logged in Apple account.&lt;br /&gt;
**Search for Command Line Tools for Xcode 15 beta and download the dmg file, then install it.&lt;br /&gt;
**Search for Game Porting Toolkit and download it. Open the dmg file and then run the pkg.&lt;br /&gt;
&lt;br /&gt;
=== Homebrew ===&lt;br /&gt;
Note: if you have ever installed Homebrew before, then it is advised to remove ARM64 Homebrew as this can interfere with this build process. Either use a Homebrew uninstall script or delete the folder &amp;lt;code&amp;gt;/opt/homebrew/bin&amp;lt;/code&amp;gt;. If you prefer to keep both ARM64 and x86 versions of brew installed, you may add a &amp;quot;brew-switcher&amp;quot; to your &amp;lt;code&amp;gt;.zshrc&amp;lt;/code&amp;gt; file to allow either version to be used depending on the active architecture. You may follow the steps at the end of this section after installing Brew to achieve this.&lt;br /&gt;
&lt;br /&gt;
Open Terminal (search in Spotlight on macOS).&lt;br /&gt;
&lt;br /&gt;
Install Rosetta:&lt;br /&gt;
&amp;lt;pre&amp;gt;softwareupdate --install-rosetta&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Enter an x86_64 shell to continue the following steps in a Rosetta environment. All subsequent commands should be run within this shell.&lt;br /&gt;
&amp;lt;pre&amp;gt;arch -x86_64 zsh&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Install the x86_64 version of Homebrew if you don't already have it.&lt;br /&gt;
&amp;lt;pre&amp;gt;/bin/bash -c &amp;quot;$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)&amp;quot;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Make sure the brew command is on your path:&lt;br /&gt;
&amp;lt;pre&amp;gt;which brew&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If this command does not print &amp;lt;code&amp;gt;/usr/local/bin/brew&amp;lt;/code&amp;gt;, you should use this command:&lt;br /&gt;
&amp;lt;pre&amp;gt;export PATH=/usr/local/bin:${PATH}&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Fixbox|description=Optionally retain both ARM64 and x86 versions of Brew|ref=|collapsed=yes|fix=&lt;br /&gt;
(Optional) If you want to have both ARM64 and x86 versions of Brew installed, begin by editing your &amp;lt;code&amp;gt;.zshrc&amp;lt;/code&amp;gt; file:&lt;br /&gt;
&amp;lt;pre&amp;gt;nano ~/.zshrc&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Scroll down (by using the arrow keys or Control + V) to the bottom of the file, and paste the following script:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
if [ &amp;quot;$(arch)&amp;quot; = &amp;quot;arm64&amp;quot; ]; then&lt;br /&gt;
    eval &amp;quot;$(/opt/homebrew/bin/brew shellenv)&amp;quot;&lt;br /&gt;
else&lt;br /&gt;
    eval &amp;quot;$(/usr/local/bin/brew shellenv)&amp;quot;&lt;br /&gt;
fi&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You may now restart your terminal and use the following command to return to an x86_64 shell:&lt;br /&gt;
&amp;lt;pre&amp;gt;arch -x86_64 zsh&amp;lt;/pre&amp;gt;&lt;br /&gt;
Your shell will now select the right installation of Brew, depending on your architecture.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=== Build ===&lt;br /&gt;
Run this command to download Apple tap:&lt;br /&gt;
&amp;lt;pre&amp;gt;brew tap apple/apple http://github.com/apple/homebrew-apple&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Install the game-porting-toolkit formula. This formula downloads and compiles several large software projects. How long this takes will depend on the speed of your computer. It can take over 1 hour to complete depending on the speed of your Mac.&lt;br /&gt;
&amp;lt;pre&amp;gt;brew -v install apple/apple/game-porting-toolkit&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If during installation you see an error such as '''“Error: game-porting-toolkit: unknown or unsupported macOS version: :dunno”, your version of Homebrew doesn’t have macOS Sonoma support. Update to the latest version of Homebrew and try again.'''&lt;br /&gt;
&amp;lt;pre&amp;gt;brew update brew -v install apple/apple/game-porting-toolkit&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Wine prefix ===&lt;br /&gt;
A Wine prefix contains a virtual C: drive. You will install the toolkit and your game into this virtual C: drive. Run the following command to create a new Wine prefix named my-game-prefix in your home directory.&lt;br /&gt;
&amp;lt;pre&amp;gt;WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 winecfg&amp;lt;/pre&amp;gt;&lt;br /&gt;
*A “Wine configuration” window should appear on your screen.&lt;br /&gt;
*Change the version of Windows to Windows 10.&lt;br /&gt;
*Choose Apply and then OK to exit winecfg.&lt;br /&gt;
&lt;br /&gt;
If the “Wine configuration” window does not appear, and no new icon appears in the Dock, verify that you have correctly installed the x86_64 version of Homebrew as well as the game-porting-toolkit formula.&lt;br /&gt;
&lt;br /&gt;
=== Preparing the toolkit ===&lt;br /&gt;
Make sure the Game Porting Toolkit dmg downloaded earlier is mounted at /Volumes/Game Porting Toolkit-1.0. Use this script to copy the Game Porting Toolkit library directory into Wine’s library directory.&lt;br /&gt;
&amp;lt;pre&amp;gt;ditto /Volumes/Game\ Porting\ Toolkit-1.0/lib/ `brew --prefix game-porting-toolkit`/lib/&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Put the 3 scripts from the Game Porting Toolkit DMG into here &amp;lt;code&amp;gt;/usr/local/bin&amp;lt;/code&amp;gt; using this command:&lt;br /&gt;
&amp;lt;pre&amp;gt;cp /Volumes/Game\ Porting\ Toolkit*/gameportingtoolkit* /usr/local/bin&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now you are ready to install a launcher or individual Windows games, see below.&lt;br /&gt;
&lt;br /&gt;
== Steam ==&lt;br /&gt;
Download the [https://cdn.cloudflare.steamstatic.com/client/installer/SteamSetup.exe Windows version of Steam] and place in your Downloads folder.&lt;br /&gt;
&lt;br /&gt;
'''Install Steam'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix ~/Downloads/SteamSetup.exe&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Run Steam'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix 'C:\Program Files (x86)/Steam/steam.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Log into Steam'''&lt;br /&gt;
&lt;br /&gt;
A common issue is that Steam will present with a blank black window.&lt;br /&gt;
&lt;br /&gt;
Alternate way of launching Steam (after installing):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
MTL_HUD_ENABLED=1 WINEESYNC=1 WINEPREFIX=~/my-game-prefix /usr/local/Cellar/game-porting-toolkit/1.0/bin/wine64 'C:\Program Files (x86)\Steam\steam.exe'&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If this continues then close the Terminal window and then re-open and try again, repeat until the login screen opens. Now you should be able to download and launch Windows games through Steam.&lt;br /&gt;
&lt;br /&gt;
== Battle.net ==&lt;br /&gt;
Download the [https://download.battle.net/en-gb/?platform=windows Windows version of Battle.net].&lt;br /&gt;
&lt;br /&gt;
Make a new Wineprefix for Battle.net - we will refer to this as battle-net from now:&lt;br /&gt;
&amp;lt;pre&amp;gt;WINEPREFIX=~/battle-net `brew --prefix game-porting-toolkit`/bin/wine64 winecfg&amp;lt;/pre&amp;gt;&lt;br /&gt;
*A “Wine configuration” window should appear on your screen.&lt;br /&gt;
*Change the version of Windows to &amp;lt;code&amp;gt;Windows 10&amp;lt;/code&amp;gt;.&lt;br /&gt;
*Choose Apply and then OK to exit winecfg.&lt;br /&gt;
&lt;br /&gt;
'''Run Battle.net launcher'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/battle-net ~/Downloads/Battle.net-Setup.exe&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Be aware that there is an issue launching Battle.net once installed, the only current way to re-login is to 'install' the launcher again. &lt;br /&gt;
&lt;br /&gt;
Start individual game without the launcher using this command:&lt;br /&gt;
&amp;lt;pre&amp;gt;arch -x86_64 gameportingtoolkit-no-hud ~/battle-net 'C:\Program Files (x86)\Diablo IV\Diablo IV Launcher.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Epic and GOG.com support ==&lt;br /&gt;
This is particularly useful because '''as it currently stands, the real Epic Games Launcher fails to install under the Game Porting Toolkit'''. Heroic supports Epic and GOG.com games.&lt;br /&gt;
&lt;br /&gt;
* Install the [https://github.com/Heroic-Games-Launcher/HeroicGamesLauncher/releases native macOS Heroic Games Launcher] or from Homebrew.&lt;br /&gt;
* Open Heroic, and log into your Epic Games and/or GOG.com account.&lt;br /&gt;
* Go to the &amp;quot;Wine Manager&amp;quot; and install a '''numbered''' version of Wine, such that it won't auto update- we are going to modify it.&lt;br /&gt;
** At the time of writing this, the newest numbered version of Wine-Crossover is &amp;lt;code&amp;gt;Wine-Crossover-Wine-22.1.0&amp;lt;/code&amp;gt;&lt;br /&gt;
* Press the folder icon that appears after installing it to open the directory containing Heroic's Wine installations.&lt;br /&gt;
* Right-click on the version of Wine you just installed and press &amp;quot;Show Package Contents&amp;quot;.&lt;br /&gt;
* Open this directory in the Terminal.&lt;br /&gt;
** If you have &amp;quot;OpenInTerminal&amp;quot; this is one button, otherwise press &amp;quot;Show Path Bar&amp;quot; and navigate where it says with &amp;quot;cd&amp;quot;.&lt;br /&gt;
** It should be something like &amp;lt;code&amp;gt;cd ~/Library/Application\ Support/heroic/tools/wine/Wine-crossover-wine-22.1.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
* &amp;lt;pre&amp;gt;cd Contents/MacOS&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Remove the existing Wine: &amp;lt;pre&amp;gt;rm wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Create a symlink to Game Porting Toolkit's Wine: &lt;br /&gt;
** If using Game Porting Toolkit Wineprefix: &amp;lt;pre&amp;gt;ln -s `/usr/local/bin/brew --prefix game-porting-toolkit`/bin/wine64 wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
** If using Whisky: &amp;lt;pre&amp;gt;ln -s /Applications/Whisky.app/Contents/Resources/Libraries/Wine/bin/wine64 wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
* &amp;lt;pre&amp;gt;cd ../Resources&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Remove the existing Wine: &amp;lt;pre&amp;gt;rm -rfv wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Create a symlink to Game Porting Toolkit's Wine&lt;br /&gt;
** If using Game Porting Toolkit Wineprefix: &amp;lt;pre&amp;gt;ln -s `/usr/local/bin/brew --prefix game-porting-toolkit` wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
** If using Whisky: &amp;lt;pre&amp;gt;ln -s /Applications/Whisky.app/Contents/Resources/Libraries/Wine wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
* We are now done with Terminal. Install any games you want to try playing.&lt;br /&gt;
* Select the game you want to play, and press the settings button in the top-right.&lt;br /&gt;
* Make sure the version of Wine you just downloaded and modified is selected.&lt;br /&gt;
* Make sure your Game Porting Toolkit Wine Prefix is selected. If you followed Apple's guide this is &amp;lt;code&amp;gt;/Users/you/my-game-prefix&amp;lt;/code&amp;gt;.&lt;br /&gt;
* If you Open the &amp;quot;Other&amp;quot; section you can also add any environment variables you want like &amp;lt;code&amp;gt;WINEESYNC=1&amp;quot;&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;&amp;quot;MTL_HUD_ENABLED=1&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
* Close the settings and try running the game.&lt;br /&gt;
&lt;br /&gt;
== Commands ==&lt;br /&gt;
Installing individual exe games: open your Wine prefix’s virtual C: drive in Finder (open ~/my-game-prefix/drive_c) and copy your game into an appropriate subdirectory.&lt;br /&gt;
&lt;br /&gt;
'''A. Standard launching'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix 'C:\Program Files (x86)\Steam\steam.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This launches the given Windows game binary with a visible extended Metal Performance HUD and filters logging to output from the Game Porting Toolkit.&lt;br /&gt;
&lt;br /&gt;
'''B. Launching without a HUD'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit-no-hud ~/my-game-prefix 'C:\Program Files (x86)\Steam\steam.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''C. Launching with Wine ESYNC disabled'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit-no-esync ~/my-game-prefix 'C:\Program Files (x86)\Steam\steam.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To enter Winecfg:&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix winecfg&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Shortcut ==&lt;br /&gt;
You can make a shortcut for Steam for example by using macOS built-in Automator app.&lt;br /&gt;
*Open Automator.&lt;br /&gt;
*Select New Application.&lt;br /&gt;
*In the 2nd column select Run Shell Script.&lt;br /&gt;
*Copy and paste this code into the box:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/zsh&lt;br /&gt;
&lt;br /&gt;
export PATH=&amp;quot;/usr/local/bin:${PATH}&amp;quot;&lt;br /&gt;
&lt;br /&gt;
arch -x86_64 gameportingtoolkit ~/my-game-prefix 'C:\Program Files (x86)\Steam\steam.exe'&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the shortcut somewhere e.g. Applications.&lt;br /&gt;
*Above shortcut can be customised to any Wineprefix or game.&lt;br /&gt;
*Add an icon by selecting the shortcut, pressing {{key|cmd|I}} to Get Info, then dragging and dropping a PNG file onto the top left of the window.&lt;br /&gt;
&lt;br /&gt;
== Logging ==&lt;br /&gt;
The provided bin/gameportingtoolkit* scripts can be copied onto your path to facilitate different forms of logging and launching. You can run these scripts from any shell; you don’t need to switch to the Rosetta environment first.&lt;br /&gt;
&lt;br /&gt;
Logging output will appear in the Terminal window in which you launch your game as well as the system log, which can be viewed with the Console app found in Applications ▸ Utilities. Log messages from the Game Porting Toolkit are prefixed with D3DM. By default the gameportingtoolkit* scripts will filter to just the D3DM-prefixed messages.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
{{Image|GPTK Steam black screen.png|Steam login black screen issue.}}&lt;br /&gt;
'''Steam login black screen'''&lt;br /&gt;
&lt;br /&gt;
Close the Terminal window and then reopen and retry the command, repeat several times.&lt;br /&gt;
&lt;br /&gt;
Alternate way of launching Steam (after installing):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
MTL_HUD_ENABLED=1 WINEESYNC=1 WINEPREFIX=&amp;lt;path to the Wine bottle you set up&amp;gt; /usr/local/Cellar/game-porting-toolkit/1.0/bin/wine64 'C:\Program Files (x86)/Steam/steam.exe'&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If still not working then try using [[CrossOver]] and create a Steam bottle, then redirect this WINEPREFIX to that bottle:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=&amp;quot;/Users/[username]/Library/Application Support/CrossOver/Bottles/Steam/&amp;quot; &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Steam crashes straight after opening'''&lt;br /&gt;
&lt;br /&gt;
Disconnect any external monitors.&lt;br /&gt;
&lt;br /&gt;
'''Battle.net launcher won't re-launch'''&lt;br /&gt;
&lt;br /&gt;
Re-install the launcher to reopen, no other fix at the moment.&lt;br /&gt;
&lt;br /&gt;
'''My game won’t run because it thinks the version of Windows is too old. Some games detect specific minimum versions of Windows and need to be updated.''' Use this script to update your wineprefix with build 19042 which should work for most games e.g. Spider-Man Remastered.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion' /v CurrentBuild /t REG_SZ /d 19042 /f&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion' /v CurrentBuildNumber /t REG_SZ /d 19042 /f&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wineserver -k&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''steamwebhelper.exe crashes'''&lt;br /&gt;
&lt;br /&gt;
This is caused by Steam being run through macOS Ventura or below, upgrade to macOS Sonoma.&lt;br /&gt;
&lt;br /&gt;
'''My game won't run and crashes with an invalid instruction'''&lt;br /&gt;
&lt;br /&gt;
AVX and AVX2 games are not supported by Apple's arm64 chipset.&lt;br /&gt;
&lt;br /&gt;
'''My game won't run because its anti-cheat or DRM software is incompatible with Wine translation.'''&lt;br /&gt;
&lt;br /&gt;
Likely there will be no fixes for any games that use anti-cheat, e.g. Easy Anti Cheat. Some games have workarounds e.g. Elden Ring. Other games that use say Denuvo may also be incompatible until that DRM is removed by the game's developer.&lt;br /&gt;
&lt;br /&gt;
'''My game won’t run because it requires Mono, .NET, or the MSVCRT runtime.'''&lt;br /&gt;
&lt;br /&gt;
The game porting toolkit’s evaluation environment does not pre-install these runtime support packages. If your game makes use of one of these packages, consider searching for and downloading appropriate installers (.exe or .msi) and installing them to your evaluation environment. Additional runtime installers can be run on your environment by just launching the installer and following its installation instructions:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 &amp;lt;some-installer.exe&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
And .MSI packages can be installed by launching the Windows uninstaller application and choosing to install a downloaded .msi package:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 uninstaller&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Controller issues'''&lt;br /&gt;
&lt;br /&gt;
Issues may be fixed by enrolling into the Steam beta.&lt;br /&gt;
&lt;br /&gt;
'''My game looks pixelated and the display resolution is limited'''&lt;br /&gt;
&lt;br /&gt;
Enable Retina (high resolution) mode:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_CURRENT_USER\Software\Wine\Mac Driver' /v RetinaMode /t REG_SZ /d 'Y' /f&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Some games will not run with Retina mode enabled. To disable it:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_CURRENT_USER\Software\Wine\Mac Driver' /v RetinaMode /t REG_SZ /d 'N' /f&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Game compatibility list ==&lt;br /&gt;
Working games:&lt;br /&gt;
* Bloodstained: Ritual of the Night&lt;br /&gt;
* Control (DX12 mode, if downloaded from Heroic, needs to be ran by Terminal)&lt;br /&gt;
* Crysis Remastered&lt;br /&gt;
* Cuphead&lt;br /&gt;
* Cyberpunk 2077&lt;br /&gt;
* Deep Rock Galactic&lt;br /&gt;
* Deceive Inc. - works well if launched without EAC&lt;br /&gt;
* Derail Valley (awesome performance, no missing manuals - in-game objects for train operation - like on CrossOver)&lt;br /&gt;
* Diablo IV [https://www.reddit.com/r/macgaming/comments/14307be/comment/jn7dxzo/?utm_source=reddit&amp;amp;utm_medium=web2x&amp;amp;context=3 ]&lt;br /&gt;
* Dyson Sphere Program (some objects and main character weren't visible before)&lt;br /&gt;
* Elden Ring&lt;br /&gt;
* Final Fantasy VII Remake Intergrade (~50 FPS on High settings at 1080p with M1 Pro)&lt;br /&gt;
* God of War (Works somewhat well on M1 Pro (16gb), wouldn't recommend lesser hardware.)&lt;br /&gt;
* Going Medieval&lt;br /&gt;
* Guilty Gear Strive&lt;br /&gt;
* Halo 3 (MCC - No Online due to Easy Anti-Cheat Compatibility) [https://www.reddit.com/r/macgaming/comments/143zoos/halo_3_mcc_no_online_eac_m1_pro_game_porting/]&lt;br /&gt;
* HI-Fi RUSH&lt;br /&gt;
* Hogwarts Legacy&lt;br /&gt;
* Hatsune Miku: Project DIVA Mega Mix+ - works with Retina mode; DivaModLoader and DivaNoSpy recommended; run Steam with WINEDEBUG=-all WINEESYNC=0 WINEDLLOVERRIDES=&amp;quot;dinput8.dll=n,b&amp;quot;; may randomly crash at the title screen (just restart and try again until it works)&lt;br /&gt;
* Kena: Bridge of Spirits&lt;br /&gt;
* Metal Gear Solid V: The Phantom Pain&lt;br /&gt;
* Overwatch 2&lt;br /&gt;
* QUBE 2&lt;br /&gt;
* Risk of Rain 2 (does not require `-disable-gpu-skinning` like Crossover 22)&lt;br /&gt;
* Scarlet Nexus&lt;br /&gt;
* Sonic Omens&lt;br /&gt;
* Sonic P-06&lt;br /&gt;
* Spider-Man (2018)&lt;br /&gt;
* Spider-Man Miles Morales - ''requires Windows ver fix''&lt;br /&gt;
* SpongeBob SquarePants: The Cosmic Shake&lt;br /&gt;
* StarCraft: Remastered - Game runs fine but opening Option menu the second time will cause game not recognizing any inputs.&lt;br /&gt;
* Tetris Effect: Connected - Game window likes to be uncooperative; really doesn't like retina mode, works otherwise&lt;br /&gt;
* Warframe - ''To get installer/launcher working add dwrite (disabled) to library overrides in winecfg''&lt;br /&gt;
&lt;br /&gt;
Not working well:&lt;br /&gt;
* Horizon Zero Dawn - slowdown issues&lt;br /&gt;
&lt;br /&gt;
Not working yet:&lt;br /&gt;
* Among Us&lt;br /&gt;
* Company of Heroes 3&lt;br /&gt;
* F1 22 - Crash on launch (  &amp;quot;Exception&amp;quot;: &amp;quot;C0000005 EXCEPTION_ACCESS_VIOLATION at 0000000141bd8687&amp;quot;)&lt;br /&gt;
* Halo Infinite - Crash on launch&lt;br /&gt;
* Hitman 3 - launcher works, crash at 0x0000014136dddd hitman3+0x136dddd: int $3&lt;br /&gt;
* Microsoft Flight Simulator 2020 (Steam) - Crash on launch&lt;br /&gt;
* Monster Hunter Rise - DX12 Game, it launches but window goes dark after compiling shaders.&lt;br /&gt;
* Monster Hunter World - Black Screen on Launch&lt;br /&gt;
* Red Dead Redemption 2&lt;br /&gt;
* Rogue Company - anti-cheat conflict.&lt;br /&gt;
* Sea of Thieves - Launches, but the prompt to sign into an xbox live account appears blank and cannot&lt;br /&gt;
* Many (all?) DX9 games&lt;br /&gt;
** 30XX - &amp;quot;Failed to create D3D device&amp;quot; -&amp;gt; crash on launch; this is a rare 64-bit DX9 game&lt;br /&gt;
** Killing Floor 1 - Crash on launch&lt;br /&gt;
** Left 4 Dead 2 - Black screen -&amp;gt; crash on launch&lt;br /&gt;
** Mega Man Zero/ZX Legacy Collection - &amp;quot;Failed to create d3d9 device&amp;quot; -&amp;gt; crash on launch&lt;br /&gt;
** Sonic Mania - Crash on launch&lt;br /&gt;
** StarCraft II -&amp;gt; &amp;quot;Failed to initialize DirectX&amp;quot; error&lt;br /&gt;
** Battlefield 2 - DirectX installation failed, won't launch, see the [https://gist.github.com/chrismwendt/1d01a306cdc8618a06bdfb555743e25c error log]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{References}}&lt;/div&gt;</summary>
		<author><name>Andytizer</name></author>
	</entry>
	<entry>
		<id>https://www.applegamingwiki.com/w/index.php?title=Game_Porting_Toolkit&amp;diff=7624</id>
		<title>Game Porting Toolkit</title>
		<link rel="alternate" type="text/html" href="https://www.applegamingwiki.com/w/index.php?title=Game_Porting_Toolkit&amp;diff=7624"/>
		<updated>2023-06-08T20:04:39Z</updated>

		<summary type="html">&lt;p&gt;Andytizer: /* Toolkit install instructions */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Image|Game Porting Toolkit.png|Released 6th June, 2023 at WWDC23.}}&lt;br /&gt;
&lt;br /&gt;
Game Porting Toolkit is Apple's new translation layer released on 6th June, 2023. Game Porting Toolkit ('''GPTK''') combines Wine with Apple's own D3DMetal which supports DirectX 11 and 12&amp;lt;ref&amp;gt;{{Refurl|url=https://mastodon.gamedev.place/@gavkar/110501451404624870|title=Gokhan Avkarogullari: &amp;quot;@yiningkarlli @aras @romainguy…&amp;quot; - Gamedev Mastodon}}&amp;lt;/ref&amp;gt;. This is less user-friendly method of installing Windows games on Apple Silicon Macs compared to [[CrossOver]] or [[Parallels]], however it unlocks the ability to play many DirectX 12 games. A lot more games work using GPTK, however, games that use anti-cheat or aggressive DRMs generally don't work, along with games that require AVX/AVX 2, e.g. The Last of Us Part I.&lt;br /&gt;
&lt;br /&gt;
== Toolkit install instructions ==&lt;br /&gt;
=== Requirements ===&lt;br /&gt;
*macOS Sonoma should be used, currently it is in beta. You can download the pkg installer from [https://mrmacintosh.com/macos-sonoma-full-installer-database-download-directly-from-apple/ Mr Macintosh blog].&lt;br /&gt;
*macOS Ventura causes large numbers of issues with steamwebhelper.exe crashing so it isn't recommended, use the macOS Sonoma beta.&lt;br /&gt;
**If you have an old version Xcode installed, remove it.&lt;br /&gt;
*Visit [https://developer.apple.com/downloads Apple Developer Downloads site], these files are now free to download use for any logged in Apple account.&lt;br /&gt;
**Search for Command Line Tools for Xcode 15 beta and download the dmg file, then install it.&lt;br /&gt;
**Search for Game Porting Toolkit and download it. Open the dmg file and then run the pkg.&lt;br /&gt;
&lt;br /&gt;
=== Homebrew ===&lt;br /&gt;
Note: if you have ever installed Homebrew before, then it is advised to remove ARM64 Homebrew as this can interfere with this build process. Either use a Homebrew uninstall script or delete the folder &amp;lt;code&amp;gt;/opt/homebrew/bin&amp;lt;/code&amp;gt;. If you prefer to keep both ARM64 and x86 versions of brew installed, you may add a &amp;quot;brew-switcher&amp;quot; to your &amp;lt;code&amp;gt;.zshrc&amp;lt;/code&amp;gt; file to allow either version to be used depending on the active architecture. You may follow the steps at the end of this section after installing Brew to achieve this.&lt;br /&gt;
&lt;br /&gt;
Open Terminal (search in Spotlight on macOS).&lt;br /&gt;
&lt;br /&gt;
Install Rosetta:&lt;br /&gt;
&amp;lt;pre&amp;gt;softwareupdate --install-rosetta&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Enter an x86_64 shell to continue the following steps in a Rosetta environment. All subsequent commands should be run within this shell.&lt;br /&gt;
&amp;lt;pre&amp;gt;arch -x86_64 zsh&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Install the x86_64 version of Homebrew if you don't already have it.&lt;br /&gt;
&amp;lt;pre&amp;gt;/bin/bash -c &amp;quot;$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)&amp;quot;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Make sure the brew command is on your path:&lt;br /&gt;
&amp;lt;pre&amp;gt;which brew&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If this command does not print &amp;lt;code&amp;gt;/usr/local/bin/brew&amp;lt;/code&amp;gt;, you should use this command:&lt;br /&gt;
&amp;lt;pre&amp;gt;export PATH=/usr/local/bin:${PATH}&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Fixbox|description=Optionally retain both ARM64 and x86 versions of Brew|ref=|collapsed=yes|fix=&lt;br /&gt;
(Optional) If you want to have both ARM64 and x86 versions of Brew installed, begin by editing your &amp;lt;code&amp;gt;.zshrc&amp;lt;/code&amp;gt; file:&lt;br /&gt;
&amp;lt;pre&amp;gt;nano ~/.zshrc&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Scroll down (by using the arrow keys or Control + V) to the bottom of the file, and paste the following script:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
if [ &amp;quot;$(arch)&amp;quot; = &amp;quot;arm64&amp;quot; ]; then&lt;br /&gt;
    eval &amp;quot;$(/opt/homebrew/bin/brew shellenv)&amp;quot;&lt;br /&gt;
else&lt;br /&gt;
    eval &amp;quot;$(/usr/local/bin/brew shellenv)&amp;quot;&lt;br /&gt;
fi&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You may now restart your terminal and use the following command to return to an x86_64 shell:&lt;br /&gt;
&amp;lt;pre&amp;gt;arch -x86_64 zsh&amp;lt;/pre&amp;gt;&lt;br /&gt;
Your shell will now select the right installation of Brew, depending on your architecture.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=== Build ===&lt;br /&gt;
Run this command to download Apple tap:&lt;br /&gt;
&amp;lt;pre&amp;gt;brew tap apple/apple http://github.com/apple/homebrew-apple&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Install the game-porting-toolkit formula. This formula downloads and compiles several large software projects. How long this takes will depend on the speed of your computer. It can take over 1 hour to complete depending on the speed of your Mac.&lt;br /&gt;
&amp;lt;pre&amp;gt;brew -v install apple/apple/game-porting-toolkit&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If during installation you see an error such as '''“Error: game-porting-toolkit: unknown or unsupported macOS version: :dunno”, your version of Homebrew doesn’t have macOS Sonoma support. Update to the latest version of Homebrew and try again.'''&lt;br /&gt;
&amp;lt;pre&amp;gt;brew update brew -v install apple/apple/game-porting-toolkit&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Wine prefix ===&lt;br /&gt;
A Wine prefix contains a virtual C: drive. You will install the toolkit and your game into this virtual C: drive. Run the following command to create a new Wine prefix named my-game-prefix in your home directory.&lt;br /&gt;
&amp;lt;pre&amp;gt;WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 winecfg&amp;lt;/pre&amp;gt;&lt;br /&gt;
*A “Wine configuration” window should appear on your screen.&lt;br /&gt;
*Change the version of Windows to Windows 10.&lt;br /&gt;
*Choose Apply and then OK to exit winecfg.&lt;br /&gt;
&lt;br /&gt;
If the “Wine configuration” window does not appear, and no new icon appears in the Dock, verify that you have correctly installed the x86_64 version of Homebrew as well as the game-porting-toolkit formula.&lt;br /&gt;
&lt;br /&gt;
=== Preparing the toolkit ===&lt;br /&gt;
Make sure the Game Porting Toolkit dmg downloaded earlier is mounted at /Volumes/Game Porting Toolkit-1.0. Use this script to copy the Game Porting Toolkit library directory into Wine’s library directory.&lt;br /&gt;
&amp;lt;pre&amp;gt;ditto /Volumes/Game\ Porting\ Toolkit-1.0/lib/ `brew --prefix game-porting-toolkit`/lib/&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Put the 3 scripts from the Game Porting Toolkit DMG into here &amp;lt;code&amp;gt;/usr/local/bin&amp;lt;/code&amp;gt; using this command:&lt;br /&gt;
&amp;lt;pre&amp;gt;cp /Volumes/Game\ Porting\ Toolkit*/gameportingtoolkit* /usr/local/bin&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now you are ready to install a launcher or individual Windows games, see below.&lt;br /&gt;
&lt;br /&gt;
== Steam ==&lt;br /&gt;
Download the [https://cdn.cloudflare.steamstatic.com/client/installer/SteamSetup.exe Windows version of Steam] and place in your Downloads folder.&lt;br /&gt;
&lt;br /&gt;
'''Install Steam'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix ~/Downloads/SteamSetup.exe&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Run Steam'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix 'C:\Program Files (x86)/Steam/steam.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Log into Steam'''&lt;br /&gt;
&lt;br /&gt;
A common issue is that Steam will present with a blank black window.&lt;br /&gt;
&lt;br /&gt;
Alternate way of launching Steam (after installing):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
MTL_HUD_ENABLED=1 WINEESYNC=1 WINEPREFIX=~/my-game-prefix /usr/local/Cellar/game-porting-toolkit/1.0/bin/wine64 'C:\Program Files (x86)\Steam\steam.exe'&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If this continues then close the Terminal window and then re-open and try again, repeat until the login screen opens. Now you should be able to download and launch Windows games through Steam.&lt;br /&gt;
&lt;br /&gt;
== Battle.net ==&lt;br /&gt;
Download the [https://download.battle.net/en-gb/?platform=windows Windows version of Battle.net].&lt;br /&gt;
&lt;br /&gt;
Make a new Wineprefix for Battle.net - we will refer to this as battle-net from now:&lt;br /&gt;
&amp;lt;pre&amp;gt;WINEPREFIX=~/battle-net `brew --prefix game-porting-toolkit`/bin/wine64 winecfg&amp;lt;/pre&amp;gt;&lt;br /&gt;
*A “Wine configuration” window should appear on your screen.&lt;br /&gt;
*Change the version of Windows to &amp;lt;code&amp;gt;Windows 10&amp;lt;/code&amp;gt;.&lt;br /&gt;
*Choose Apply and then OK to exit winecfg.&lt;br /&gt;
&lt;br /&gt;
'''Run Battle.net launcher'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/battle-net ~/Downloads/Battle.net-Setup.exe&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Be aware that there is an issue launching Battle.net once installed, the only current way to re-login is to 'install' the launcher again. &lt;br /&gt;
&lt;br /&gt;
Start individual game without the launcher using this command:&lt;br /&gt;
&amp;lt;pre&amp;gt;arch -x86_64 gameportingtoolkit-no-hud ~/battle-net 'C:\Program Files (x86)\Diablo IV\Diablo IV Launcher.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Epic and GOG.com support ==&lt;br /&gt;
This is particularly useful because '''as it currently stands, the real Epic Games Launcher fails to install under the Game Porting Toolkit'''. Heroic supports Epic and GOG.com games.&lt;br /&gt;
&lt;br /&gt;
* Install the [https://github.com/Heroic-Games-Launcher/HeroicGamesLauncher/releases native macOS Heroic Games Launcher] or from Homebrew.&lt;br /&gt;
* Open Heroic, and log into your Epic Games and/or GOG.com account.&lt;br /&gt;
* Go to the &amp;quot;Wine Manager&amp;quot; and install a '''numbered''' version of Wine, such that it won't auto update- we are going to modify it.&lt;br /&gt;
** At the time of writing this, the newest numbered version of Wine-Crossover is &amp;lt;code&amp;gt;Wine-Crossover-Wine-22.1.0&amp;lt;/code&amp;gt;&lt;br /&gt;
* Press the folder icon that appears after installing it to open the directory containing Heroic's Wine installations.&lt;br /&gt;
* Right-click on the version of Wine you just installed and press &amp;quot;Show Package Contents&amp;quot;.&lt;br /&gt;
* Open this directory in the Terminal.&lt;br /&gt;
** If you have &amp;quot;OpenInTerminal&amp;quot; this is one button, otherwise press &amp;quot;Show Path Bar&amp;quot; and navigate where it says with &amp;quot;cd&amp;quot;.&lt;br /&gt;
** It should be something like &amp;lt;code&amp;gt;cd ~/Library/Application\ Support/heroic/tools/wine/Wine-crossover-wine-22.1.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
* &amp;lt;pre&amp;gt;cd Contents/MacOS&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Remove the existing Wine: &amp;lt;pre&amp;gt;rm wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Create a symlink to Game Porting Toolkit's Wine: &lt;br /&gt;
** If using Game Porting Toolkit Wineprefix: &amp;lt;pre&amp;gt;ln -s `/usr/local/bin/brew --prefix game-porting-toolkit`/bin/wine64 wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
** If using Whisky: &amp;lt;pre&amp;gt;ln -s /Applications/Whisky.app/Contents/Resources/Libraries/Wine/bin/wine64 wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
* &amp;lt;pre&amp;gt;cd ../Resources&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Remove the existing Wine: &amp;lt;pre&amp;gt;rm -rfv wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Create a symlink to Game Porting Toolkit's Wine&lt;br /&gt;
** If using Game Porting Toolkit Wineprefix: &amp;lt;pre&amp;gt;ln -s `/usr/local/bin/brew --prefix game-porting-toolkit` wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
** If using Whisky: &amp;lt;pre&amp;gt;ln -s /Applications/Whisky.app/Contents/Resources/Libraries/Wine wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
* We are now done with Terminal. Install any games you want to try playing.&lt;br /&gt;
* Select the game you want to play, and press the settings button in the top-right.&lt;br /&gt;
* Make sure the version of Wine you just downloaded and modified is selected.&lt;br /&gt;
* Make sure your Game Porting Toolkit Wine Prefix is selected. If you followed Apple's guide this is &amp;lt;code&amp;gt;/Users/you/my-game-prefix&amp;lt;/code&amp;gt;.&lt;br /&gt;
* If you Open the &amp;quot;Other&amp;quot; section you can also add any environment variables you want like &amp;lt;code&amp;gt;WINEESYNC=1&amp;quot;&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;&amp;quot;MTL_HUD_ENABLED=1&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
* Close the settings and try running the game.&lt;br /&gt;
&lt;br /&gt;
== Commands ==&lt;br /&gt;
Installing individual exe games: open your Wine prefix’s virtual C: drive in Finder (open ~/my-game-prefix/drive_c) and copy your game into an appropriate subdirectory.&lt;br /&gt;
&lt;br /&gt;
'''A. Standard launching'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix 'C:\Program Files (x86)\Steam\steam.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This launches the given Windows game binary with a visible extended Metal Performance HUD and filters logging to output from the Game Porting Toolkit.&lt;br /&gt;
&lt;br /&gt;
'''B. Launching without a HUD'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit-no-hud ~/my-game-prefix 'C:\Program Files (x86)\Steam\steam.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''C. Launching with Wine ESYNC disabled'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit-no-esync ~/my-game-prefix 'C:\Program Files (x86)\Steam\steam.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To enter Winecfg:&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix winecfg&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Shortcut ==&lt;br /&gt;
You can make a shortcut for Steam for example by using macOS built-in Automator app.&lt;br /&gt;
*Open Automator.&lt;br /&gt;
*Select New Application.&lt;br /&gt;
*In the 2nd column select Run Shell Script.&lt;br /&gt;
*Copy and paste this code into the box:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/zsh&lt;br /&gt;
&lt;br /&gt;
export PATH=&amp;quot;/usr/local/bin:${PATH}&amp;quot;&lt;br /&gt;
&lt;br /&gt;
arch -x86_64 gameportingtoolkit ~/my-game-prefix 'C:\Program Files (x86)\Steam\steam.exe'&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the shortcut somewhere e.g. Applications.&lt;br /&gt;
*Above shortcut can be customised to any Wineprefix or game.&lt;br /&gt;
*Add an icon by selecting the shortcut, pressing {{key|cmd|I}} to Get Info, then dragging and dropping a PNG file onto the top left of the window.&lt;br /&gt;
&lt;br /&gt;
== Logging ==&lt;br /&gt;
The provided bin/gameportingtoolkit* scripts can be copied onto your path to facilitate different forms of logging and launching. You can run these scripts from any shell; you don’t need to switch to the Rosetta environment first.&lt;br /&gt;
&lt;br /&gt;
Logging output will appear in the Terminal window in which you launch your game as well as the system log, which can be viewed with the Console app found in Applications ▸ Utilities. Log messages from the Game Porting Toolkit are prefixed with D3DM. By default the gameportingtoolkit* scripts will filter to just the D3DM-prefixed messages.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
{{Image|GPTK Steam black screen.png|Steam login black screen issue.}}&lt;br /&gt;
'''Steam login black screen'''&lt;br /&gt;
&lt;br /&gt;
Close the Terminal window and then reopen and retry the command, repeat several times.&lt;br /&gt;
&lt;br /&gt;
Alternate way of launching Steam (after installing):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
MTL_HUD_ENABLED=1 WINEESYNC=1 WINEPREFIX=&amp;lt;path to the Wine bottle you set up&amp;gt; /usr/local/Cellar/game-porting-toolkit/1.0/bin/wine64 'C:\Program Files (x86)/Steam/steam.exe'&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If still not working then try using [[CrossOver]] and create a Steam bottle, then redirect this WINEPREFIX to that bottle:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=&amp;quot;/Users/[username]/Library/Application Support/CrossOver/Bottles/Steam/&amp;quot; &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Steam crashes straight after opening'''&lt;br /&gt;
&lt;br /&gt;
Disconnect any external monitors.&lt;br /&gt;
&lt;br /&gt;
'''Battle.net launcher won't re-launch'''&lt;br /&gt;
&lt;br /&gt;
Re-install the launcher to reopen, no other fix at the moment.&lt;br /&gt;
&lt;br /&gt;
'''My game won’t run because it thinks the version of Windows is too old. Some games detect specific minimum versions of Windows and need to be updated.''' Use this script to update your wineprefix with build 19042 which should work for most games e.g. Spider-Man Remastered.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion' /v CurrentBuild /t REG_SZ /d 19042 /f&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion' /v CurrentBuildNumber /t REG_SZ /d 19042 /f&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wineserver -k&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''steamwebhelper.exe crashes'''&lt;br /&gt;
&lt;br /&gt;
This is caused by Steam being run through macOS Ventura or below, upgrade to macOS Sonoma.&lt;br /&gt;
&lt;br /&gt;
'''My game won't run and crashes with an invalid instruction'''&lt;br /&gt;
&lt;br /&gt;
AVX and AVX2 games are not supported by Apple's arm64 chipset.&lt;br /&gt;
&lt;br /&gt;
'''My game won't run because its anti-cheat or DRM software is incompatible with Wine translation.'''&lt;br /&gt;
&lt;br /&gt;
Likely there will be no fixes for any games that use anti-cheat, e.g. Easy Anti Cheat. Some games have workarounds e.g. Elden Ring. Other games that use say Denuvo may also be incompatible until that DRM is removed by the game's developer.&lt;br /&gt;
&lt;br /&gt;
'''My game won’t run because it requires Mono, .NET, or the MSVCRT runtime.'''&lt;br /&gt;
&lt;br /&gt;
The game porting toolkit’s evaluation environment does not pre-install these runtime support packages. If your game makes use of one of these packages, consider searching for and downloading appropriate installers (.exe or .msi) and installing them to your evaluation environment. Additional runtime installers can be run on your environment by just launching the installer and following its installation instructions:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 &amp;lt;some-installer.exe&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
And .MSI packages can be installed by launching the Windows uninstaller application and choosing to install a downloaded .msi package:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 uninstaller&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Controller issues'''&lt;br /&gt;
&lt;br /&gt;
Issues may be fixed by enrolling into the Steam beta.&lt;br /&gt;
&lt;br /&gt;
'''My game looks pixelated and the display resolution is limited'''&lt;br /&gt;
&lt;br /&gt;
Enable Retina (high resolution) mode:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_CURRENT_USER\Software\Wine\Mac Driver' /v RetinaMode /t REG_SZ /d 'Y' /f&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Some games will not run with Retina mode enabled. To disable it:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_CURRENT_USER\Software\Wine\Mac Driver' /v RetinaMode /t REG_SZ /d 'N' /f&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Game compatibility list ==&lt;br /&gt;
Working games:&lt;br /&gt;
* Halo 3 (MCC - No Online due to Easy Anti-Cheat Compatibility)&lt;br /&gt;
* Cyberpunk 2077&lt;br /&gt;
* Final Fantasy VII Remake Intergrade (~50 FPS on High settings at 1080p with M1 Pro)&lt;br /&gt;
* God of War (Works somewhat well on M1 Pro (16gb), wouldn't recommend lesser hardware.)&lt;br /&gt;
* Elden Ring&lt;br /&gt;
* Overwatch 2 &lt;br /&gt;
* SpongeBob SquarePants: The Cosmic Shake&lt;br /&gt;
* Diablo IV [https://www.reddit.com/r/macgaming/comments/14307be/comment/jn7dxzo/?utm_source=reddit&amp;amp;utm_medium=web2x&amp;amp;context=3 ]&lt;br /&gt;
* Hogwarts Legacy&lt;br /&gt;
* Deep Rock Galactic&lt;br /&gt;
* Sonic Omens&lt;br /&gt;
* Sonic P-06&lt;br /&gt;
* Scarlet Nexus&lt;br /&gt;
* Metal Gear Solid V: The Phantom Pain&lt;br /&gt;
* Dyson Sphere Program (some objects and main character weren't visible before)&lt;br /&gt;
* Derail Valley (awesome performance, no missing manuals - in-game objects for train operation - like on CrossOver)&lt;br /&gt;
* Spider-Man (2018)&lt;br /&gt;
* Spider-Man Miles Morales - ''requires Windows ver fix''&lt;br /&gt;
* Warframe - ''To get installer/launcher working add dwrite (disabled) to library overrides in winecfg''&lt;br /&gt;
* HI-Fi RUSH&lt;br /&gt;
* QUBE 2&lt;br /&gt;
* Deceive Inc. - works well if launched without EAC&lt;br /&gt;
* Risk of Rain 2 (does not require `-disable-gpu-skinning` like Crossover 22)&lt;br /&gt;
* Crysis Remastered&lt;br /&gt;
* Cuphead&lt;br /&gt;
* Bloodstained: Ritual of the Night&lt;br /&gt;
* Tetris Effect: Connected - Game window likes to be uncooperative; really doesn't like retina mode, works otherwise&lt;br /&gt;
* Hatsune Miku: Project DIVA Mega Mix+ - works with Retina mode; DivaModLoader and DivaNoSpy recommended; run Steam with WINEDEBUG=-all WINEESYNC=0 WINEDLLOVERRIDES=&amp;quot;dinput8.dll=n,b&amp;quot;; may randomly crash at the title screen (just restart and try again until it works)&lt;br /&gt;
* Kena: Bridge of Spirits&lt;br /&gt;
* Control (DX12 mode, if downloaded from Heroic, needs to be ran by Terminal)&lt;br /&gt;
* Guilty Gear Strive&lt;br /&gt;
* StarCraft: Remastered - Game runs fine but opening Option menu the second time will cause game not recognizing any inputs.&lt;br /&gt;
&lt;br /&gt;
Not working well:&lt;br /&gt;
* Horizon Zero Dawn - slowdown issues&lt;br /&gt;
&lt;br /&gt;
Not working yet:&lt;br /&gt;
* Monster Hunter Rise - DX12 Game, it launches but window goes dark after compiling shaders.&lt;br /&gt;
* Sea of Thieves - Launches, but the prompt to sign into an xbox live account appears blank and cannot be completed.&lt;br /&gt;
* Red Dead Redemption 2&lt;br /&gt;
* Hitman 3 - launcher works, crash at 0x0000014136dddd hitman3+0x136dddd: int $3&lt;br /&gt;
* Among Us&lt;br /&gt;
* Splitgate - anti-cheat conflict.&lt;br /&gt;
* Rogue Company - anti-cheat conflict.&lt;br /&gt;
* Tiny Tina's Wonderlands - Intro videos play, dragon animation indicating shader precompilation starts, game freezes, eventually crashes.&lt;br /&gt;
* Halo Infinite - Crash on launch&lt;br /&gt;
* Street Fighter 6 - Crash on launch&lt;br /&gt;
* Microsoft Flight Simulator 2020 (Steam) - Crash on launch&lt;br /&gt;
* Company of Heroes 3&lt;br /&gt;
* Many (all?) DX9 games&lt;br /&gt;
** 30XX - &amp;quot;Failed to create D3D device&amp;quot; -&amp;gt; crash on launch; this is a rare 64-bit DX9 game&lt;br /&gt;
** Left 4 Dead 2 - Black screen -&amp;gt; crash on launch&lt;br /&gt;
** Killing Floor 1 - Crash on launch&lt;br /&gt;
** Sonic Mania - Crash on launch&lt;br /&gt;
** Mega Man Zero/ZX Legacy Collection - &amp;quot;Failed to create d3d9 device&amp;quot; -&amp;gt; crash on launch&lt;br /&gt;
** StarCraft II -&amp;gt; &amp;quot;Failed to initialize DirectX&amp;quot; error&lt;br /&gt;
&lt;br /&gt;
{{References}}&lt;/div&gt;</summary>
		<author><name>Andytizer</name></author>
	</entry>
	<entry>
		<id>https://www.applegamingwiki.com/w/index.php?title=Game_Porting_Toolkit&amp;diff=7623</id>
		<title>Game Porting Toolkit</title>
		<link rel="alternate" type="text/html" href="https://www.applegamingwiki.com/w/index.php?title=Game_Porting_Toolkit&amp;diff=7623"/>
		<updated>2023-06-08T18:50:46Z</updated>

		<summary type="html">&lt;p&gt;Andytizer: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Image|Game Porting Toolkit.png|Released 6th June, 2023 at WWDC23.}}&lt;br /&gt;
&lt;br /&gt;
Game Porting Toolkit is Apple's new translation layer released on 6th June, 2023. Game Porting Toolkit ('''GPTK''') combines Wine with Apple's own D3DMetal which supports DirectX 11 and 12&amp;lt;ref&amp;gt;{{Refurl|url=https://mastodon.gamedev.place/@gavkar/110501451404624870|title=Gokhan Avkarogullari: &amp;quot;@yiningkarlli @aras @romainguy…&amp;quot; - Gamedev Mastodon}}&amp;lt;/ref&amp;gt;. This is less user-friendly method of installing Windows games on Apple Silicon Macs compared to [[CrossOver]] or [[Parallels]], however it unlocks the ability to play many DirectX 12 games. A lot more games work using GPTK, however, games that use anti-cheat or aggressive DRMs generally don't work, along with games that require AVX/AVX 2, e.g. The Last of Us Part I.&lt;br /&gt;
&lt;br /&gt;
== Toolkit install instructions ==&lt;br /&gt;
=== Requirements ===&lt;br /&gt;
*macOS Sonoma should be used, currently it is in beta. You can download the pkg installer from [https://mrmacintosh.com/macos-sonoma-full-installer-database-download-directly-from-apple/ Mr Macintosh blog].&lt;br /&gt;
*macOS Ventura causes large numbers of issues with steamwebhelper.exe crashing so it isn't recommended, use the macOS Sonoma beta.&lt;br /&gt;
*Visit [https://developer.apple.com/downloads Apple Developer Downloads site], these files are now free to download use for any logged in Apple account.&lt;br /&gt;
**Search for Command Line Tools for Xcode 15 beta and download the dmg file, then install it.&lt;br /&gt;
**If you have an old version Xcode installed, remove it.&lt;br /&gt;
**Search for Game Porting Toolkit and download it. Open the dmg file and then run the pkg.&lt;br /&gt;
&lt;br /&gt;
=== Homebrew ===&lt;br /&gt;
Note: if you have ever installed Homebrew before, then it is advised to remove ARM64 Homebrew as this can interfere with this build process. Either use a Homebrew uninstall script or delete the folder &amp;lt;code&amp;gt;/opt/homebrew/bin&amp;lt;/code&amp;gt;. If you prefer to keep both ARM64 and x86 versions of brew installed, you may add a &amp;quot;brew-switcher&amp;quot; to your &amp;lt;code&amp;gt;.zshrc&amp;lt;/code&amp;gt; file to allow either version to be used depending on the active architecture. You may follow the steps at the end of this section after installing Brew to achieve this.&lt;br /&gt;
&lt;br /&gt;
Open Terminal (search in Spotlight on macOS).&lt;br /&gt;
&lt;br /&gt;
Install Rosetta:&lt;br /&gt;
&amp;lt;pre&amp;gt;softwareupdate --install-rosetta&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Enter an x86_64 shell to continue the following steps in a Rosetta environment. All subsequent commands should be run within this shell.&lt;br /&gt;
&amp;lt;pre&amp;gt;arch -x86_64 zsh&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Install the x86_64 version of Homebrew if you don't already have it.&lt;br /&gt;
&amp;lt;pre&amp;gt;/bin/bash -c &amp;quot;$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)&amp;quot;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Make sure the brew command is on your path:&lt;br /&gt;
&amp;lt;pre&amp;gt;which brew&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If this command does not print &amp;lt;code&amp;gt;/usr/local/bin/brew&amp;lt;/code&amp;gt;, you should use this command:&lt;br /&gt;
&amp;lt;pre&amp;gt;export PATH=/usr/local/bin:${PATH}&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Fixbox|description=Optionally retain both ARM64 and x86 versions of Brew|ref=|collapsed=yes|fix=&lt;br /&gt;
(Optional) If you want to have both ARM64 and x86 versions of Brew installed, begin by editing your &amp;lt;code&amp;gt;.zshrc&amp;lt;/code&amp;gt; file:&lt;br /&gt;
&amp;lt;pre&amp;gt;nano ~/.zshrc&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Scroll down (by using the arrow keys or Control + V) to the bottom of the file, and paste the following script:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
if [ &amp;quot;$(arch)&amp;quot; = &amp;quot;arm64&amp;quot; ]; then&lt;br /&gt;
    eval &amp;quot;$(/opt/homebrew/bin/brew shellenv)&amp;quot;&lt;br /&gt;
else&lt;br /&gt;
    eval &amp;quot;$(/usr/local/bin/brew shellenv)&amp;quot;&lt;br /&gt;
fi&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You may now restart your terminal and use the following command to return to an x86_64 shell:&lt;br /&gt;
&amp;lt;pre&amp;gt;arch -x86_64 zsh&amp;lt;/pre&amp;gt;&lt;br /&gt;
Your shell will now select the right installation of Brew, depending on your architecture.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=== Build ===&lt;br /&gt;
Run this command to download Apple tap:&lt;br /&gt;
&amp;lt;pre&amp;gt;brew tap apple/apple http://github.com/apple/homebrew-apple&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Install the game-porting-toolkit formula. This formula downloads and compiles several large software projects. How long this takes will depend on the speed of your computer. It can take over 1 hour to complete depending on the speed of your Mac.&lt;br /&gt;
&amp;lt;pre&amp;gt;brew -v install apple/apple/game-porting-toolkit&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If during installation you see an error such as '''“Error: game-porting-toolkit: unknown or unsupported macOS version: :dunno”, your version of Homebrew doesn’t have macOS Sonoma support. Update to the latest version of Homebrew and try again.'''&lt;br /&gt;
&amp;lt;pre&amp;gt;brew update brew -v install apple/apple/game-porting-toolkit&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Wine prefix ===&lt;br /&gt;
A Wine prefix contains a virtual C: drive. You will install the toolkit and your game into this virtual C: drive. Run the following command to create a new Wine prefix named my-game-prefix in your home directory.&lt;br /&gt;
&amp;lt;pre&amp;gt;WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 winecfg&amp;lt;/pre&amp;gt;&lt;br /&gt;
*A “Wine configuration” window should appear on your screen.&lt;br /&gt;
*Change the version of Windows to Windows 10.&lt;br /&gt;
*Choose Apply and then OK to exit winecfg.&lt;br /&gt;
&lt;br /&gt;
If the “Wine configuration” window does not appear, and no new icon appears in the Dock, verify that you have correctly installed the x86_64 version of Homebrew as well as the game-porting-toolkit formula.&lt;br /&gt;
&lt;br /&gt;
=== Preparing the toolkit ===&lt;br /&gt;
Make sure the Game Porting Toolkit dmg downloaded earlier is mounted at /Volumes/Game Porting Toolkit-1.0. Use this script to copy the Game Porting Toolkit library directory into Wine’s library directory.&lt;br /&gt;
&amp;lt;pre&amp;gt;ditto /Volumes/Game\ Porting\ Toolkit-1.0/lib/ `brew --prefix game-porting-toolkit`/lib/&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Put the 3 scripts from the Game Porting Toolkit DMG into here &amp;lt;code&amp;gt;/usr/local/bin&amp;lt;/code&amp;gt; using this command:&lt;br /&gt;
&amp;lt;pre&amp;gt;cp /Volumes/Game\ Porting\ Toolkit*/gameportingtoolkit* /usr/local/bin&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now you are ready to install a launcher or individual Windows games, see below.&lt;br /&gt;
&lt;br /&gt;
== Steam ==&lt;br /&gt;
Download the [https://cdn.cloudflare.steamstatic.com/client/installer/SteamSetup.exe Windows version of Steam] and place in your Downloads folder.&lt;br /&gt;
&lt;br /&gt;
'''Install Steam'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix ~/Downloads/SteamSetup.exe&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Run Steam'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix 'C:\Program Files (x86)/Steam/steam.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Log into Steam'''&lt;br /&gt;
&lt;br /&gt;
A common issue is that Steam will present with a blank black window.&lt;br /&gt;
&lt;br /&gt;
Alternate way of launching Steam (after installing):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
MTL_HUD_ENABLED=1 WINEESYNC=1 WINEPREFIX=~/my-game-prefix /usr/local/Cellar/game-porting-toolkit/1.0/bin/wine64 'C:\Program Files (x86)\Steam\steam.exe'&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If this continues then close the Terminal window and then re-open and try again, repeat until the login screen opens. Now you should be able to download and launch Windows games through Steam.&lt;br /&gt;
&lt;br /&gt;
== Battle.net ==&lt;br /&gt;
Download the [https://download.battle.net/en-gb/?platform=windows Windows version of Battle.net].&lt;br /&gt;
&lt;br /&gt;
Make a new Wineprefix for Battle.net - we will refer to this as battle-net from now:&lt;br /&gt;
&amp;lt;pre&amp;gt;WINEPREFIX=~/battle-net `brew --prefix game-porting-toolkit`/bin/wine64 winecfg&amp;lt;/pre&amp;gt;&lt;br /&gt;
*A “Wine configuration” window should appear on your screen.&lt;br /&gt;
*Change the version of Windows to &amp;lt;code&amp;gt;Windows 10&amp;lt;/code&amp;gt;.&lt;br /&gt;
*Choose Apply and then OK to exit winecfg.&lt;br /&gt;
&lt;br /&gt;
'''Run Battle.net launcher'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/battle-net ~/Downloads/Battle.net-Setup.exe&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Be aware that there is an issue launching Battle.net once installed, the only current way to re-login is to 'install' the launcher again. &lt;br /&gt;
&lt;br /&gt;
Start individual game without the launcher using this command:&lt;br /&gt;
&amp;lt;pre&amp;gt;arch -x86_64 gameportingtoolkit-no-hud ~/battle-net 'C:\Program Files (x86)\Diablo IV\Diablo IV Launcher.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Epic and GOG.com support ==&lt;br /&gt;
This is particularly useful because '''as it currently stands, the real Epic Games Launcher fails to install under the Game Porting Toolkit'''. Heroic supports Epic and GOG.com games.&lt;br /&gt;
&lt;br /&gt;
* Install the [https://github.com/Heroic-Games-Launcher/HeroicGamesLauncher/releases native macOS Heroic Games Launcher] or from Homebrew.&lt;br /&gt;
* Open Heroic, and log into your Epic Games and/or GOG.com account.&lt;br /&gt;
* Go to the &amp;quot;Wine Manager&amp;quot; and install a '''numbered''' version of Wine, such that it won't auto update- we are going to modify it.&lt;br /&gt;
** At the time of writing this, the newest numbered version of Wine-Crossover is &amp;lt;code&amp;gt;Wine-Crossover-Wine-22.1.0&amp;lt;/code&amp;gt;&lt;br /&gt;
* Press the folder icon that appears after installing it to open the directory containing Heroic's Wine installations.&lt;br /&gt;
* Right-click on the version of Wine you just installed and press &amp;quot;Show Package Contents&amp;quot;.&lt;br /&gt;
* Open this directory in the Terminal.&lt;br /&gt;
** If you have &amp;quot;OpenInTerminal&amp;quot; this is one button, otherwise press &amp;quot;Show Path Bar&amp;quot; and navigate where it says with &amp;quot;cd&amp;quot;.&lt;br /&gt;
** It should be something like &amp;lt;code&amp;gt;cd ~/Library/Application\ Support/heroic/tools/wine/Wine-crossover-wine-22.1.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
* &amp;lt;pre&amp;gt;cd Contents/MacOS&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Remove the existing Wine: &amp;lt;pre&amp;gt;rm wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Create a symlink to Game Porting Toolkit's Wine: &lt;br /&gt;
** If using Game Porting Toolkit Wineprefix: &amp;lt;pre&amp;gt;ln -s `/usr/local/bin/brew --prefix game-porting-toolkit`/bin/wine64 wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
** If using Whisky: &amp;lt;pre&amp;gt;ln -s /Applications/Whisky.app/Contents/Resources/Libraries/Wine/bin/wine64 wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
* &amp;lt;pre&amp;gt;cd ../Resources&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Remove the existing Wine: &amp;lt;pre&amp;gt;rm -rfv wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Create a symlink to Game Porting Toolkit's Wine&lt;br /&gt;
** If using Game Porting Toolkit Wineprefix: &amp;lt;pre&amp;gt;ln -s `/usr/local/bin/brew --prefix game-porting-toolkit` wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
** If using Whisky: &amp;lt;pre&amp;gt;ln -s /Applications/Whisky.app/Contents/Resources/Libraries/Wine wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
* We are now done with Terminal. Install any games you want to try playing.&lt;br /&gt;
* Select the game you want to play, and press the settings button in the top-right.&lt;br /&gt;
* Make sure the version of Wine you just downloaded and modified is selected.&lt;br /&gt;
* Make sure your Game Porting Toolkit Wine Prefix is selected. If you followed Apple's guide this is &amp;lt;code&amp;gt;/Users/you/my-game-prefix&amp;lt;/code&amp;gt;.&lt;br /&gt;
* If you Open the &amp;quot;Other&amp;quot; section you can also add any environment variables you want like &amp;lt;code&amp;gt;WINEESYNC=1&amp;quot;&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;&amp;quot;MTL_HUD_ENABLED=1&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
* Close the settings and try running the game.&lt;br /&gt;
&lt;br /&gt;
== Commands ==&lt;br /&gt;
Installing individual exe games: open your Wine prefix’s virtual C: drive in Finder (open ~/my-game-prefix/drive_c) and copy your game into an appropriate subdirectory.&lt;br /&gt;
&lt;br /&gt;
'''A. Standard launching'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix 'C:\Program Files (x86)\Steam\steam.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This launches the given Windows game binary with a visible extended Metal Performance HUD and filters logging to output from the Game Porting Toolkit.&lt;br /&gt;
&lt;br /&gt;
'''B. Launching without a HUD'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit-no-hud ~/my-game-prefix 'C:\Program Files (x86)\Steam\steam.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''C. Launching with Wine ESYNC disabled'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit-no-esync ~/my-game-prefix 'C:\Program Files (x86)\Steam\steam.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To enter Winecfg:&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix winecfg&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Shortcut ==&lt;br /&gt;
You can make a shortcut for Steam for example by using macOS built-in Automator app.&lt;br /&gt;
*Open Automator.&lt;br /&gt;
*Select New Application.&lt;br /&gt;
*In the 2nd column select Run Shell Script.&lt;br /&gt;
*Copy and paste this code into the box:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/zsh&lt;br /&gt;
&lt;br /&gt;
export PATH=&amp;quot;/usr/local/bin:${PATH}&amp;quot;&lt;br /&gt;
&lt;br /&gt;
arch -x86_64 gameportingtoolkit ~/my-game-prefix 'C:\Program Files (x86)\Steam\steam.exe'&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the shortcut somewhere e.g. Applications.&lt;br /&gt;
*Above shortcut can be customised to any Wineprefix or game.&lt;br /&gt;
*Add an icon by selecting the shortcut, pressing {{key|cmd|I}} to Get Info, then dragging and dropping a PNG file onto the top left of the window.&lt;br /&gt;
&lt;br /&gt;
== Logging ==&lt;br /&gt;
The provided bin/gameportingtoolkit* scripts can be copied onto your path to facilitate different forms of logging and launching. You can run these scripts from any shell; you don’t need to switch to the Rosetta environment first.&lt;br /&gt;
&lt;br /&gt;
Logging output will appear in the Terminal window in which you launch your game as well as the system log, which can be viewed with the Console app found in Applications ▸ Utilities. Log messages from the Game Porting Toolkit are prefixed with D3DM. By default the gameportingtoolkit* scripts will filter to just the D3DM-prefixed messages.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
{{Image|GPTK Steam black screen.png|Steam login black screen issue.}}&lt;br /&gt;
'''Steam login black screen'''&lt;br /&gt;
&lt;br /&gt;
Close the Terminal window and then reopen and retry the command, repeat several times.&lt;br /&gt;
&lt;br /&gt;
Alternate way of launching Steam (after installing):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
MTL_HUD_ENABLED=1 WINEESYNC=1 WINEPREFIX=&amp;lt;path to the Wine bottle you set up&amp;gt; /usr/local/Cellar/game-porting-toolkit/1.0/bin/wine64 'C:\Program Files (x86)/Steam/steam.exe'&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If still not working then try using [[CrossOver]] and create a Steam bottle, then redirect this WINEPREFIX to that bottle:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=&amp;quot;/Users/[username]/Library/Application Support/CrossOver/Bottles/Steam/&amp;quot; &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Steam crashes straight after opening'''&lt;br /&gt;
&lt;br /&gt;
Disconnect any external monitors.&lt;br /&gt;
&lt;br /&gt;
'''Battle.net launcher won't re-launch'''&lt;br /&gt;
&lt;br /&gt;
Re-install the launcher to reopen, no other fix at the moment.&lt;br /&gt;
&lt;br /&gt;
'''My game won’t run because it thinks the version of Windows is too old. Some games detect specific minimum versions of Windows and need to be updated.''' Use this script to update your wineprefix with build 19042 which should work for most games e.g. Spider-Man Remastered.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion' /v CurrentBuild /t REG_SZ /d 19042 /f&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion' /v CurrentBuildNumber /t REG_SZ /d 19042 /f&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wineserver -k&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''steamwebhelper.exe crashes'''&lt;br /&gt;
&lt;br /&gt;
This is caused by Steam being run through macOS Ventura or below, upgrade to macOS Sonoma.&lt;br /&gt;
&lt;br /&gt;
'''My game won't run and crashes with an invalid instruction'''&lt;br /&gt;
&lt;br /&gt;
AVX and AVX2 games are not supported by Apple's arm64 chipset.&lt;br /&gt;
&lt;br /&gt;
'''My game won't run because its anti-cheat or DRM software is incompatible with Wine translation.'''&lt;br /&gt;
&lt;br /&gt;
Likely there will be no fixes for any games that use anti-cheat, e.g. Easy Anti Cheat. Some games have workarounds e.g. Elden Ring. Other games that use say Denuvo may also be incompatible until that DRM is removed by the game's developer.&lt;br /&gt;
&lt;br /&gt;
'''My game won’t run because it requires Mono, .NET, or the MSVCRT runtime.'''&lt;br /&gt;
&lt;br /&gt;
The game porting toolkit’s evaluation environment does not pre-install these runtime support packages. If your game makes use of one of these packages, consider searching for and downloading appropriate installers (.exe or .msi) and installing them to your evaluation environment. Additional runtime installers can be run on your environment by just launching the installer and following its installation instructions:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 &amp;lt;some-installer.exe&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
And .MSI packages can be installed by launching the Windows uninstaller application and choosing to install a downloaded .msi package:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 uninstaller&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Controller issues'''&lt;br /&gt;
&lt;br /&gt;
Issues may be fixed by enrolling into the Steam beta.&lt;br /&gt;
&lt;br /&gt;
'''My game looks pixelated and the display resolution is limited'''&lt;br /&gt;
&lt;br /&gt;
Enable Retina (high resolution) mode:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_CURRENT_USER\Software\Wine\Mac Driver' /v RetinaMode /t REG_SZ /d 'Y' /f&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Some games will not run with Retina mode enabled. To disable it:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_CURRENT_USER\Software\Wine\Mac Driver' /v RetinaMode /t REG_SZ /d 'N' /f&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Game compatibility list ==&lt;br /&gt;
Working games:&lt;br /&gt;
* Halo 3 (MCC - No Online due to Easy Anti-Cheat Compatibility)&lt;br /&gt;
* Cyberpunk 2077&lt;br /&gt;
* Final Fantasy VII Remake Intergrade (~50 FPS on High settings at 1080p with M1 Pro)&lt;br /&gt;
* God of War (Works somewhat well on M1 Pro (16gb), wouldn't recommend lesser hardware.)&lt;br /&gt;
* Elden Ring&lt;br /&gt;
* Overwatch 2 &lt;br /&gt;
* SpongeBob SquarePants: The Cosmic Shake&lt;br /&gt;
* Diablo IV [https://www.reddit.com/r/macgaming/comments/14307be/comment/jn7dxzo/?utm_source=reddit&amp;amp;utm_medium=web2x&amp;amp;context=3 ]&lt;br /&gt;
* Hogwarts Legacy&lt;br /&gt;
* Deep Rock Galactic&lt;br /&gt;
* Sonic Omens&lt;br /&gt;
* Sonic P-06&lt;br /&gt;
* Scarlet Nexus&lt;br /&gt;
* Metal Gear Solid V: The Phantom Pain&lt;br /&gt;
* Dyson Sphere Program (some objects and main character weren't visible before)&lt;br /&gt;
* Derail Valley (awesome performance, no missing manuals - in-game objects for train operation - like on CrossOver)&lt;br /&gt;
* Spider-Man (2018)&lt;br /&gt;
* Spider-Man Miles Morales - ''requires Windows ver fix''&lt;br /&gt;
* Warframe - ''To get installer/launcher working add dwrite (disabled) to library overrides in winecfg''&lt;br /&gt;
* HI-Fi RUSH&lt;br /&gt;
* QUBE 2&lt;br /&gt;
* Deceive Inc. - works well if launched without EAC&lt;br /&gt;
* Risk of Rain 2 (does not require `-disable-gpu-skinning` like Crossover 22)&lt;br /&gt;
* Crysis Remastered&lt;br /&gt;
* Cuphead&lt;br /&gt;
* Bloodstained: Ritual of the Night&lt;br /&gt;
* Tetris Effect: Connected - Game window likes to be uncooperative; really doesn't like retina mode, works otherwise&lt;br /&gt;
* Hatsune Miku: Project DIVA Mega Mix+ - works with Retina mode; DivaModLoader and DivaNoSpy recommended; run Steam with WINEDEBUG=-all WINEESYNC=0 WINEDLLOVERRIDES=&amp;quot;dinput8.dll=n,b&amp;quot;; may randomly crash at the title screen (just restart and try again until it works)&lt;br /&gt;
* Kena: Bridge of Spirits&lt;br /&gt;
* Control (DX12 mode, if downloaded from Heroic, needs to be ran by Terminal)&lt;br /&gt;
* Guilty Gear Strive&lt;br /&gt;
* StarCraft: Remastered - Game runs fine but opening Option menu the second time will cause game not recognizing any inputs.&lt;br /&gt;
&lt;br /&gt;
Not working well:&lt;br /&gt;
* Horizon Zero Dawn - slowdown issues&lt;br /&gt;
&lt;br /&gt;
Not working yet:&lt;br /&gt;
* Monster Hunter Rise - DX12 Game, it launches but window goes dark after compiling shaders.&lt;br /&gt;
* Sea of Thieves - Launches, but the prompt to sign into an xbox live account appears blank and cannot be completed.&lt;br /&gt;
* Red Dead Redemption 2&lt;br /&gt;
* Hitman 3 - launcher works, crash at 0x0000014136dddd hitman3+0x136dddd: int $3&lt;br /&gt;
* Among Us&lt;br /&gt;
* Splitgate - anti-cheat conflict.&lt;br /&gt;
* Rogue Company - anti-cheat conflict.&lt;br /&gt;
* Tiny Tina's Wonderlands - Intro videos play, dragon animation indicating shader precompilation starts, game freezes, eventually crashes.&lt;br /&gt;
* Halo Infinite - Crash on launch&lt;br /&gt;
* Street Fighter 6 - Crash on launch&lt;br /&gt;
* Microsoft Flight Simulator 2020 (Steam) - Crash on launch&lt;br /&gt;
* Company of Heroes 3&lt;br /&gt;
* Many (all?) DX9 games&lt;br /&gt;
** 30XX - &amp;quot;Failed to create D3D device&amp;quot; -&amp;gt; crash on launch; this is a rare 64-bit DX9 game&lt;br /&gt;
** Left 4 Dead 2 - Black screen -&amp;gt; crash on launch&lt;br /&gt;
** Killing Floor 1 - Crash on launch&lt;br /&gt;
** Sonic Mania - Crash on launch&lt;br /&gt;
** Mega Man Zero/ZX Legacy Collection - &amp;quot;Failed to create d3d9 device&amp;quot; -&amp;gt; crash on launch&lt;br /&gt;
** StarCraft II -&amp;gt; &amp;quot;Failed to initialize DirectX&amp;quot; error&lt;br /&gt;
&lt;br /&gt;
{{References}}&lt;/div&gt;</summary>
		<author><name>Andytizer</name></author>
	</entry>
	<entry>
		<id>https://www.applegamingwiki.com/w/index.php?title=Game_Porting_Toolkit&amp;diff=7616</id>
		<title>Game Porting Toolkit</title>
		<link rel="alternate" type="text/html" href="https://www.applegamingwiki.com/w/index.php?title=Game_Porting_Toolkit&amp;diff=7616"/>
		<updated>2023-06-08T15:57:11Z</updated>

		<summary type="html">&lt;p&gt;Andytizer: References&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Image|Game Porting Toolkit.png|Released 6th June, 2023 at WWDC23.}}&lt;br /&gt;
&lt;br /&gt;
Game Porting Toolkit is Apple's new translation layer released on 6th June, 2023. Game Porting Toolkit ('''GPTK''') combines Wine with Apple's own D3DMetal which supports DirectX 11 and 12&amp;lt;ref&amp;gt;{{Refurl|url=https://mastodon.gamedev.place/@gavkar/110501451404624870|title=Gokhan Avkarogullari: &amp;quot;@yiningkarlli @aras @romainguy…&amp;quot; - Gamedev Mastodon}}&amp;lt;/ref&amp;gt;. This is less user-friendly method of installing Windows games on Apple Silicon Macs compared to [[CrossOver]] or [[Parallels]], however it unlocks the ability to play many DirectX 12 games. Many more games not work using GPTK, however games that use anti-cheat or aggressive DRM generally don't worker do games that require AVX/AVX 2, e.g. The Last of Us Part I.&lt;br /&gt;
&lt;br /&gt;
== Toolkit install instructions ==&lt;br /&gt;
=== Requirements ===&lt;br /&gt;
*macOS Sonoma should be used, currently it is in beta. You can download the pkg installer from [https://mrmacintosh.com/macos-sonoma-full-installer-database-download-directly-from-apple/ Mr Macintosh blog].&lt;br /&gt;
*macOS Ventura causes large numbers of issues with steamwebhelper.exe crashing so it isn't recommended, use the macOS Sonoma beta.&lt;br /&gt;
*Visit [https://developer.apple.com/downloads Apple Developer Downloads site], these files are now free to download use for any logged in Apple account.&lt;br /&gt;
**Search for Command Line Tools for Xcode 15 beta and download the dmg file, then install it.&lt;br /&gt;
**If you have an old version Xcode installed, remove it.&lt;br /&gt;
**Search for Game Porting Toolkit and download it. Open the dmg file and then run the pkg.&lt;br /&gt;
&lt;br /&gt;
=== Homebrew ===&lt;br /&gt;
Note: if you have ever installed Homebrew before, then it is advisable to remove arm64 Homebrew as this can interfere with this build process. Either use a Homebrew uninstall script or delete the folder &amp;lt;code&amp;gt;/opt/homebrew/bin&amp;lt;/code&amp;gt;. Otherwise, if you prefer to keep both arm64 and x86 versions of brew installed, you may add a &amp;quot;brew-switcher&amp;quot; to your &amp;lt;code&amp;gt;.zshrc&amp;lt;/code&amp;gt; file to allow either version to be used depending on the active architecture. You may follow the steps at the end of this section after installing Brew to achieve this.&lt;br /&gt;
&lt;br /&gt;
Open Terminal (search in Spotlight on macOS).&lt;br /&gt;
&lt;br /&gt;
Install Rosetta:&lt;br /&gt;
&amp;lt;pre&amp;gt;softwareupdate --install-rosetta&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Enter an x86_64 shell to continue the following steps in a Rosetta environment. All subsequent commands should be run within this shell.&lt;br /&gt;
&amp;lt;pre&amp;gt;arch -x86_64 zsh&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Install the x86_64 version of Homebrew if you don't already have it.&lt;br /&gt;
&amp;lt;pre&amp;gt;/bin/bash -c &amp;quot;$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)&amp;quot;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Make sure the brew command is on your path:&lt;br /&gt;
&amp;lt;pre&amp;gt;which brew&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If this command does not print &amp;lt;code&amp;gt;/usr/local/bin/brew&amp;lt;/code&amp;gt;, you should use this command:&lt;br /&gt;
&amp;lt;pre&amp;gt;export PATH=/usr/local/bin:${PATH}&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Fixbox|description=Optionally retain both arm64 and x86 versions of Brew|ref=|collapsed=yes|fix=&lt;br /&gt;
(Optional) If you want to have both arm64 and x86 versions of Brew installed, begin by editing your &amp;lt;code&amp;gt;.zshrc&amp;lt;/code&amp;gt; file:&lt;br /&gt;
&amp;lt;pre&amp;gt;nano ~/.zshrc&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Scroll down (by using the arrow keys or Control + V) to the bottom of the file, and paste the following script:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
if [ &amp;quot;$(arch)&amp;quot; = &amp;quot;arm64&amp;quot; ]; then&lt;br /&gt;
    eval &amp;quot;$(/opt/homebrew/bin/brew shellenv)&amp;quot;&lt;br /&gt;
else&lt;br /&gt;
    eval &amp;quot;$(/usr/local/bin/brew shellenv)&amp;quot;&lt;br /&gt;
fi&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You may now restart your terminal and use the following command to return to an x86_64 shell:&lt;br /&gt;
&amp;lt;pre&amp;gt;arch -x86_64 zsh&amp;lt;/pre&amp;gt;&lt;br /&gt;
Your shell will now select the right installation of Brew, depending on your architecture.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=== Build ===&lt;br /&gt;
Run this command to download Apple tap:&lt;br /&gt;
&amp;lt;pre&amp;gt;brew tap apple/apple http://github.com/apple/homebrew-apple&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Install the game-porting-toolkit formula. This formula downloads and compiles several large software projects. How long this takes will depend on the speed of your computer. It can take over 1 hour to complete depending on the speed of your Mac.&lt;br /&gt;
&amp;lt;pre&amp;gt;brew -v install apple/apple/game-porting-toolkit&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If during installation you see an error such as '''“Error: game-porting-toolkit: unknown or unsupported macOS version: :dunno”, your version of Homebrew doesn’t have macOS Sonoma support. Update to the latest version of Homebrew and try again.'''&lt;br /&gt;
&amp;lt;pre&amp;gt;brew update brew -v install apple/apple/game-porting-toolkit&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Wine prefix ===&lt;br /&gt;
A Wine prefix contains a virtual C: drive. You will install the toolkit and your game into this virtual C: drive. Run the following command to create a new Wine prefix named my-game-prefix in your home directory.&lt;br /&gt;
&amp;lt;pre&amp;gt;WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 winecfg&amp;lt;/pre&amp;gt;&lt;br /&gt;
*A “Wine configuration” window should appear on your screen.&lt;br /&gt;
*Change the version of Windows to Windows 10.&lt;br /&gt;
*Choose Apply and then OK to exit winecfg.&lt;br /&gt;
&lt;br /&gt;
If the “Wine configuration” window does not appear, and no new icon appears in the Dock, verify that you have correctly installed the x86_64 version of Homebrew as well as the game-porting-toolkit formula.&lt;br /&gt;
&lt;br /&gt;
=== Preparing the toolkit ===&lt;br /&gt;
Make sure the Game Porting Toolkit dmg downloaded earlier is mounted at /Volumes/Game Porting Toolkit-1.0. Use this script to copy the Game Porting Toolkit library directory into Wine’s library directory.&lt;br /&gt;
&amp;lt;pre&amp;gt;ditto /Volumes/Game\ Porting\ Toolkit-1.0/lib/ `brew --prefix game-porting-toolkit`/lib/&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Put the 3 scripts from the Game Porting Toolkit DMG into here &amp;lt;code&amp;gt;/usr/local/bin&amp;lt;/code&amp;gt; using this command:&lt;br /&gt;
&amp;lt;pre&amp;gt;cp /Volumes/Game\ Porting\ Toolkit*/gameportingtoolkit* /usr/local/bin&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now you are ready to install a launcher or individual Windows games, see below.&lt;br /&gt;
&lt;br /&gt;
== Steam ==&lt;br /&gt;
Download the [https://cdn.cloudflare.steamstatic.com/client/installer/SteamSetup.exe Windows version of Steam] and place in your Downloads folder.&lt;br /&gt;
&lt;br /&gt;
'''Install Steam'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix ~/Downloads/SteamSetup.exe&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Run Steam'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix 'C:\Program Files (x86)/Steam/steam.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Log into Steam'''&lt;br /&gt;
&lt;br /&gt;
A common issue is that Steam will present with a blank black window.&lt;br /&gt;
&lt;br /&gt;
Alternate way of launching Steam (after installing):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
MTL_HUD_ENABLED=1 WINEESYNC=1 WINEPREFIX=~/my-game-prefix /usr/local/Cellar/game-porting-toolkit/1.0/bin/wine64 'C:\Program Files (x86)\Steam\steam.exe'&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If this continues then close the Terminal window and then re-open and try again, repeat until the login screen opens. Now you should be able to download and launch Windows games through Steam.&lt;br /&gt;
&lt;br /&gt;
== Battle.net ==&lt;br /&gt;
Download the [https://download.battle.net/en-gb/?platform=windows Windows version of Battle.net].&lt;br /&gt;
&lt;br /&gt;
Make a new Wineprefix for Battle.net - we will refer to this as battle-net from now:&lt;br /&gt;
&amp;lt;pre&amp;gt;WINEPREFIX=~/battle-net `brew --prefix game-porting-toolkit`/bin/wine64 winecfg&amp;lt;/pre&amp;gt;&lt;br /&gt;
*A “Wine configuration” window should appear on your screen.&lt;br /&gt;
*Change the version of Windows to &amp;lt;code&amp;gt;Windows 10&amp;lt;/code&amp;gt;.&lt;br /&gt;
*Choose Apply and then OK to exit winecfg.&lt;br /&gt;
&lt;br /&gt;
'''Run Battle.net launcher'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/battle-net ~/Downloads/Battle.net-Setup.exe&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Be aware that there is an issue launching Battle.net once installed, the only current way to re-login is to 'install' the launcher again. &lt;br /&gt;
&lt;br /&gt;
Start individual game without the launcher using this command:&lt;br /&gt;
&amp;lt;pre&amp;gt;arch -x86_64 gameportingtoolkit-no-hud ~/battle-net 'C:\Program Files (x86)\Diablo IV\Diablo IV Launcher.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Epic and GOG.com support ==&lt;br /&gt;
This is particularly useful because '''as it currently stands, the real Epic Games Launcher fails to install under the Game Porting Toolkit'''. Heroic supports Epic and GOG.com games.&lt;br /&gt;
&lt;br /&gt;
* Install the [https://github.com/Heroic-Games-Launcher/HeroicGamesLauncher/releases native macOS Heroic Games Launcher] or from Homebrew.&lt;br /&gt;
* Open Heroic, and log into your Epic Games and/or GOG.com account.&lt;br /&gt;
* Go to the &amp;quot;Wine Manager&amp;quot; and install a '''numbered''' version of Wine, such that it won't auto update- we are going to modify it.&lt;br /&gt;
** At the time of writing this, the newest numbered version of Wine-Crossover is &amp;lt;code&amp;gt;Wine-Crossover-Wine-22.1.0&amp;lt;/code&amp;gt;&lt;br /&gt;
* Press the folder icon that appears after installing it to open the directory containing Heroic's Wine installations.&lt;br /&gt;
* Right-click on the version of Wine you just installed and press &amp;quot;Show Package Contents&amp;quot;.&lt;br /&gt;
* Open this directory in the Terminal.&lt;br /&gt;
** If you have &amp;quot;OpenInTerminal&amp;quot; this is one button, otherwise press &amp;quot;Show Path Bar&amp;quot; and navigate where it says with &amp;quot;cd&amp;quot;.&lt;br /&gt;
** It should be something like &amp;lt;code&amp;gt;cd ~/Library/Application\ Support/heroic/tools/wine/Wine-crossover-wine-22.1.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
* &amp;lt;pre&amp;gt;cd Contents/MacOS&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Remove the existing Wine: &amp;lt;pre&amp;gt;rm wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Create a symlink to Game Porting Toolkit's Wine: &lt;br /&gt;
** If using Game Porting Toolkit Wineprefix: &amp;lt;pre&amp;gt;ln -s `/usr/local/bin/brew --prefix game-porting-toolkit`/bin/wine64 wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
** If using Whisky: &amp;lt;pre&amp;gt;ln -s /Applications/Whisky.app/Contents/Resources/Libraries/Wine/bin/wine64 wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
* &amp;lt;pre&amp;gt;cd ../Resources&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Remove the existing Wine: &amp;lt;pre&amp;gt;rm -rfv wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Create a symlink to Game Porting Toolkit's Wine&lt;br /&gt;
** If using Game Porting Toolkit Wineprefix: &amp;lt;pre&amp;gt;ln -s `/usr/local/bin/brew --prefix game-porting-toolkit` wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
** If using Whisky: &amp;lt;pre&amp;gt;ln -s /Applications/Whisky.app/Contents/Resources/Libraries/Wine wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
* We are now done with Terminal. Install any games you want to try playing.&lt;br /&gt;
* Select the game you want to play, and press the settings button in the top-right.&lt;br /&gt;
* Make sure the version of Wine you just downloaded and modified is selected.&lt;br /&gt;
* Make sure your Game Porting Toolkit Wine Prefix is selected. If you followed Apple's guide this is &amp;lt;code&amp;gt;/Users/you/my-game-prefix&amp;lt;/code&amp;gt;.&lt;br /&gt;
* If you Open the &amp;quot;Other&amp;quot; section you can also add any environment variables you want like &amp;lt;code&amp;gt;WINEESYNC=1&amp;quot;&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;&amp;quot;MTL_HUD_ENABLED=1&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
* Close the settings and try running the game.&lt;br /&gt;
&lt;br /&gt;
== Commands ==&lt;br /&gt;
Installing individual exe games: open your Wine prefix’s virtual C: drive in Finder (open ~/my-game-prefix/drive_c) and copy your game into an appropriate subdirectory.&lt;br /&gt;
&lt;br /&gt;
'''A. Standard launching'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix 'C:\Program Files (x86)\Steam\steam.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This launches the given Windows game binary with a visible extended Metal Performance HUD and filters logging to output from the Game Porting Toolkit.&lt;br /&gt;
&lt;br /&gt;
'''B. Launching without a HUD'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit-no-hud ~/my-game-prefix 'C:\Program Files (x86)\Steam\steam.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''C. Launching with Wine ESYNC disabled'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit-no-esync ~/my-game-prefix 'C:\Program Files (x86)\Steam\steam.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To enter Winecfg:&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix winecfg&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Shortcut ==&lt;br /&gt;
You can make a shortcut for Steam for example by using macOS built-in Automator app.&lt;br /&gt;
*Open Automator.&lt;br /&gt;
*Select New Application.&lt;br /&gt;
*In the 2nd column select Run Shell Script.&lt;br /&gt;
*Copy and paste this code into the box:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/zsh&lt;br /&gt;
&lt;br /&gt;
export PATH=&amp;quot;/usr/local/bin:${PATH}&amp;quot;&lt;br /&gt;
&lt;br /&gt;
arch -x86_64 gameportingtoolkit ~/my-game-prefix 'C:\Program Files (x86)\Steam\steam.exe'&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the shortcut somewhere e.g. Applications.&lt;br /&gt;
*Above shortcut can be customised to any Wineprefix or game.&lt;br /&gt;
*Add an icon by selecting the shortcut, pressing {{key|cmd|I}} to Get Info, then dragging and dropping a PNG file onto the top left of the window.&lt;br /&gt;
&lt;br /&gt;
== Logging ==&lt;br /&gt;
The provided bin/gameportingtoolkit* scripts can be copied onto your path to facilitate different forms of logging and launching. You can run these scripts from any shell; you don’t need to switch to the Rosetta environment first.&lt;br /&gt;
&lt;br /&gt;
Logging output will appear in the Terminal window in which you launch your game as well as the system log, which can be viewed with the Console app found in Applications ▸ Utilities. Log messages from the Game Porting Toolkit are prefixed with D3DM. By default the gameportingtoolkit* scripts will filter to just the D3DM-prefixed messages.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
{{Image|GPTK Steam black screen.png|Steam login black screen issue.}}&lt;br /&gt;
'''Steam login black screen'''&lt;br /&gt;
&lt;br /&gt;
Close the Terminal window and then reopen and retry the command, repeat several times.&lt;br /&gt;
&lt;br /&gt;
Alternate way of launching Steam (after installing):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
MTL_HUD_ENABLED=1 WINEESYNC=1 WINEPREFIX=&amp;lt;path to the Wine bottle you set up&amp;gt; /usr/local/Cellar/game-porting-toolkit/1.0/bin/wine64 'C:\Program Files (x86)/Steam/steam.exe'&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If still not working then try using [[CrossOver]] and create a Steam bottle, then redirect this WINEPREFIX to that bottle:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=&amp;quot;/Users/[username]/Library/Application Support/CrossOver/Bottles/Steam/&amp;quot; &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Steam crashes straight after opening'''&lt;br /&gt;
&lt;br /&gt;
Disconnect any external monitors.&lt;br /&gt;
&lt;br /&gt;
'''Battle.net launcher won't re-launch'''&lt;br /&gt;
&lt;br /&gt;
Re-install the launcher to reopen, no other fix at the moment.&lt;br /&gt;
&lt;br /&gt;
'''My game won’t run because it thinks the version of Windows is too old. Some games detect specific minimum versions of Windows and need to be updated.''' Use this script to update your wineprefix with build 19042 which should work for most games e.g. Spider-Man Remastered.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion' /v CurrentBuild /t REG_SZ /d 19042 /f&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion' /v CurrentBuildNumber /t REG_SZ /d 19042 /f&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wineserver -k&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''steamwebhelper.exe crashes'''&lt;br /&gt;
&lt;br /&gt;
This is caused by Steam being run through macOS Ventura or below, upgrade to macOS Sonoma.&lt;br /&gt;
&lt;br /&gt;
'''My game won't run and crashes with an invalid instruction'''&lt;br /&gt;
&lt;br /&gt;
AVX and AVX2 games are not supported by Apple's arm64 chipset.&lt;br /&gt;
&lt;br /&gt;
'''My game won't run because its anti-cheat or DRM software is incompatible with Wine translation.'''&lt;br /&gt;
&lt;br /&gt;
Likely there will be no fixes for any games that use anti-cheat, e.g. Easy Anti Cheat. Some games have workarounds e.g. Elden Ring. Other games that use say Denuvo may also be incompatible until that DRM is removed by the game's developer.&lt;br /&gt;
&lt;br /&gt;
'''My game won’t run because it requires Mono, .NET, or the MSVCRT runtime.'''&lt;br /&gt;
&lt;br /&gt;
The game porting toolkit’s evaluation environment does not pre-install these runtime support packages. If your game makes use of one of these packages, consider searching for and downloading appropriate installers (.exe or .msi) and installing them to your evaluation environment. Additional runtime installers can be run on your environment by just launching the installer and following its installation instructions:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 &amp;lt;some-installer.exe&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
And .MSI packages can be installed by launching the Windows uninstaller application and choosing to install a downloaded .msi package:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 uninstaller&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Controller issues'''&lt;br /&gt;
&lt;br /&gt;
Issues may be fixed by enrolling into the Steam beta.&lt;br /&gt;
&lt;br /&gt;
'''My game looks pixelated and the display resolution is limited'''&lt;br /&gt;
&lt;br /&gt;
Enable Retina (high resolution) mode:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_CURRENT_USER\Software\Wine\Mac Driver' /v RetinaMode /t REG_SZ /d 'Y' /f&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Some games will not run with Retina mode enabled. To disable it:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_CURRENT_USER\Software\Wine\Mac Driver' /v RetinaMode /t REG_SZ /d 'N' /f&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Game compatibility list ==&lt;br /&gt;
Working games:&lt;br /&gt;
* Halo 3 (MCC - No Online due to Easy Anti-Cheat Compatibility)&lt;br /&gt;
* Cyberpunk 2077&lt;br /&gt;
* Final Fantasy VII Remake Intergrade (~50 FPS on High settings at 1080p with M1 Pro)&lt;br /&gt;
* God of War (Works somewhat well on M1 Pro (16gb), wouldn't recommend lesser hardware.)&lt;br /&gt;
* Elden Ring&lt;br /&gt;
* Overwatch 2 &lt;br /&gt;
* SpongeBob SquarePants: The Cosmic Shake&lt;br /&gt;
* Diablo IV [https://www.reddit.com/r/macgaming/comments/14307be/comment/jn7dxzo/?utm_source=reddit&amp;amp;utm_medium=web2x&amp;amp;context=3 ]&lt;br /&gt;
* Hogwarts Legacy&lt;br /&gt;
* Deep Rock Galactic&lt;br /&gt;
* Sonic Omens&lt;br /&gt;
* Sonic P-06&lt;br /&gt;
* Scarlet Nexus&lt;br /&gt;
* Metal Gear Solid V: The Phantom Pain&lt;br /&gt;
* Dyson Sphere Program (some objects and main character weren't visible before)&lt;br /&gt;
* Derail Valley (awesome performance, no missing manuals - in-game objects for train operation - like on CrossOver)&lt;br /&gt;
* Spider-Man (2018)&lt;br /&gt;
* Spider-Man Miles Morales - ''requires Windows ver fix''&lt;br /&gt;
* Warframe - ''To get installer/launcher working add dwrite (disabled) to library overrides in winecfg''&lt;br /&gt;
* HI-Fi RUSH&lt;br /&gt;
* QUBE 2&lt;br /&gt;
* Deceive Inc. - works well if launched without EAC&lt;br /&gt;
* Risk of Rain 2 (does not require `-disable-gpu-skinning` like Crossover 22)&lt;br /&gt;
* Crysis Remastered&lt;br /&gt;
* Cuphead&lt;br /&gt;
* Bloodstained: Ritual of the Night&lt;br /&gt;
* Tetris Effect: Connected - Game window likes to be uncooperative; really doesn't like retina mode, works otherwise&lt;br /&gt;
* Hatsune Miku: Project DIVA Mega Mix+ - works with Retina mode; DivaModLoader and DivaNoSpy recommended; run Steam with WINEDEBUG=-all WINEESYNC=0 WINEDLLOVERRIDES=&amp;quot;dinput8.dll=n,b&amp;quot;; may randomly crash at the title screen (just restart and try again until it works)&lt;br /&gt;
* Kena: Bridge of Spirits&lt;br /&gt;
* Control (DX12 mode, if downloaded from Heroic, needs to be ran by Terminal)&lt;br /&gt;
* Guilty Gear Strive&lt;br /&gt;
* StarCraft: Remastered - Game runs fine but opening Option menu the second time will cause game not recognizing any inputs.&lt;br /&gt;
&lt;br /&gt;
Not working well:&lt;br /&gt;
* Horizon Zero Dawn - slowdown issues&lt;br /&gt;
&lt;br /&gt;
Not working yet:&lt;br /&gt;
* Sea of Thieves - Launches, but the prompt to sign into an xbox live account appears blank and cannot be completed.&lt;br /&gt;
* Red Dead Redemption 2&lt;br /&gt;
* Hitman 3 - launcher works, crash at 0x0000014136dddd hitman3+0x136dddd: int $3&lt;br /&gt;
* Among Us&lt;br /&gt;
* Splitgate - anti-cheat conflict.&lt;br /&gt;
* Rogue Company - anti-cheat conflict.&lt;br /&gt;
* Tiny Tina's Wonderlands - Intro videos play, dragon animation indicating shader precompilation starts, game freezes, eventually crashes.&lt;br /&gt;
* Halo Infinite - Crash on launch&lt;br /&gt;
* Street Fighter 6 - Crash on launch&lt;br /&gt;
* Microsoft Flight Simulator 2020 (Steam) - Crash on launch&lt;br /&gt;
* Company of Heroes 3&lt;br /&gt;
* Many (all?) DX9 games&lt;br /&gt;
** 30XX - &amp;quot;Failed to create D3D device&amp;quot; -&amp;gt; crash on launch; this is a rare 64-bit DX9 game&lt;br /&gt;
** Left 4 Dead 2 - Black screen -&amp;gt; crash on launch&lt;br /&gt;
** Killing Floor 1 - Crash on launch&lt;br /&gt;
** Sonic Mania - Crash on launch&lt;br /&gt;
** Mega Man Zero/ZX Legacy Collection - &amp;quot;Failed to create d3d9 device&amp;quot; -&amp;gt; crash on launch&lt;br /&gt;
** StarCraft II -&amp;gt; &amp;quot;Failed to initialize DirectX&amp;quot; error&lt;br /&gt;
&lt;br /&gt;
{{References}}&lt;/div&gt;</summary>
		<author><name>Andytizer</name></author>
	</entry>
	<entry>
		<id>https://www.applegamingwiki.com/w/index.php?title=Game_Porting_Toolkit&amp;diff=7611</id>
		<title>Game Porting Toolkit</title>
		<link rel="alternate" type="text/html" href="https://www.applegamingwiki.com/w/index.php?title=Game_Porting_Toolkit&amp;diff=7611"/>
		<updated>2023-06-08T14:02:40Z</updated>

		<summary type="html">&lt;p&gt;Andytizer: /* Troubleshooting */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Image|Game Porting Toolkit.png|Released 6th June, 2023 at WWDC23.}}&lt;br /&gt;
&lt;br /&gt;
Game Porting Toolkit is Apple's new translation layer released on 6th June, 2023. Game Porting Toolkit ('''GPTK''') combines Wine with Apple's own D3DMetal which supports DirectX 11 and 12&amp;lt;ref&amp;gt;{{Refurl|url=https://mastodon.gamedev.place/@gavkar/110501451404624870|title=Gokhan Avkarogullari: &amp;quot;@yiningkarlli @aras @romainguy…&amp;quot; - Gamedev Mastodon}}&amp;lt;/ref&amp;gt;. This is less user-friendly method of installing Windows games on Apple Silicon Macs compared to [[CrossOver]] or [[Parallels]], however it unlocks the ability to play many DirectX 12 games. Many more games not work using GPTK, however games that use anti-cheat or aggressive DRM generally don't worker do games that require AVX/AVX 2, e.g. The Last of Us Part I.&lt;br /&gt;
&lt;br /&gt;
== Toolkit install instructions ==&lt;br /&gt;
=== Requirements ===&lt;br /&gt;
*macOS Sonoma should be used, currently it is in beta. You can download the pkg installer from [https://mrmacintosh.com/macos-sonoma-full-installer-database-download-directly-from-apple/ Mr Macintosh blog].&lt;br /&gt;
*macOS Ventura causes large numbers of issues with steamwebhelper.exe crashing so it isn't recommended, use the macOS Sonoma beta.&lt;br /&gt;
*Visit [https://developer.apple.com/downloads Apple Developer Downloads site], these files are now free to download use for any logged in Apple account.&lt;br /&gt;
**Search for Command Line Tools for Xcode 15 beta and download the dmg file, then install it.&lt;br /&gt;
**If you have an old version Xcode installed, remove it.&lt;br /&gt;
**Search for Game Porting Toolkit and download it. Open the dmg file and then run the pkg.&lt;br /&gt;
&lt;br /&gt;
=== Homebrew ===&lt;br /&gt;
Note: if you have ever installed Homebrew before, then it is advisable to remove arm64 Homebrew as this can interfere with this build process. Either use a Homebrew uninstall script or delete the folder &amp;lt;code&amp;gt;/opt/homebrew/bin&amp;lt;/code&amp;gt;. Otherwise, if you prefer to keep both arm64 and x86 versions of brew installed, you may add a &amp;quot;brew-switcher&amp;quot; to your &amp;lt;code&amp;gt;.zshrc&amp;lt;/code&amp;gt; file to allow either version to be used depending on the active architecture. You may follow the steps at the end of this section after installing Brew to achieve this.&lt;br /&gt;
&lt;br /&gt;
Open Terminal (search in Spotlight on macOS).&lt;br /&gt;
&lt;br /&gt;
Install Rosetta:&lt;br /&gt;
&amp;lt;pre&amp;gt;softwareupdate --install-rosetta&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Enter an x86_64 shell to continue the following steps in a Rosetta environment. All subsequent commands should be run within this shell.&lt;br /&gt;
&amp;lt;pre&amp;gt;arch -x86_64 zsh&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Install the x86_64 version of Homebrew if you don't already have it.&lt;br /&gt;
&amp;lt;pre&amp;gt;/bin/bash -c &amp;quot;$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)&amp;quot;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Make sure the brew command is on your path:&lt;br /&gt;
&amp;lt;pre&amp;gt;which brew&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If this command does not print &amp;lt;code&amp;gt;/usr/local/bin/brew&amp;lt;/code&amp;gt;, you should use this command:&lt;br /&gt;
&amp;lt;pre&amp;gt;export PATH=/usr/local/bin:${PATH}&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Fixbox|description=Optionally retain both arm64 and x86 versions of Brew|ref=|collapsed=yes|fix=&lt;br /&gt;
(Optional) If you want to have both arm64 and x86 versions of Brew installed, begin by editing your &amp;lt;code&amp;gt;.zshrc&amp;lt;/code&amp;gt; file:&lt;br /&gt;
&amp;lt;pre&amp;gt;nano ~/.zshrc&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Scroll down (by using the arrow keys or Control + V) to the bottom of the file, and paste the following script:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
if [ &amp;quot;$(arch)&amp;quot; = &amp;quot;arm64&amp;quot; ]; then&lt;br /&gt;
    eval &amp;quot;$(/opt/homebrew/bin/brew shellenv)&amp;quot;&lt;br /&gt;
else&lt;br /&gt;
    eval &amp;quot;$(/usr/local/bin/brew shellenv)&amp;quot;&lt;br /&gt;
fi&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You may now restart your terminal and use the following command to return to an x86_64 shell:&lt;br /&gt;
&amp;lt;pre&amp;gt;arch -x86_64 zsh&amp;lt;/pre&amp;gt;&lt;br /&gt;
Your shell will now select the right installation of Brew, depending on your architecture.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=== Build ===&lt;br /&gt;
Run this command to download Apple tap:&lt;br /&gt;
&amp;lt;pre&amp;gt;brew tap apple/apple http://github.com/apple/homebrew-apple&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Install the game-porting-toolkit formula. This formula downloads and compiles several large software projects. How long this takes will depend on the speed of your computer. It can take over 1 hour to complete depending on the speed of your Mac.&lt;br /&gt;
&amp;lt;pre&amp;gt;brew -v install apple/apple/game-porting-toolkit&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If during installation you see an error such as '''“Error: game-porting-toolkit: unknown or unsupported macOS version: :dunno”, your version of Homebrew doesn’t have macOS Sonoma support. Update to the latest version of Homebrew and try again.'''&lt;br /&gt;
&amp;lt;pre&amp;gt;brew update brew -v install apple/apple/game-porting-toolkit&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Wine prefix ===&lt;br /&gt;
A Wine prefix contains a virtual C: drive. You will install the toolkit and your game into this virtual C: drive. Run the following command to create a new Wine prefix named my-game-prefix in your home directory.&lt;br /&gt;
&amp;lt;pre&amp;gt;WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 winecfg&amp;lt;/pre&amp;gt;&lt;br /&gt;
*A “Wine configuration” window should appear on your screen.&lt;br /&gt;
*Change the version of Windows to Windows 10.&lt;br /&gt;
*Choose Apply and then OK to exit winecfg.&lt;br /&gt;
&lt;br /&gt;
If the “Wine configuration” window does not appear, and no new icon appears in the Dock, verify that you have correctly installed the x86_64 version of Homebrew as well as the game-porting-toolkit formula.&lt;br /&gt;
&lt;br /&gt;
=== Preparing the toolkit ===&lt;br /&gt;
Make sure the Game Porting Toolkit dmg downloaded earlier is mounted at /Volumes/Game Porting Toolkit-1.0. Use this script to copy the Game Porting Toolkit library directory into Wine’s library directory.&lt;br /&gt;
&amp;lt;pre&amp;gt;ditto /Volumes/Game\ Porting\ Toolkit-1.0/lib/ `brew --prefix game-porting-toolkit`/lib/&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Put the 3 scripts from the Game Porting Toolkit DMG into here &amp;lt;code&amp;gt;/usr/local/bin&amp;lt;/code&amp;gt; using this command:&lt;br /&gt;
&amp;lt;pre&amp;gt;cp /Volumes/Game\ Porting\ Toolkit*/gameportingtoolkit* /usr/local/bin&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now you are ready to install a launcher or individual Windows games, see below.&lt;br /&gt;
&lt;br /&gt;
== Steam ==&lt;br /&gt;
Download the [https://cdn.cloudflare.steamstatic.com/client/installer/SteamSetup.exe Windows version of Steam] and place in your Downloads folder.&lt;br /&gt;
&lt;br /&gt;
'''Install Steam'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix ~/Downloads/SteamSetup.exe&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Run Steam'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix 'C:\Program Files (x86)/Steam/steam.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Log into Steam'''&lt;br /&gt;
&lt;br /&gt;
A common issue is that Steam will present with a blank black window.&lt;br /&gt;
&lt;br /&gt;
Alternate way of launching Steam (after installing):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
MTL_HUD_ENABLED=1 WINEESYNC=1 WINEPREFIX=~/my-game-prefix /usr/local/Cellar/game-porting-toolkit/1.0/bin/wine64 'C:\Program Files (x86)\Steam\steam.exe'&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If this continues then close the Terminal window and then re-open and try again, repeat until the login screen opens. Now you should be able to download and launch Windows games through Steam.&lt;br /&gt;
&lt;br /&gt;
== Battle.net ==&lt;br /&gt;
Download the [https://download.battle.net/en-gb/?platform=windows Windows version of Battle.net].&lt;br /&gt;
&lt;br /&gt;
Make a new Wineprefix for Battle.net - we will refer to this as battle-net from now:&lt;br /&gt;
&amp;lt;pre&amp;gt;WINEPREFIX=~/battle-net `brew --prefix game-porting-toolkit`/bin/wine64 winecfg&amp;lt;/pre&amp;gt;&lt;br /&gt;
*A “Wine configuration” window should appear on your screen.&lt;br /&gt;
*Change the version of Windows to &amp;lt;code&amp;gt;Windows 10&amp;lt;/code&amp;gt;.&lt;br /&gt;
*Choose Apply and then OK to exit winecfg.&lt;br /&gt;
&lt;br /&gt;
'''Run Battle.net launcher'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/battle-net ~/Downloads/Battle.net-Setup.exe&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Be aware that there is an issue launching Battle.net once installed, the only current way to re-login is to 'install' the launcher again. &lt;br /&gt;
&lt;br /&gt;
Start individual game without the launcher using this command:&lt;br /&gt;
&amp;lt;pre&amp;gt;arch -x86_64 gameportingtoolkit-no-hud ~/battle-net 'C:\Program Files (x86)\Diablo IV\Diablo IV Launcher.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Epic and GOG.com support ==&lt;br /&gt;
This is particularly useful because '''as it currently stands, the real Epic Games Launcher fails to install under the Game Porting Toolkit'''. Heroic supports Epic and GOG.com games.&lt;br /&gt;
&lt;br /&gt;
* Install the [https://github.com/Heroic-Games-Launcher/HeroicGamesLauncher/releases native macOS Heroic Games Launcher] or from Homebrew.&lt;br /&gt;
* Open Heroic, and log into your Epic Games and/or GOG.com account.&lt;br /&gt;
* Go to the &amp;quot;Wine Manager&amp;quot; and install a '''numbered''' version of Wine, such that it won't auto update- we are going to modify it.&lt;br /&gt;
** At the time of writing this, the newest numbered version of Wine-Crossover is &amp;lt;code&amp;gt;Wine-Crossover-Wine-22.1.0&amp;lt;/code&amp;gt;&lt;br /&gt;
* Press the folder icon that appears after installing it to open the directory containing Heroic's Wine installations.&lt;br /&gt;
* Right-click on the version of Wine you just installed and press &amp;quot;Show Package Contents&amp;quot;.&lt;br /&gt;
* Open this directory in the Terminal.&lt;br /&gt;
** If you have &amp;quot;OpenInTerminal&amp;quot; this is one button, otherwise press &amp;quot;Show Path Bar&amp;quot; and navigate where it says with &amp;quot;cd&amp;quot;.&lt;br /&gt;
** It should be something like &amp;lt;code&amp;gt;cd ~/Library/Application Support/heroic/tools/wine/Wine-crossover-wine-22.1.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
* &amp;lt;pre&amp;gt;cd Contents/MacOS&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Remove the existing Wine: &amp;lt;pre&amp;gt;rm wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Create a symlink to Game Porting Toolkit's Wine: &lt;br /&gt;
** If using Game Porting Toolkit Wineprefix: &amp;lt;pre&amp;gt;ln -s `/usr/local/bin/brew --prefix game-porting-toolkit`/bin/wine64 wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
** If using Whisky: &amp;lt;pre&amp;gt;ln -s /Applications/Whisky.app/Contents/Resources/Libraries/Wine/bin/wine64 wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
* &amp;lt;pre&amp;gt;cd ../Resources&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Remove the existing Wine: &amp;lt;pre&amp;gt;rm -rfv wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Create a symlink to Game Porting Toolkit's Wine&lt;br /&gt;
** If using Game Porting Toolkit Wineprefix: &amp;lt;pre&amp;gt;ln -s `/usr/local/bin/brew --prefix game-porting-toolkit` wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
** If using Whisky: &amp;lt;pre&amp;gt;ln -s /Applications/Whisky.app/Contents/Resources/Libraries/Wine wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
* We are now done with Terminal. Install any games you want to try playing.&lt;br /&gt;
* Select the game you want to play, and press the settings button in the top-right.&lt;br /&gt;
* Make sure the version of Wine you just downloaded and modified is selected.&lt;br /&gt;
* Make sure your Game Porting Toolkit Wine Prefix is selected. If you followed Apple's guide this is &amp;lt;code&amp;gt;/Users/you/my-game-prefix&amp;lt;/code&amp;gt;.&lt;br /&gt;
* If you Open the &amp;quot;Other&amp;quot; section you can also add any environment variables you want like &amp;lt;code&amp;gt;WINEESYNC=1&amp;quot;&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;&amp;quot;MTL_HUD_ENABLED=1&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
* Close the settings and try running the game.&lt;br /&gt;
&lt;br /&gt;
== Commands ==&lt;br /&gt;
Installing individual exe games: open your Wine prefix’s virtual C: drive in Finder (open ~/my-game-prefix/drive_c) and copy your game into an appropriate subdirectory.&lt;br /&gt;
&lt;br /&gt;
'''A. Standard launching'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix 'C:\Program Files (x86)\Steam\steam.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This launches the given Windows game binary with a visible extended Metal Performance HUD and filters logging to output from the Game Porting Toolkit.&lt;br /&gt;
&lt;br /&gt;
'''B. Launching without a HUD'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit-no-hud ~/my-game-prefix 'C:\Program Files (x86)\Steam\steam.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''C. Launching with Wine ESYNC disabled'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit-no-esync ~/my-game-prefix 'C:\Program Files (x86)\Steam\steam.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To enter Winecfg:&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix winecfg&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Shortcut ==&lt;br /&gt;
You can make a shortcut for Steam for example by using macOS built-in Automator app.&lt;br /&gt;
*Open Automator.&lt;br /&gt;
*Select New Application.&lt;br /&gt;
*In the 2nd column select Run Shell Script.&lt;br /&gt;
*Copy and paste this code into the box:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/zsh&lt;br /&gt;
&lt;br /&gt;
export PATH=&amp;quot;/usr/local/bin:${PATH}&amp;quot;&lt;br /&gt;
&lt;br /&gt;
arch -x86_64 gameportingtoolkit ~/my-game-prefix 'C:\Program Files (x86)\Steam\steam.exe'&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the shortcut somewhere e.g. Applications.&lt;br /&gt;
*Above shortcut can be customised to any Wineprefix or game.&lt;br /&gt;
*Add an icon by selecting the shortcut, pressing {{key|cmd|I}} to Get Info, then dragging and dropping a PNG file onto the top left of the window.&lt;br /&gt;
&lt;br /&gt;
== Logging ==&lt;br /&gt;
The provided bin/gameportingtoolkit* scripts can be copied onto your path to facilitate different forms of logging and launching. You can run these scripts from any shell; you don’t need to switch to the Rosetta environment first.&lt;br /&gt;
&lt;br /&gt;
Logging output will appear in the Terminal window in which you launch your game as well as the system log, which can be viewed with the Console app found in Applications ▸ Utilities. Log messages from the Game Porting Toolkit are prefixed with D3DM. By default the gameportingtoolkit* scripts will filter to just the D3DM-prefixed messages.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
{{Image|GPTK Steam black screen.png|Steam login black screen issue.}}&lt;br /&gt;
'''Steam login black screen'''&lt;br /&gt;
&lt;br /&gt;
Close the Terminal window and then reopen and retry the command, repeat several times.&lt;br /&gt;
&lt;br /&gt;
Alternate way of launching Steam (after installing):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
MTL_HUD_ENABLED=1 WINEESYNC=1 WINEPREFIX=&amp;lt;path to the Wine bottle you set up&amp;gt; /usr/local/Cellar/game-porting-toolkit/1.0/bin/wine64 'C:\Program Files (x86)/Steam/steam.exe'&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If still not working then try using [[CrossOver]] and create a Steam bottle, then redirect this WINEPREFIX to that bottle:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=&amp;quot;/Users/[username]/Library/Application Support/CrossOver/Bottles/Steam/&amp;quot; &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Steam crashes straight after opening'''&lt;br /&gt;
&lt;br /&gt;
Disconnect any external monitors.&lt;br /&gt;
&lt;br /&gt;
'''Battle.net launcher won't re-launch'''&lt;br /&gt;
&lt;br /&gt;
Re-install the launcher to reopen, no other fix at the moment.&lt;br /&gt;
&lt;br /&gt;
'''My game won’t run because it thinks the version of Windows is too old. Some games detect specific minimum versions of Windows and need to be updated.''' Use this script to update your wineprefix with build 19042 which should work for most games e.g. Spider-Man Remastered.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion' /v CurrentBuild /t REG_SZ /d 19042 /f&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion' /v CurrentBuildNumber /t REG_SZ /d 19042 /f&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wineserver -k&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''steamwebhelper.exe crashes'''&lt;br /&gt;
&lt;br /&gt;
This is caused by Steam being run through macOS Ventura or below, upgrade to macOS Sonoma.&lt;br /&gt;
&lt;br /&gt;
'''My game won't run and crashes with an invalid instruction'''&lt;br /&gt;
&lt;br /&gt;
AVX and AVX2 games are not supported by Apple's arm64 chipset.&lt;br /&gt;
&lt;br /&gt;
'''My game won't run because its anti-cheat or DRM software is incompatible with Wine translation.'''&lt;br /&gt;
&lt;br /&gt;
Likely there will be no fixes for any games that use anti-cheat, e.g. Easy Anti Cheat. Some games have workarounds e.g. Elden Ring. Other games that use say Denuvo may also be incompatible until that DRM is removed by the game's developer.&lt;br /&gt;
&lt;br /&gt;
'''My game won’t run because it requires Mono, .NET, or the MSVCRT runtime.'''&lt;br /&gt;
&lt;br /&gt;
The game porting toolkit’s evaluation environment does not pre-install these runtime support packages. If your game makes use of one of these packages, consider searching for and downloading appropriate installers (.exe or .msi) and installing them to your evaluation environment. Additional runtime installers can be run on your environment by just launching the installer and following its installation instructions:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 &amp;lt;some-installer.exe&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
And .MSI packages can be installed by launching the Windows uninstaller application and choosing to install a downloaded .msi package:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 uninstaller&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Controller issues'''&lt;br /&gt;
&lt;br /&gt;
Issues may be fixed by enrolling into the Steam beta.&lt;br /&gt;
&lt;br /&gt;
'''My game looks pixelated and the display resolution is limited'''&lt;br /&gt;
&lt;br /&gt;
Enable Retina (high resolution) mode:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_CURRENT_USER\Software\Wine\Mac Driver' /v RetinaMode /t REG_SZ /d 'Y' /f&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Some games will not run with Retina mode enabled. To disable it:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_CURRENT_USER\Software\Wine\Mac Driver' /v RetinaMode /t REG_SZ /d 'N' /f&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Game compatibility list ==&lt;br /&gt;
Working games:&lt;br /&gt;
* Halo 3 (MCC - No Online due to Easy Anti-Cheat Compatibility)&lt;br /&gt;
* Cyberpunk 2077&lt;br /&gt;
* Final Fantasy VII Remake Intergrade (~50 FPS on High settings at 1080p with M1 Pro)&lt;br /&gt;
* God of War (Works somewhat well on M1 Pro (16gb), wouldn't recommend lesser hardware.)&lt;br /&gt;
* Elden Ring&lt;br /&gt;
* Overwatch 2 &lt;br /&gt;
* SpongeBob SquarePants: The Cosmic Shake&lt;br /&gt;
* Diablo IV [https://www.reddit.com/r/macgaming/comments/14307be/comment/jn7dxzo/?utm_source=reddit&amp;amp;utm_medium=web2x&amp;amp;context=3 ]&lt;br /&gt;
* Hogwarts Legacy&lt;br /&gt;
* Deep Rock Galactic&lt;br /&gt;
* Sonic Omens&lt;br /&gt;
* Sonic P-06&lt;br /&gt;
* Scarlet Nexus&lt;br /&gt;
* Metal Gear Solid V: The Phantom Pain&lt;br /&gt;
* Dyson Sphere Program (some objects and main character weren't visible before)&lt;br /&gt;
* Derail Valley (awesome performance, no missing manuals - in-game objects for train operation - like on CrossOver)&lt;br /&gt;
* Spider-Man (2018)&lt;br /&gt;
* Spider-Man Miles Morales - ''requires Windows ver fix''&lt;br /&gt;
* Warframe - ''To get installer/launcher working add dwrite (disabled) to library overrides in winecfg''&lt;br /&gt;
* HI-Fi RUSH&lt;br /&gt;
* QUBE 2&lt;br /&gt;
* Deceive Inc. - works well if launched without EAC&lt;br /&gt;
* Risk of Rain 2 (does not require `-disable-gpu-skinning` like Crossover 22)&lt;br /&gt;
* Crysis Remastered&lt;br /&gt;
* Cuphead&lt;br /&gt;
* Bloodstained: Ritual of the Night&lt;br /&gt;
* Tetris Effect: Connected - Game window likes to be uncooperative; really doesn't like retina mode, works otherwise&lt;br /&gt;
* Hatsune Miku: Project DIVA Mega Mix+ - works with Retina mode; DivaModLoader and DivaNoSpy recommended; run Steam with WINEDEBUG=-all WINEESYNC=0 WINEDLLOVERRIDES=&amp;quot;dinput8.dll=n,b&amp;quot;; may randomly crash at the title screen (just restart and try again until it works)&lt;br /&gt;
* Kena: Bridge of Spirits&lt;br /&gt;
* Control (DX12 mode, if downloaded from Heroic, needs to be ran by Terminal)&lt;br /&gt;
&lt;br /&gt;
Not working well:&lt;br /&gt;
* Horizon Zero Dawn - slowdown issues&lt;br /&gt;
&lt;br /&gt;
Not working yet:&lt;br /&gt;
* Sea of Thieves - Launches, but the prompt to sign into an xbox live account appears blank and cannot be completed.&lt;br /&gt;
* Red Dead Redemption 2&lt;br /&gt;
* Hitman 3 - launcher works, crash at 0x0000014136dddd hitman3+0x136dddd: int $3&lt;br /&gt;
* Among Us&lt;br /&gt;
* Splitgate - anti-cheat conflict.&lt;br /&gt;
* Rogue Company - anti-cheat conflict.&lt;br /&gt;
* Tiny Tina's Wonderlands - Intro videos play, dragon animation indicating shader precompilation starts, game freezes, eventually crashes.&lt;br /&gt;
* Halo Infinite - Crash on launch&lt;br /&gt;
* Street Fighter 6 - Crash on launch&lt;br /&gt;
* Company of Heroes 3&lt;br /&gt;
* Many (all?) DX9 games&lt;br /&gt;
** 30XX - &amp;quot;Failed to create D3D device&amp;quot; -&amp;gt; crash on launch; this is a rare 64-bit DX9 game&lt;br /&gt;
** Left 4 Dead 2 - Black screen -&amp;gt; crash on launch&lt;br /&gt;
** Killing Floor 1 - Crash on launch&lt;br /&gt;
** Sonic Mania - Crash on launch&lt;br /&gt;
** Mega Man Zero/ZX Legacy Collection - &amp;quot;Failed to create d3d9 device&amp;quot; -&amp;gt; crash on launch&lt;/div&gt;</summary>
		<author><name>Andytizer</name></author>
	</entry>
	<entry>
		<id>https://www.applegamingwiki.com/w/index.php?title=File:GPTK_Steam_black_screen.png&amp;diff=7610</id>
		<title>File:GPTK Steam black screen.png</title>
		<link rel="alternate" type="text/html" href="https://www.applegamingwiki.com/w/index.php?title=File:GPTK_Steam_black_screen.png&amp;diff=7610"/>
		<updated>2023-06-08T14:02:13Z</updated>

		<summary type="html">&lt;p&gt;Andytizer: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Andytizer</name></author>
	</entry>
	<entry>
		<id>https://www.applegamingwiki.com/w/index.php?title=Game_Porting_Toolkit&amp;diff=7609</id>
		<title>Game Porting Toolkit</title>
		<link rel="alternate" type="text/html" href="https://www.applegamingwiki.com/w/index.php?title=Game_Porting_Toolkit&amp;diff=7609"/>
		<updated>2023-06-08T14:01:18Z</updated>

		<summary type="html">&lt;p&gt;Andytizer: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Image|Game Porting Toolkit.png|Released 6th June, 2023 at WWDC23.}}&lt;br /&gt;
&lt;br /&gt;
Game Porting Toolkit is Apple's new translation layer released on 6th June, 2023. Game Porting Toolkit ('''GPTK''') combines Wine with Apple's own D3DMetal which supports DirectX 11 and 12&amp;lt;ref&amp;gt;{{Refurl|url=https://mastodon.gamedev.place/@gavkar/110501451404624870|title=Gokhan Avkarogullari: &amp;quot;@yiningkarlli @aras @romainguy…&amp;quot; - Gamedev Mastodon}}&amp;lt;/ref&amp;gt;. This is less user-friendly method of installing Windows games on Apple Silicon Macs compared to [[CrossOver]] or [[Parallels]], however it unlocks the ability to play many DirectX 12 games. Many more games not work using GPTK, however games that use anti-cheat or aggressive DRM generally don't worker do games that require AVX/AVX 2, e.g. The Last of Us Part I.&lt;br /&gt;
&lt;br /&gt;
== Toolkit install instructions ==&lt;br /&gt;
=== Requirements ===&lt;br /&gt;
*macOS Sonoma should be used, currently it is in beta. You can download the pkg installer from [https://mrmacintosh.com/macos-sonoma-full-installer-database-download-directly-from-apple/ Mr Macintosh blog].&lt;br /&gt;
*macOS Ventura causes large numbers of issues with steamwebhelper.exe crashing so it isn't recommended, use the macOS Sonoma beta.&lt;br /&gt;
*Visit [https://developer.apple.com/downloads Apple Developer Downloads site], these files are now free to download use for any logged in Apple account.&lt;br /&gt;
**Search for Command Line Tools for Xcode 15 beta and download the dmg file, then install it.&lt;br /&gt;
**If you have an old version Xcode installed, remove it.&lt;br /&gt;
**Search for Game Porting Toolkit and download it. Open the dmg file and then run the pkg.&lt;br /&gt;
&lt;br /&gt;
=== Homebrew ===&lt;br /&gt;
Note: if you have ever installed Homebrew before, then it is advisable to remove arm64 Homebrew as this can interfere with this build process. Either use a Homebrew uninstall script or delete the folder &amp;lt;code&amp;gt;/opt/homebrew/bin&amp;lt;/code&amp;gt;. Otherwise, if you prefer to keep both arm64 and x86 versions of brew installed, you may add a &amp;quot;brew-switcher&amp;quot; to your &amp;lt;code&amp;gt;.zshrc&amp;lt;/code&amp;gt; file to allow either version to be used depending on the active architecture. You may follow the steps at the end of this section after installing Brew to achieve this.&lt;br /&gt;
&lt;br /&gt;
Open Terminal (search in Spotlight on macOS).&lt;br /&gt;
&lt;br /&gt;
Install Rosetta:&lt;br /&gt;
&amp;lt;pre&amp;gt;softwareupdate --install-rosetta&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Enter an x86_64 shell to continue the following steps in a Rosetta environment. All subsequent commands should be run within this shell.&lt;br /&gt;
&amp;lt;pre&amp;gt;arch -x86_64 zsh&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Install the x86_64 version of Homebrew if you don't already have it.&lt;br /&gt;
&amp;lt;pre&amp;gt;/bin/bash -c &amp;quot;$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)&amp;quot;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Make sure the brew command is on your path:&lt;br /&gt;
&amp;lt;pre&amp;gt;which brew&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If this command does not print &amp;lt;code&amp;gt;/usr/local/bin/brew&amp;lt;/code&amp;gt;, you should use this command:&lt;br /&gt;
&amp;lt;pre&amp;gt;export PATH=/usr/local/bin:${PATH}&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Fixbox|description=Optionally retain both arm64 and x86 versions of Brew|ref=|collapsed=yes|fix=&lt;br /&gt;
(Optional) If you want to have both arm64 and x86 versions of Brew installed, begin by editing your &amp;lt;code&amp;gt;.zshrc&amp;lt;/code&amp;gt; file:&lt;br /&gt;
&amp;lt;pre&amp;gt;nano ~/.zshrc&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Scroll down (by using the arrow keys or Control + V) to the bottom of the file, and paste the following script:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
if [ &amp;quot;$(arch)&amp;quot; = &amp;quot;arm64&amp;quot; ]; then&lt;br /&gt;
    eval &amp;quot;$(/opt/homebrew/bin/brew shellenv)&amp;quot;&lt;br /&gt;
else&lt;br /&gt;
    eval &amp;quot;$(/usr/local/bin/brew shellenv)&amp;quot;&lt;br /&gt;
fi&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You may now restart your terminal and use the following command to return to an x86_64 shell:&lt;br /&gt;
&amp;lt;pre&amp;gt;arch -x86_64 zsh&amp;lt;/pre&amp;gt;&lt;br /&gt;
Your shell will now select the right installation of Brew, depending on your architecture.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=== Build ===&lt;br /&gt;
Run this command to download Apple tap:&lt;br /&gt;
&amp;lt;pre&amp;gt;brew tap apple/apple http://github.com/apple/homebrew-apple&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Install the game-porting-toolkit formula. This formula downloads and compiles several large software projects. How long this takes will depend on the speed of your computer. It can take over 1 hour to complete depending on the speed of your Mac.&lt;br /&gt;
&amp;lt;pre&amp;gt;brew -v install apple/apple/game-porting-toolkit&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If during installation you see an error such as '''“Error: game-porting-toolkit: unknown or unsupported macOS version: :dunno”, your version of Homebrew doesn’t have macOS Sonoma support. Update to the latest version of Homebrew and try again.'''&lt;br /&gt;
&amp;lt;pre&amp;gt;brew update brew -v install apple/apple/game-porting-toolkit&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Wine prefix ===&lt;br /&gt;
A Wine prefix contains a virtual C: drive. You will install the toolkit and your game into this virtual C: drive. Run the following command to create a new Wine prefix named my-game-prefix in your home directory.&lt;br /&gt;
&amp;lt;pre&amp;gt;WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 winecfg&amp;lt;/pre&amp;gt;&lt;br /&gt;
*A “Wine configuration” window should appear on your screen.&lt;br /&gt;
*Change the version of Windows to Windows 10.&lt;br /&gt;
*Choose Apply and then OK to exit winecfg.&lt;br /&gt;
&lt;br /&gt;
If the “Wine configuration” window does not appear, and no new icon appears in the Dock, verify that you have correctly installed the x86_64 version of Homebrew as well as the game-porting-toolkit formula.&lt;br /&gt;
&lt;br /&gt;
=== Preparing the toolkit ===&lt;br /&gt;
Make sure the Game Porting Toolkit dmg downloaded earlier is mounted at /Volumes/Game Porting Toolkit-1.0. Use this script to copy the Game Porting Toolkit library directory into Wine’s library directory.&lt;br /&gt;
&amp;lt;pre&amp;gt;ditto /Volumes/Game\ Porting\ Toolkit-1.0/lib/ `brew --prefix game-porting-toolkit`/lib/&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Put the 3 scripts from the Game Porting Toolkit DMG into here &amp;lt;code&amp;gt;/usr/local/bin&amp;lt;/code&amp;gt; using this command:&lt;br /&gt;
&amp;lt;pre&amp;gt;cp /Volumes/Game\ Porting\ Toolkit*/gameportingtoolkit* /usr/local/bin&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now you are ready to install a launcher or individual Windows games, see below.&lt;br /&gt;
&lt;br /&gt;
== Steam ==&lt;br /&gt;
Download the [https://cdn.cloudflare.steamstatic.com/client/installer/SteamSetup.exe Windows version of Steam] and place in your Downloads folder.&lt;br /&gt;
&lt;br /&gt;
'''Install Steam'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix ~/Downloads/SteamSetup.exe&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Run Steam'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix 'C:\Program Files (x86)/Steam/steam.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Log into Steam'''&lt;br /&gt;
&lt;br /&gt;
A common issue is that Steam will present with a blank black window.&lt;br /&gt;
&lt;br /&gt;
Alternate way of launching Steam (after installing):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
MTL_HUD_ENABLED=1 WINEESYNC=1 WINEPREFIX=~/my-game-prefix /usr/local/Cellar/game-porting-toolkit/1.0/bin/wine64 'C:\Program Files (x86)\Steam\steam.exe'&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If this continues then close the Terminal window and then re-open and try again, repeat until the login screen opens. Now you should be able to download and launch Windows games through Steam.&lt;br /&gt;
&lt;br /&gt;
== Battle.net ==&lt;br /&gt;
Download the [https://download.battle.net/en-gb/?platform=windows Windows version of Battle.net].&lt;br /&gt;
&lt;br /&gt;
Make a new Wineprefix for Battle.net - we will refer to this as battle-net from now:&lt;br /&gt;
&amp;lt;pre&amp;gt;WINEPREFIX=~/battle-net `brew --prefix game-porting-toolkit`/bin/wine64 winecfg&amp;lt;/pre&amp;gt;&lt;br /&gt;
*A “Wine configuration” window should appear on your screen.&lt;br /&gt;
*Change the version of Windows to &amp;lt;code&amp;gt;Windows 10&amp;lt;/code&amp;gt;.&lt;br /&gt;
*Choose Apply and then OK to exit winecfg.&lt;br /&gt;
&lt;br /&gt;
'''Run Battle.net launcher'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/battle-net ~/Downloads/Battle.net-Setup.exe&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Be aware that there is an issue launching Battle.net once installed, the only current way to re-login is to 'install' the launcher again. &lt;br /&gt;
&lt;br /&gt;
Start individual game without the launcher using this command:&lt;br /&gt;
&amp;lt;pre&amp;gt;arch -x86_64 gameportingtoolkit-no-hud ~/battle-net 'C:\Program Files (x86)\Diablo IV\Diablo IV Launcher.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Epic and GOG.com support ==&lt;br /&gt;
This is particularly useful because '''as it currently stands, the real Epic Games Launcher fails to install under the Game Porting Toolkit'''. Heroic supports Epic and GOG.com games.&lt;br /&gt;
&lt;br /&gt;
* Install the [https://github.com/Heroic-Games-Launcher/HeroicGamesLauncher/releases native macOS Heroic Games Launcher] or from Homebrew.&lt;br /&gt;
* Open Heroic, and log into your Epic Games and/or GOG.com account.&lt;br /&gt;
* Go to the &amp;quot;Wine Manager&amp;quot; and install a '''numbered''' version of Wine, such that it won't auto update- we are going to modify it.&lt;br /&gt;
** At the time of writing this, the newest numbered version of Wine-Crossover is &amp;lt;code&amp;gt;Wine-Crossover-Wine-22.1.0&amp;lt;/code&amp;gt;&lt;br /&gt;
* Press the folder icon that appears after installing it to open the directory containing Heroic's Wine installations.&lt;br /&gt;
* Right-click on the version of Wine you just installed and press &amp;quot;Show Package Contents&amp;quot;.&lt;br /&gt;
* Open this directory in the Terminal.&lt;br /&gt;
** If you have &amp;quot;OpenInTerminal&amp;quot; this is one button, otherwise press &amp;quot;Show Path Bar&amp;quot; and navigate where it says with &amp;quot;cd&amp;quot;.&lt;br /&gt;
** It should be something like &amp;lt;code&amp;gt;cd ~/Library/Application Support/heroic/tools/wine/Wine-crossover-wine-22.1.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
* &amp;lt;pre&amp;gt;cd Contents/MacOS&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Remove the existing Wine: &amp;lt;pre&amp;gt;rm wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Create a symlink to Game Porting Toolkit's Wine: &lt;br /&gt;
** If using Game Porting Toolkit Wineprefix: &amp;lt;pre&amp;gt;ln -s `/usr/local/bin/brew --prefix game-porting-toolkit`/bin/wine64 wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
** If using Whisky: &amp;lt;pre&amp;gt;ln -s /Applications/Whisky.app/Contents/Resources/Libraries/Wine/bin/wine64 wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
* &amp;lt;pre&amp;gt;cd ../Resources&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Remove the existing Wine: &amp;lt;pre&amp;gt;rm -rfv wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Create a symlink to Game Porting Toolkit's Wine&lt;br /&gt;
** If using Game Porting Toolkit Wineprefix: &amp;lt;pre&amp;gt;ln -s `/usr/local/bin/brew --prefix game-porting-toolkit` wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
** If using Whisky: &amp;lt;pre&amp;gt;ln -s /Applications/Whisky.app/Contents/Resources/Libraries/Wine wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
* We are now done with Terminal. Install any games you want to try playing.&lt;br /&gt;
* Select the game you want to play, and press the settings button in the top-right.&lt;br /&gt;
* Make sure the version of Wine you just downloaded and modified is selected.&lt;br /&gt;
* Make sure your Game Porting Toolkit Wine Prefix is selected. If you followed Apple's guide this is &amp;lt;code&amp;gt;/Users/you/my-game-prefix&amp;lt;/code&amp;gt;.&lt;br /&gt;
* If you Open the &amp;quot;Other&amp;quot; section you can also add any environment variables you want like &amp;lt;code&amp;gt;WINEESYNC=1&amp;quot;&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;&amp;quot;MTL_HUD_ENABLED=1&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
* Close the settings and try running the game.&lt;br /&gt;
&lt;br /&gt;
== Commands ==&lt;br /&gt;
Installing individual exe games: open your Wine prefix’s virtual C: drive in Finder (open ~/my-game-prefix/drive_c) and copy your game into an appropriate subdirectory.&lt;br /&gt;
&lt;br /&gt;
'''A. Standard launching'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix 'C:\Program Files (x86)\Steam\steam.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This launches the given Windows game binary with a visible extended Metal Performance HUD and filters logging to output from the Game Porting Toolkit.&lt;br /&gt;
&lt;br /&gt;
'''B. Launching without a HUD'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit-no-hud ~/my-game-prefix 'C:\Program Files (x86)\Steam\steam.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''C. Launching with Wine ESYNC disabled'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit-no-esync ~/my-game-prefix 'C:\Program Files (x86)\Steam\steam.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To enter Winecfg:&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix winecfg&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Shortcut ==&lt;br /&gt;
You can make a shortcut for Steam for example by using macOS built-in Automator app.&lt;br /&gt;
*Open Automator.&lt;br /&gt;
*Select New Application.&lt;br /&gt;
*In the 2nd column select Run Shell Script.&lt;br /&gt;
*Copy and paste this code into the box:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/zsh&lt;br /&gt;
&lt;br /&gt;
export PATH=&amp;quot;/usr/local/bin:${PATH}&amp;quot;&lt;br /&gt;
&lt;br /&gt;
arch -x86_64 gameportingtoolkit ~/my-game-prefix 'C:\Program Files (x86)\Steam\steam.exe'&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the shortcut somewhere e.g. Applications.&lt;br /&gt;
*Above shortcut can be customised to any Wineprefix or game.&lt;br /&gt;
*Add an icon by selecting the shortcut, pressing {{key|cmd|I}} to Get Info, then dragging and dropping a PNG file onto the top left of the window.&lt;br /&gt;
&lt;br /&gt;
== Logging ==&lt;br /&gt;
The provided bin/gameportingtoolkit* scripts can be copied onto your path to facilitate different forms of logging and launching. You can run these scripts from any shell; you don’t need to switch to the Rosetta environment first.&lt;br /&gt;
&lt;br /&gt;
Logging output will appear in the Terminal window in which you launch your game as well as the system log, which can be viewed with the Console app found in Applications ▸ Utilities. Log messages from the Game Porting Toolkit are prefixed with D3DM. By default the gameportingtoolkit* scripts will filter to just the D3DM-prefixed messages.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
'''Steam login black screen'''&lt;br /&gt;
{{Image|GPTK Steam black screen.png|Steam login black screen issue.}}&lt;br /&gt;
Close the Terminal window and then reopen and retry the command, repeat several times.&lt;br /&gt;
&lt;br /&gt;
Alternate way of launching Steam (after installing):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
MTL_HUD_ENABLED=1 WINEESYNC=1 WINEPREFIX=&amp;lt;path to the Wine bottle you set up&amp;gt; /usr/local/Cellar/game-porting-toolkit/1.0/bin/wine64 'C:\Program Files (x86)/Steam/steam.exe'&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If still not working then try using [[CrossOver]] and create a Steam bottle, then redirect this WINEPREFIX to that bottle:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=&amp;quot;/Users/[username]/Library/Application Support/CrossOver/Bottles/Steam/&amp;quot; &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Steam crashes straight after opening'''&lt;br /&gt;
&lt;br /&gt;
Disconnect any external monitors.&lt;br /&gt;
&lt;br /&gt;
'''Battle.net launcher won't re-launch'''&lt;br /&gt;
&lt;br /&gt;
Re-install the launcher to reopen, no other fix at the moment.&lt;br /&gt;
&lt;br /&gt;
'''My game won’t run because it thinks the version of Windows is too old. Some games detect specific minimum versions of Windows and need to be updated.''' Use this script to update your wineprefix with build 19042 which should work for most games e.g. Spider-Man Remastered.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion' /v CurrentBuild /t REG_SZ /d 19042 /f&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion' /v CurrentBuildNumber /t REG_SZ /d 19042 /f&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wineserver -k&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''steamwebhelper.exe crashes'''&lt;br /&gt;
&lt;br /&gt;
This is caused by Steam being run through macOS Ventura or below, upgrade to macOS Sonoma.&lt;br /&gt;
&lt;br /&gt;
'''My game won't run and crashes with an invalid instruction'''&lt;br /&gt;
&lt;br /&gt;
AVX and AVX2 games are not supported by Apple's arm64 chipset.&lt;br /&gt;
&lt;br /&gt;
'''My game won't run because its anti-cheat or DRM software is incompatible with Wine translation.'''&lt;br /&gt;
&lt;br /&gt;
Likely there will be no fixes for any games that use anti-cheat, e.g. Easy Anti Cheat. Some games have workarounds e.g. Elden Ring. Other games that use say Denuvo may also be incompatible until that DRM is removed by the game's developer.&lt;br /&gt;
&lt;br /&gt;
'''My game won’t run because it requires Mono, .NET, or the MSVCRT runtime.'''&lt;br /&gt;
&lt;br /&gt;
The game porting toolkit’s evaluation environment does not pre-install these runtime support packages. If your game makes use of one of these packages, consider searching for and downloading appropriate installers (.exe or .msi) and installing them to your evaluation environment. Additional runtime installers can be run on your environment by just launching the installer and following its installation instructions:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 &amp;lt;some-installer.exe&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
And .MSI packages can be installed by launching the Windows uninstaller application and choosing to install a downloaded .msi package:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 uninstaller&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Controller issues'''&lt;br /&gt;
&lt;br /&gt;
Issues may be fixed by enrolling into the Steam beta.&lt;br /&gt;
&lt;br /&gt;
'''My game looks pixelated and the display resolution is limited'''&lt;br /&gt;
&lt;br /&gt;
Enable Retina (high resolution) mode:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_CURRENT_USER\Software\Wine\Mac Driver' /v RetinaMode /t REG_SZ /d 'Y' /f&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Some games will not run with Retina mode enabled. To disable it:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_CURRENT_USER\Software\Wine\Mac Driver' /v RetinaMode /t REG_SZ /d 'N' /f&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Game compatibility list ==&lt;br /&gt;
Working games:&lt;br /&gt;
* Halo 3 (MCC - No Online due to Easy Anti-Cheat Compatibility)&lt;br /&gt;
* Cyberpunk 2077&lt;br /&gt;
* Final Fantasy VII Remake Intergrade (~50 FPS on High settings at 1080p with M1 Pro)&lt;br /&gt;
* God of War (Works somewhat well on M1 Pro (16gb), wouldn't recommend lesser hardware.)&lt;br /&gt;
* Elden Ring&lt;br /&gt;
* Overwatch 2 &lt;br /&gt;
* SpongeBob SquarePants: The Cosmic Shake&lt;br /&gt;
* Diablo IV [https://www.reddit.com/r/macgaming/comments/14307be/comment/jn7dxzo/?utm_source=reddit&amp;amp;utm_medium=web2x&amp;amp;context=3 ]&lt;br /&gt;
* Hogwarts Legacy&lt;br /&gt;
* Deep Rock Galactic&lt;br /&gt;
* Sonic Omens&lt;br /&gt;
* Sonic P-06&lt;br /&gt;
* Scarlet Nexus&lt;br /&gt;
* Metal Gear Solid V: The Phantom Pain&lt;br /&gt;
* Dyson Sphere Program (some objects and main character weren't visible before)&lt;br /&gt;
* Derail Valley (awesome performance, no missing manuals - in-game objects for train operation - like on CrossOver)&lt;br /&gt;
* Spider-Man (2018)&lt;br /&gt;
* Spider-Man Miles Morales - ''requires Windows ver fix''&lt;br /&gt;
* Warframe - ''To get installer/launcher working add dwrite (disabled) to library overrides in winecfg''&lt;br /&gt;
* HI-Fi RUSH&lt;br /&gt;
* QUBE 2&lt;br /&gt;
* Deceive Inc. - works well if launched without EAC&lt;br /&gt;
* Risk of Rain 2 (does not require `-disable-gpu-skinning` like Crossover 22)&lt;br /&gt;
* Crysis Remastered&lt;br /&gt;
* Cuphead&lt;br /&gt;
* Bloodstained: Ritual of the Night&lt;br /&gt;
* Tetris Effect: Connected - Game window likes to be uncooperative; really doesn't like retina mode, works otherwise&lt;br /&gt;
* Hatsune Miku: Project DIVA Mega Mix+ - works with Retina mode; DivaModLoader and DivaNoSpy recommended; run Steam with WINEDEBUG=-all WINEESYNC=0 WINEDLLOVERRIDES=&amp;quot;dinput8.dll=n,b&amp;quot;; may randomly crash at the title screen (just restart and try again until it works)&lt;br /&gt;
* Kena: Bridge of Spirits&lt;br /&gt;
* Control (DX12 mode, if downloaded from Heroic, needs to be ran by Terminal)&lt;br /&gt;
&lt;br /&gt;
Not working well:&lt;br /&gt;
* Horizon Zero Dawn - slowdown issues&lt;br /&gt;
&lt;br /&gt;
Not working yet:&lt;br /&gt;
* Sea of Thieves - Launches, but the prompt to sign into an xbox live account appears blank and cannot be completed.&lt;br /&gt;
* Red Dead Redemption 2&lt;br /&gt;
* Hitman 3 - launcher works, crash at 0x0000014136dddd hitman3+0x136dddd: int $3&lt;br /&gt;
* Among Us&lt;br /&gt;
* Splitgate - anti-cheat conflict.&lt;br /&gt;
* Rogue Company - anti-cheat conflict.&lt;br /&gt;
* Tiny Tina's Wonderlands - Intro videos play, dragon animation indicating shader precompilation starts, game freezes, eventually crashes.&lt;br /&gt;
* Halo Infinite - Crash on launch&lt;br /&gt;
* Street Fighter 6 - Crash on launch&lt;br /&gt;
* Company of Heroes 3&lt;br /&gt;
* Many (all?) DX9 games&lt;br /&gt;
** 30XX - &amp;quot;Failed to create D3D device&amp;quot; -&amp;gt; crash on launch; this is a rare 64-bit DX9 game&lt;br /&gt;
** Left 4 Dead 2 - Black screen -&amp;gt; crash on launch&lt;br /&gt;
** Killing Floor 1 - Crash on launch&lt;br /&gt;
** Sonic Mania - Crash on launch&lt;br /&gt;
** Mega Man Zero/ZX Legacy Collection - &amp;quot;Failed to create d3d9 device&amp;quot; -&amp;gt; crash on launch&lt;/div&gt;</summary>
		<author><name>Andytizer</name></author>
	</entry>
	<entry>
		<id>https://www.applegamingwiki.com/w/index.php?title=Game_Porting_Toolkit&amp;diff=7608</id>
		<title>Game Porting Toolkit</title>
		<link rel="alternate" type="text/html" href="https://www.applegamingwiki.com/w/index.php?title=Game_Porting_Toolkit&amp;diff=7608"/>
		<updated>2023-06-08T14:00:26Z</updated>

		<summary type="html">&lt;p&gt;Andytizer: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Image|Game Porting Toolkit.png|Released 6th June, 2023 at WWDC23.}}&lt;br /&gt;
&lt;br /&gt;
Game Porting Toolkit is Apple's new translation layer released on 6th June, 2023. Game Porting Toolkit ('''GPTK''') combines Wine with Apple's own D3DMetal which supports DirectX 11 and 12&amp;lt;ref&amp;gt;{{Refurl|url=https://mastodon.gamedev.place/@gavkar/110501451404624870|title=Gokhan Avkarogullari: &amp;quot;@yiningkarlli @aras @romainguy…&amp;quot; - Gamedev Mastodon}}&amp;lt;/ref&amp;gt;. This is less user-friendly method of installing Windows games on Apple Silicon Macs compared to [[CrossOver]] or [[Parallels]], however it unlocks the ability to play many DirectX 12 games. Many more games not work using GPTK, however games that use anti-cheat or aggressive DRM generally don't worker do games that require AVX/AVX 2, e.g. The Last of Us Part I.&lt;br /&gt;
&lt;br /&gt;
== Toolkit install instructions ==&lt;br /&gt;
=== Requirements ===&lt;br /&gt;
*macOS Sonoma should be used, currently it is in beta. You can download the pkg installer from [https://mrmacintosh.com/macos-sonoma-full-installer-database-download-directly-from-apple/ Mr Macintosh blog].&lt;br /&gt;
*macOS Ventura causes large numbers of issues with steamwebhelper.exe crashing so it isn't recommended, use the macOS Sonoma beta.&lt;br /&gt;
*Visit [https://developer.apple.com/downloads Apple Developer Downloads site], these files are now free to download use for any logged in Apple account.&lt;br /&gt;
**Search for Command Line Tools for Xcode 15 beta and download the dmg file, then install it.&lt;br /&gt;
**If you have an old version Xcode installed, remove it.&lt;br /&gt;
**Search for Game Porting Toolkit and download it. Open the dmg file and then run the pkg.&lt;br /&gt;
&lt;br /&gt;
=== Homebrew ===&lt;br /&gt;
Note: if you have ever installed Homebrew before, then it is advisable to remove arm64 Homebrew as this can interfere with this build process. Either use a Homebrew uninstall script or delete the folder &amp;lt;code&amp;gt;/opt/homebrew/bin&amp;lt;/code&amp;gt;. Otherwise, if you prefer to keep both arm64 and x86 versions of brew installed, you may add a &amp;quot;brew-switcher&amp;quot; to your &amp;lt;code&amp;gt;.zshrc&amp;lt;/code&amp;gt; file to allow either version to be used depending on the active architecture. You may follow the steps at the end of this section after installing Brew to achieve this.&lt;br /&gt;
&lt;br /&gt;
Open Terminal (search in Spotlight on macOS).&lt;br /&gt;
&lt;br /&gt;
Install Rosetta:&lt;br /&gt;
&amp;lt;pre&amp;gt;softwareupdate --install-rosetta&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Enter an x86_64 shell to continue the following steps in a Rosetta environment. All subsequent commands should be run within this shell.&lt;br /&gt;
&amp;lt;pre&amp;gt;arch -x86_64 zsh&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Install the x86_64 version of Homebrew if you don't already have it.&lt;br /&gt;
&amp;lt;pre&amp;gt;/bin/bash -c &amp;quot;$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)&amp;quot;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Make sure the brew command is on your path:&lt;br /&gt;
&amp;lt;pre&amp;gt;which brew&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If this command does not print &amp;lt;code&amp;gt;/usr/local/bin/brew&amp;lt;/code&amp;gt;, you should use this command:&lt;br /&gt;
&amp;lt;pre&amp;gt;export PATH=/usr/local/bin:${PATH}&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Fixbox|description=Optionally retain both arm64 and x86 versions of Brew|ref=|collapsed=yes|fix=&lt;br /&gt;
(Optional) If you want to have both arm64 and x86 versions of Brew installed, begin by editing your &amp;lt;code&amp;gt;.zshrc&amp;lt;/code&amp;gt; file:&lt;br /&gt;
&amp;lt;pre&amp;gt;nano ~/.zshrc&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Scroll down (by using the arrow keys or Control + V) to the bottom of the file, and paste the following script:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
if [ &amp;quot;$(arch)&amp;quot; = &amp;quot;arm64&amp;quot; ]; then&lt;br /&gt;
    eval &amp;quot;$(/opt/homebrew/bin/brew shellenv)&amp;quot;&lt;br /&gt;
else&lt;br /&gt;
    eval &amp;quot;$(/usr/local/bin/brew shellenv)&amp;quot;&lt;br /&gt;
fi&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You may now restart your terminal and use the following command to return to an x86_64 shell:&lt;br /&gt;
&amp;lt;pre&amp;gt;arch -x86_64 zsh&amp;lt;/pre&amp;gt;&lt;br /&gt;
Your shell will now select the right installation of Brew, depending on your architecture.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=== Build ===&lt;br /&gt;
Run this command to download Apple tap:&lt;br /&gt;
&amp;lt;pre&amp;gt;brew tap apple/apple http://github.com/apple/homebrew-apple&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Install the game-porting-toolkit formula. This formula downloads and compiles several large software projects. How long this takes will depend on the speed of your computer. It can take over 1 hour to complete depending on the speed of your Mac.&lt;br /&gt;
&amp;lt;pre&amp;gt;brew -v install apple/apple/game-porting-toolkit&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If during installation you see an error such as '''“Error: game-porting-toolkit: unknown or unsupported macOS version: :dunno”, your version of Homebrew doesn’t have macOS Sonoma support. Update to the latest version of Homebrew and try again.'''&lt;br /&gt;
&amp;lt;pre&amp;gt;brew update brew -v install apple/apple/game-porting-toolkit&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Wine prefix ===&lt;br /&gt;
A Wine prefix contains a virtual C: drive. You will install the toolkit and your game into this virtual C: drive. Run the following command to create a new Wine prefix named my-game-prefix in your home directory.&lt;br /&gt;
&amp;lt;pre&amp;gt;WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 winecfg&amp;lt;/pre&amp;gt;&lt;br /&gt;
*A “Wine configuration” window should appear on your screen.&lt;br /&gt;
*Change the version of Windows to Windows 10.&lt;br /&gt;
*Choose Apply and then OK to exit winecfg.&lt;br /&gt;
&lt;br /&gt;
If the “Wine configuration” window does not appear, and no new icon appears in the Dock, verify that you have correctly installed the x86_64 version of Homebrew as well as the game-porting-toolkit formula.&lt;br /&gt;
&lt;br /&gt;
=== Preparing the toolkit ===&lt;br /&gt;
Make sure the Game Porting Toolkit dmg downloaded earlier is mounted at /Volumes/Game Porting Toolkit-1.0. Use this script to copy the Game Porting Toolkit library directory into Wine’s library directory.&lt;br /&gt;
&amp;lt;pre&amp;gt;ditto /Volumes/Game\ Porting\ Toolkit-1.0/lib/ `brew --prefix game-porting-toolkit`/lib/&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Put the 3 scripts from the Game Porting Toolkit DMG into here &amp;lt;code&amp;gt;/usr/local/bin&amp;lt;/code&amp;gt; using this command:&lt;br /&gt;
&amp;lt;pre&amp;gt;cp /Volumes/Game\ Porting\ Toolkit*/gameportingtoolkit* /usr/local/bin&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now you are ready to install a launcher or individual Windows games, see below.&lt;br /&gt;
&lt;br /&gt;
== Steam ==&lt;br /&gt;
Download the [https://cdn.cloudflare.steamstatic.com/client/installer/SteamSetup.exe Windows version of Steam] and place in your Downloads folder.&lt;br /&gt;
&lt;br /&gt;
'''Install Steam'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix ~/Downloads/SteamSetup.exe&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Run Steam'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix 'C:\Program Files (x86)/Steam/steam.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Log into Steam'''&lt;br /&gt;
&lt;br /&gt;
A common issue is that Steam will present with a blank black window.&lt;br /&gt;
&lt;br /&gt;
Alternate way of launching Steam (after installing):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
MTL_HUD_ENABLED=1 WINEESYNC=1 WINEPREFIX=~/my-game-prefix /usr/local/Cellar/game-porting-toolkit/1.0/bin/wine64 'C:\Program Files (x86)\Steam\steam.exe'&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If this continues then close the Terminal window and then re-open and try again, repeat until the login screen opens. Now you should be able to download and launch Windows games through Steam.&lt;br /&gt;
&lt;br /&gt;
== Battle.net ==&lt;br /&gt;
Download the [https://download.battle.net/en-gb/?platform=windows Windows version of Battle.net].&lt;br /&gt;
&lt;br /&gt;
Make a new Wineprefix for Battle.net - we will refer to this as battle-net from now:&lt;br /&gt;
&amp;lt;pre&amp;gt;WINEPREFIX=~/battle-net `brew --prefix game-porting-toolkit`/bin/wine64 winecfg&amp;lt;/pre&amp;gt;&lt;br /&gt;
*A “Wine configuration” window should appear on your screen.&lt;br /&gt;
*Change the version of Windows to &amp;lt;code&amp;gt;Windows 10&amp;lt;/code&amp;gt;.&lt;br /&gt;
*Choose Apply and then OK to exit winecfg.&lt;br /&gt;
&lt;br /&gt;
'''Run Battle.net launcher'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/battle-net ~/Downloads/Battle.net-Setup.exe&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Be aware that there is an issue launching Battle.net once installed, the only current way to re-login is to 'install' the launcher again. &lt;br /&gt;
&lt;br /&gt;
Start individual game without the launcher using this command:&lt;br /&gt;
&amp;lt;pre&amp;gt;arch -x86_64 gameportingtoolkit-no-hud ~/battle-net 'C:\Program Files (x86)\Diablo IV\Diablo IV Launcher.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Epic and GOG.com support ==&lt;br /&gt;
This is particularly useful because '''as it currently stands, the real Epic Games Launcher fails to install under the Game Porting Toolkit'''. Heroic supports Epic and GOG.com games.&lt;br /&gt;
&lt;br /&gt;
* Install the [https://github.com/Heroic-Games-Launcher/HeroicGamesLauncher/releases native macOS Heroic Games Launcher] or from Homebrew.&lt;br /&gt;
* Open Heroic, and log into your Epic Games and/or GOG.com account.&lt;br /&gt;
* Go to the &amp;quot;Wine Manager&amp;quot; and install a '''numbered''' version of Wine, such that it won't auto update- we are going to modify it.&lt;br /&gt;
** At the time of writing this, the newest numbered version of Wine-Crossover is &amp;lt;code&amp;gt;Wine-Crossover-Wine-22.1.0&amp;lt;/code&amp;gt;&lt;br /&gt;
* Press the folder icon that appears after installing it to open the directory containing Heroic's Wine installations.&lt;br /&gt;
* Right-click on the version of Wine you just installed and press &amp;quot;Show Package Contents&amp;quot;.&lt;br /&gt;
* Open this directory in the Terminal.&lt;br /&gt;
** If you have &amp;quot;OpenInTerminal&amp;quot; this is one button, otherwise press &amp;quot;Show Path Bar&amp;quot; and navigate where it says with &amp;quot;cd&amp;quot;.&lt;br /&gt;
** It should be something like &amp;lt;code&amp;gt;cd ~/Library/Application Support/heroic/tools/wine/Wine-crossover-wine-22.1.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
* &amp;lt;pre&amp;gt;cd Contents/MacOS&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Remove the existing Wine: &amp;lt;pre&amp;gt;rm wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Create a symlink to Game Porting Toolkit's Wine: &lt;br /&gt;
** If using Game Porting Toolkit Wineprefix: &amp;lt;pre&amp;gt;ln -s `/usr/local/bin/brew --prefix game-porting-toolkit`/bin/wine64 wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
** If using Whisky: &amp;lt;pre&amp;gt;ln -s /Applications/Whisky.app/Contents/Resources/Libraries/Wine/bin/wine64 wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
* &amp;lt;pre&amp;gt;cd ../Resources&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Remove the existing Wine: &amp;lt;pre&amp;gt;rm -rfv wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Create a symlink to Game Porting Toolkit's Wine&lt;br /&gt;
** If using Game Porting Toolkit Wineprefix: &amp;lt;pre&amp;gt;ln -s `/usr/local/bin/brew --prefix game-porting-toolkit` wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
** If using Whisky: &amp;lt;pre&amp;gt;ln -s /Applications/Whisky.app/Contents/Resources/Libraries/Wine wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
* We are now done with Terminal. Install any games you want to try playing.&lt;br /&gt;
* Select the game you want to play, and press the settings button in the top-right.&lt;br /&gt;
* Make sure the version of Wine you just downloaded and modified is selected.&lt;br /&gt;
* Make sure your Game Porting Toolkit Wine Prefix is selected. If you followed Apple's guide this is &amp;lt;code&amp;gt;/Users/you/my-game-prefix&amp;lt;/code&amp;gt;.&lt;br /&gt;
* If you Open the &amp;quot;Other&amp;quot; section you can also add any environment variables you want like &amp;lt;code&amp;gt;WINEESYNC=1&amp;quot;&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;&amp;quot;MTL_HUD_ENABLED=1&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
* Close the settings and try running the game.&lt;br /&gt;
&lt;br /&gt;
== Commands ==&lt;br /&gt;
Installing individual exe games: open your Wine prefix’s virtual C: drive in Finder (open ~/my-game-prefix/drive_c) and copy your game into an appropriate subdirectory.&lt;br /&gt;
&lt;br /&gt;
'''A. Standard launching'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix 'C:\Program Files (x86)\Steam\steam.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This launches the given Windows game binary with a visible extended Metal Performance HUD and filters logging to output from the Game Porting Toolkit.&lt;br /&gt;
&lt;br /&gt;
'''B. Launching without a HUD'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit-no-hud ~/my-game-prefix 'C:\Program Files (x86)\Steam\steam.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''C. Launching with Wine ESYNC disabled'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit-no-esync ~/my-game-prefix 'C:\Program Files (x86)\Steam\steam.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To enter Winecfg:&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix winecfg&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Shortcut ==&lt;br /&gt;
You can make a shortcut for Steam for example by using macOS built-in Automator app.&lt;br /&gt;
*Open Automator.&lt;br /&gt;
*Select New Application.&lt;br /&gt;
*In the 2nd column select Run Shell Script.&lt;br /&gt;
*Copy and paste this code into the box:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/zsh&lt;br /&gt;
&lt;br /&gt;
export PATH=&amp;quot;/usr/local/bin:${PATH}&amp;quot;&lt;br /&gt;
&lt;br /&gt;
arch -x86_64 gameportingtoolkit ~/my-game-prefix 'C:\Program Files (x86)\Steam\steam.exe'&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the shortcut somewhere e.g. Applications.&lt;br /&gt;
*Above shortcut can be customised to any Wineprefix or game.&lt;br /&gt;
*Add an icon by selecting the shortcut, pressing {{key|cmd|I}} to Get Info, then dragging and dropping a PNG file onto the top left of the window.&lt;br /&gt;
&lt;br /&gt;
== Logging ==&lt;br /&gt;
The provided bin/gameportingtoolkit* scripts can be copied onto your path to facilitate different forms of logging and launching. You can run these scripts from any shell; you don’t need to switch to the Rosetta environment first.&lt;br /&gt;
&lt;br /&gt;
Logging output will appear in the Terminal window in which you launch your game as well as the system log, which can be viewed with the Console app found in Applications ▸ Utilities. Log messages from the Game Porting Toolkit are prefixed with D3DM. By default the gameportingtoolkit* scripts will filter to just the D3DM-prefixed messages.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
'''Steam login black screen'''&lt;br /&gt;
&lt;br /&gt;
Close the Terminal window and then reopen and retry the command, repeat several times.&lt;br /&gt;
&lt;br /&gt;
Alternate way of launching Steam (after installing):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
MTL_HUD_ENABLED=1 WINEESYNC=1 WINEPREFIX=&amp;lt;path to the Wine bottle you set up&amp;gt; /usr/local/Cellar/game-porting-toolkit/1.0/bin/wine64 'C:\Program Files (x86)/Steam/steam.exe'&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If still not working then try using [[CrossOver]] and create a Steam bottle, then redirect this WINEPREFIX to that bottle:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=&amp;quot;/Users/[username]/Library/Application Support/CrossOver/Bottles/Steam/&amp;quot; &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Steam crashes straight after opening'''&lt;br /&gt;
&lt;br /&gt;
Disconnect any external monitors.&lt;br /&gt;
&lt;br /&gt;
'''Battle.net launcher won't re-launch'''&lt;br /&gt;
&lt;br /&gt;
Re-install the launcher to reopen, no other fix at the moment.&lt;br /&gt;
&lt;br /&gt;
'''My game won’t run because it thinks the version of Windows is too old. Some games detect specific minimum versions of Windows and need to be updated.''' Use this script to update your wineprefix with build 19042 which should work for most games e.g. Spider-Man Remastered.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion' /v CurrentBuild /t REG_SZ /d 19042 /f&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion' /v CurrentBuildNumber /t REG_SZ /d 19042 /f&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wineserver -k&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''steamwebhelper.exe crashes'''&lt;br /&gt;
&lt;br /&gt;
This is caused by Steam being run through macOS Ventura or below, upgrade to macOS Sonoma.&lt;br /&gt;
&lt;br /&gt;
'''My game won't run and crashes with an invalid instruction'''&lt;br /&gt;
&lt;br /&gt;
AVX and AVX2 games are not supported by Apple's arm64 chipset.&lt;br /&gt;
&lt;br /&gt;
'''My game won't run because its anti-cheat or DRM software is incompatible with Wine translation.'''&lt;br /&gt;
&lt;br /&gt;
Likely there will be no fixes for any games that use anti-cheat, e.g. Easy Anti Cheat. Some games have workarounds e.g. Elden Ring. Other games that use say Denuvo may also be incompatible until that DRM is removed by the game's developer.&lt;br /&gt;
&lt;br /&gt;
'''My game won’t run because it requires Mono, .NET, or the MSVCRT runtime.'''&lt;br /&gt;
&lt;br /&gt;
The game porting toolkit’s evaluation environment does not pre-install these runtime support packages. If your game makes use of one of these packages, consider searching for and downloading appropriate installers (.exe or .msi) and installing them to your evaluation environment. Additional runtime installers can be run on your environment by just launching the installer and following its installation instructions:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 &amp;lt;some-installer.exe&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
And .MSI packages can be installed by launching the Windows uninstaller application and choosing to install a downloaded .msi package:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 uninstaller&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Controller issues'''&lt;br /&gt;
&lt;br /&gt;
Issues may be fixed by enrolling into the Steam beta.&lt;br /&gt;
&lt;br /&gt;
'''My game looks pixelated and the display resolution is limited'''&lt;br /&gt;
&lt;br /&gt;
Enable Retina (high resolution) mode:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_CURRENT_USER\Software\Wine\Mac Driver' /v RetinaMode /t REG_SZ /d 'Y' /f&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Some games will not run with Retina mode enabled. To disable it:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_CURRENT_USER\Software\Wine\Mac Driver' /v RetinaMode /t REG_SZ /d 'N' /f&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Game compatibility list ==&lt;br /&gt;
Working games:&lt;br /&gt;
* Halo 3 (MCC - No Online due to Easy Anti-Cheat Compatibility)&lt;br /&gt;
* Cyberpunk 2077&lt;br /&gt;
* Final Fantasy VII Remake Intergrade (~50 FPS on High settings at 1080p with M1 Pro)&lt;br /&gt;
* God of War (Works somewhat well on M1 Pro (16gb), wouldn't recommend lesser hardware.)&lt;br /&gt;
* Elden Ring&lt;br /&gt;
* Overwatch 2 &lt;br /&gt;
* SpongeBob SquarePants: The Cosmic Shake&lt;br /&gt;
* Diablo IV [https://www.reddit.com/r/macgaming/comments/14307be/comment/jn7dxzo/?utm_source=reddit&amp;amp;utm_medium=web2x&amp;amp;context=3 ]&lt;br /&gt;
* Hogwarts Legacy&lt;br /&gt;
* Deep Rock Galactic&lt;br /&gt;
* Sonic Omens&lt;br /&gt;
* Sonic P-06&lt;br /&gt;
* Scarlet Nexus&lt;br /&gt;
* Metal Gear Solid V: The Phantom Pain&lt;br /&gt;
* Dyson Sphere Program (some objects and main character weren't visible before)&lt;br /&gt;
* Derail Valley (awesome performance, no missing manuals - in-game objects for train operation - like on CrossOver)&lt;br /&gt;
* Spider-Man (2018)&lt;br /&gt;
* Spider-Man Miles Morales - ''requires Windows ver fix''&lt;br /&gt;
* Warframe - ''To get installer/launcher working add dwrite (disabled) to library overrides in winecfg''&lt;br /&gt;
* HI-Fi RUSH&lt;br /&gt;
* QUBE 2&lt;br /&gt;
* Deceive Inc. - works well if launched without EAC&lt;br /&gt;
* Risk of Rain 2 (does not require `-disable-gpu-skinning` like Crossover 22)&lt;br /&gt;
* Crysis Remastered&lt;br /&gt;
* Cuphead&lt;br /&gt;
* Bloodstained: Ritual of the Night&lt;br /&gt;
* Tetris Effect: Connected - Game window likes to be uncooperative; really doesn't like retina mode, works otherwise&lt;br /&gt;
* Hatsune Miku: Project DIVA Mega Mix+ - works with Retina mode; DivaModLoader and DivaNoSpy recommended; run Steam with WINEDEBUG=-all WINEESYNC=0 WINEDLLOVERRIDES=&amp;quot;dinput8.dll=n,b&amp;quot;; may randomly crash at the title screen (just restart and try again until it works)&lt;br /&gt;
* Kena: Bridge of Spirits&lt;br /&gt;
* Control (DX12 mode, if downloaded from Heroic, needs to be ran by Terminal)&lt;br /&gt;
&lt;br /&gt;
Not working well:&lt;br /&gt;
* Horizon Zero Dawn - slowdown issues&lt;br /&gt;
&lt;br /&gt;
Not working yet:&lt;br /&gt;
* Sea of Thieves - Launches, but the prompt to sign into an xbox live account appears blank and cannot be completed.&lt;br /&gt;
* Red Dead Redemption 2&lt;br /&gt;
* Hitman 3 - launcher works, crash at 0x0000014136dddd hitman3+0x136dddd: int $3&lt;br /&gt;
* Among Us&lt;br /&gt;
* Splitgate - anti-cheat conflict.&lt;br /&gt;
* Rogue Company - anti-cheat conflict.&lt;br /&gt;
* Tiny Tina's Wonderlands - Intro videos play, dragon animation indicating shader precompilation starts, game freezes, eventually crashes.&lt;br /&gt;
* Halo Infinite - Crash on launch&lt;br /&gt;
* Street Fighter 6 - Crash on launch&lt;br /&gt;
* Company of Heroes 3&lt;br /&gt;
* Many (all?) DX9 games&lt;br /&gt;
** 30XX - &amp;quot;Failed to create D3D device&amp;quot; -&amp;gt; crash on launch; this is a rare 64-bit DX9 game&lt;br /&gt;
** Left 4 Dead 2 - Black screen -&amp;gt; crash on launch&lt;br /&gt;
** Killing Floor 1 - Crash on launch&lt;br /&gt;
** Sonic Mania - Crash on launch&lt;br /&gt;
** Mega Man Zero/ZX Legacy Collection - &amp;quot;Failed to create d3d9 device&amp;quot; -&amp;gt; crash on launch&lt;/div&gt;</summary>
		<author><name>Andytizer</name></author>
	</entry>
	<entry>
		<id>https://www.applegamingwiki.com/w/index.php?title=Game_Porting_Toolkit&amp;diff=7607</id>
		<title>Game Porting Toolkit</title>
		<link rel="alternate" type="text/html" href="https://www.applegamingwiki.com/w/index.php?title=Game_Porting_Toolkit&amp;diff=7607"/>
		<updated>2023-06-08T13:59:46Z</updated>

		<summary type="html">&lt;p&gt;Andytizer: Image&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Image|Game Porting Toolkit.png}}&lt;br /&gt;
&lt;br /&gt;
Game Porting Toolkit is Apple's new translation layer released on 6th June, 2023. Game Porting Toolkit ('''GPTK''') combines Wine with Apple's own D3DMetal which supports DirectX 11 and 12&amp;lt;ref&amp;gt;{{Refurl|url=https://mastodon.gamedev.place/@gavkar/110501451404624870|title=Gokhan Avkarogullari: &amp;quot;@yiningkarlli @aras @romainguy…&amp;quot; - Gamedev Mastodon}}&amp;lt;/ref&amp;gt;. This is less user-friendly method of installing Windows games on Apple Silicon Macs compared to [[CrossOver]] or [[Parallels]], however it unlocks the ability to play many DirectX 12 games. Many more games not work using GPTK, however games that use anti-cheat or aggressive DRM generally don't worker do games that require AVX/AVX 2, e.g. The Last of Us Part I.&lt;br /&gt;
&lt;br /&gt;
== Toolkit install instructions ==&lt;br /&gt;
=== Requirements ===&lt;br /&gt;
*macOS Sonoma should be used, currently it is in beta. You can download the pkg installer from [https://mrmacintosh.com/macos-sonoma-full-installer-database-download-directly-from-apple/ Mr Macintosh blog].&lt;br /&gt;
*macOS Ventura causes large numbers of issues with steamwebhelper.exe crashing so it isn't recommended, use the macOS Sonoma beta.&lt;br /&gt;
*Visit [https://developer.apple.com/downloads Apple Developer Downloads site], these files are now free to download use for any logged in Apple account.&lt;br /&gt;
**Search for Command Line Tools for Xcode 15 beta and download the dmg file, then install it.&lt;br /&gt;
**If you have an old version Xcode installed, remove it.&lt;br /&gt;
**Search for Game Porting Toolkit and download it. Open the dmg file and then run the pkg.&lt;br /&gt;
&lt;br /&gt;
=== Homebrew ===&lt;br /&gt;
Note: if you have ever installed Homebrew before, then it is advisable to remove arm64 Homebrew as this can interfere with this build process. Either use a Homebrew uninstall script or delete the folder &amp;lt;code&amp;gt;/opt/homebrew/bin&amp;lt;/code&amp;gt;. Otherwise, if you prefer to keep both arm64 and x86 versions of brew installed, you may add a &amp;quot;brew-switcher&amp;quot; to your &amp;lt;code&amp;gt;.zshrc&amp;lt;/code&amp;gt; file to allow either version to be used depending on the active architecture. You may follow the steps at the end of this section after installing Brew to achieve this.&lt;br /&gt;
&lt;br /&gt;
Open Terminal (search in Spotlight on macOS).&lt;br /&gt;
&lt;br /&gt;
Install Rosetta:&lt;br /&gt;
&amp;lt;pre&amp;gt;softwareupdate --install-rosetta&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Enter an x86_64 shell to continue the following steps in a Rosetta environment. All subsequent commands should be run within this shell.&lt;br /&gt;
&amp;lt;pre&amp;gt;arch -x86_64 zsh&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Install the x86_64 version of Homebrew if you don't already have it.&lt;br /&gt;
&amp;lt;pre&amp;gt;/bin/bash -c &amp;quot;$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)&amp;quot;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Make sure the brew command is on your path:&lt;br /&gt;
&amp;lt;pre&amp;gt;which brew&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If this command does not print &amp;lt;code&amp;gt;/usr/local/bin/brew&amp;lt;/code&amp;gt;, you should use this command:&lt;br /&gt;
&amp;lt;pre&amp;gt;export PATH=/usr/local/bin:${PATH}&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Fixbox|description=Optionally retain both arm64 and x86 versions of Brew|ref=|collapsed=yes|fix=&lt;br /&gt;
(Optional) If you want to have both arm64 and x86 versions of Brew installed, begin by editing your &amp;lt;code&amp;gt;.zshrc&amp;lt;/code&amp;gt; file:&lt;br /&gt;
&amp;lt;pre&amp;gt;nano ~/.zshrc&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Scroll down (by using the arrow keys or Control + V) to the bottom of the file, and paste the following script:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
if [ &amp;quot;$(arch)&amp;quot; = &amp;quot;arm64&amp;quot; ]; then&lt;br /&gt;
    eval &amp;quot;$(/opt/homebrew/bin/brew shellenv)&amp;quot;&lt;br /&gt;
else&lt;br /&gt;
    eval &amp;quot;$(/usr/local/bin/brew shellenv)&amp;quot;&lt;br /&gt;
fi&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You may now restart your terminal and use the following command to return to an x86_64 shell:&lt;br /&gt;
&amp;lt;pre&amp;gt;arch -x86_64 zsh&amp;lt;/pre&amp;gt;&lt;br /&gt;
Your shell will now select the right installation of Brew, depending on your architecture.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=== Build ===&lt;br /&gt;
Run this command to download Apple tap:&lt;br /&gt;
&amp;lt;pre&amp;gt;brew tap apple/apple http://github.com/apple/homebrew-apple&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Install the game-porting-toolkit formula. This formula downloads and compiles several large software projects. How long this takes will depend on the speed of your computer. It can take over 1 hour to complete depending on the speed of your Mac.&lt;br /&gt;
&amp;lt;pre&amp;gt;brew -v install apple/apple/game-porting-toolkit&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If during installation you see an error such as '''“Error: game-porting-toolkit: unknown or unsupported macOS version: :dunno”, your version of Homebrew doesn’t have macOS Sonoma support. Update to the latest version of Homebrew and try again.'''&lt;br /&gt;
&amp;lt;pre&amp;gt;brew update brew -v install apple/apple/game-porting-toolkit&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Wine prefix ===&lt;br /&gt;
A Wine prefix contains a virtual C: drive. You will install the toolkit and your game into this virtual C: drive. Run the following command to create a new Wine prefix named my-game-prefix in your home directory.&lt;br /&gt;
&amp;lt;pre&amp;gt;WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 winecfg&amp;lt;/pre&amp;gt;&lt;br /&gt;
*A “Wine configuration” window should appear on your screen.&lt;br /&gt;
*Change the version of Windows to Windows 10.&lt;br /&gt;
*Choose Apply and then OK to exit winecfg.&lt;br /&gt;
&lt;br /&gt;
If the “Wine configuration” window does not appear, and no new icon appears in the Dock, verify that you have correctly installed the x86_64 version of Homebrew as well as the game-porting-toolkit formula.&lt;br /&gt;
&lt;br /&gt;
=== Preparing the toolkit ===&lt;br /&gt;
Make sure the Game Porting Toolkit dmg downloaded earlier is mounted at /Volumes/Game Porting Toolkit-1.0. Use this script to copy the Game Porting Toolkit library directory into Wine’s library directory.&lt;br /&gt;
&amp;lt;pre&amp;gt;ditto /Volumes/Game\ Porting\ Toolkit-1.0/lib/ `brew --prefix game-porting-toolkit`/lib/&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Put the 3 scripts from the Game Porting Toolkit DMG into here &amp;lt;code&amp;gt;/usr/local/bin&amp;lt;/code&amp;gt; using this command:&lt;br /&gt;
&amp;lt;pre&amp;gt;cp /Volumes/Game\ Porting\ Toolkit*/gameportingtoolkit* /usr/local/bin&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now you are ready to install a launcher or individual Windows games, see below.&lt;br /&gt;
&lt;br /&gt;
== Steam ==&lt;br /&gt;
Download the [https://cdn.cloudflare.steamstatic.com/client/installer/SteamSetup.exe Windows version of Steam] and place in your Downloads folder.&lt;br /&gt;
&lt;br /&gt;
'''Install Steam'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix ~/Downloads/SteamSetup.exe&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Run Steam'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix 'C:\Program Files (x86)/Steam/steam.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Log into Steam'''&lt;br /&gt;
&lt;br /&gt;
A common issue is that Steam will present with a blank black window.&lt;br /&gt;
&lt;br /&gt;
Alternate way of launching Steam (after installing):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
MTL_HUD_ENABLED=1 WINEESYNC=1 WINEPREFIX=~/my-game-prefix /usr/local/Cellar/game-porting-toolkit/1.0/bin/wine64 'C:\Program Files (x86)\Steam\steam.exe'&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If this continues then close the Terminal window and then re-open and try again, repeat until the login screen opens. Now you should be able to download and launch Windows games through Steam.&lt;br /&gt;
&lt;br /&gt;
== Battle.net ==&lt;br /&gt;
Download the [https://download.battle.net/en-gb/?platform=windows Windows version of Battle.net].&lt;br /&gt;
&lt;br /&gt;
Make a new Wineprefix for Battle.net - we will refer to this as battle-net from now:&lt;br /&gt;
&amp;lt;pre&amp;gt;WINEPREFIX=~/battle-net `brew --prefix game-porting-toolkit`/bin/wine64 winecfg&amp;lt;/pre&amp;gt;&lt;br /&gt;
*A “Wine configuration” window should appear on your screen.&lt;br /&gt;
*Change the version of Windows to &amp;lt;code&amp;gt;Windows 10&amp;lt;/code&amp;gt;.&lt;br /&gt;
*Choose Apply and then OK to exit winecfg.&lt;br /&gt;
&lt;br /&gt;
'''Run Battle.net launcher'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/battle-net ~/Downloads/Battle.net-Setup.exe&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Be aware that there is an issue launching Battle.net once installed, the only current way to re-login is to 'install' the launcher again. &lt;br /&gt;
&lt;br /&gt;
Start individual game without the launcher using this command:&lt;br /&gt;
&amp;lt;pre&amp;gt;arch -x86_64 gameportingtoolkit-no-hud ~/battle-net 'C:\Program Files (x86)\Diablo IV\Diablo IV Launcher.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Epic and GOG.com support ==&lt;br /&gt;
This is particularly useful because '''as it currently stands, the real Epic Games Launcher fails to install under the Game Porting Toolkit'''. Heroic supports Epic and GOG.com games.&lt;br /&gt;
&lt;br /&gt;
* Install the [https://github.com/Heroic-Games-Launcher/HeroicGamesLauncher/releases native macOS Heroic Games Launcher] or from Homebrew.&lt;br /&gt;
* Open Heroic, and log into your Epic Games and/or GOG.com account.&lt;br /&gt;
* Go to the &amp;quot;Wine Manager&amp;quot; and install a '''numbered''' version of Wine, such that it won't auto update- we are going to modify it.&lt;br /&gt;
** At the time of writing this, the newest numbered version of Wine-Crossover is &amp;lt;code&amp;gt;Wine-Crossover-Wine-22.1.0&amp;lt;/code&amp;gt;&lt;br /&gt;
* Press the folder icon that appears after installing it to open the directory containing Heroic's Wine installations.&lt;br /&gt;
* Right-click on the version of Wine you just installed and press &amp;quot;Show Package Contents&amp;quot;.&lt;br /&gt;
* Open this directory in the Terminal.&lt;br /&gt;
** If you have &amp;quot;OpenInTerminal&amp;quot; this is one button, otherwise press &amp;quot;Show Path Bar&amp;quot; and navigate where it says with &amp;quot;cd&amp;quot;.&lt;br /&gt;
** It should be something like &amp;lt;code&amp;gt;cd ~/Library/Application Support/heroic/tools/wine/Wine-crossover-wine-22.1.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
* &amp;lt;pre&amp;gt;cd Contents/MacOS&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Remove the existing Wine: &amp;lt;pre&amp;gt;rm wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Create a symlink to Game Porting Toolkit's Wine: &lt;br /&gt;
** If using Game Porting Toolkit Wineprefix: &amp;lt;pre&amp;gt;ln -s `/usr/local/bin/brew --prefix game-porting-toolkit`/bin/wine64 wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
** If using Whisky: &amp;lt;pre&amp;gt;ln -s /Applications/Whisky.app/Contents/Resources/Libraries/Wine/bin/wine64 wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
* &amp;lt;pre&amp;gt;cd ../Resources&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Remove the existing Wine: &amp;lt;pre&amp;gt;rm -rfv wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Create a symlink to Game Porting Toolkit's Wine&lt;br /&gt;
** If using Game Porting Toolkit Wineprefix: &amp;lt;pre&amp;gt;ln -s `/usr/local/bin/brew --prefix game-porting-toolkit` wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
** If using Whisky: &amp;lt;pre&amp;gt;ln -s /Applications/Whisky.app/Contents/Resources/Libraries/Wine wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
* We are now done with Terminal. Install any games you want to try playing.&lt;br /&gt;
* Select the game you want to play, and press the settings button in the top-right.&lt;br /&gt;
* Make sure the version of Wine you just downloaded and modified is selected.&lt;br /&gt;
* Make sure your Game Porting Toolkit Wine Prefix is selected. If you followed Apple's guide this is &amp;lt;code&amp;gt;/Users/you/my-game-prefix&amp;lt;/code&amp;gt;.&lt;br /&gt;
* If you Open the &amp;quot;Other&amp;quot; section you can also add any environment variables you want like &amp;lt;code&amp;gt;WINEESYNC=1&amp;quot;&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;&amp;quot;MTL_HUD_ENABLED=1&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
* Close the settings and try running the game.&lt;br /&gt;
&lt;br /&gt;
== Commands ==&lt;br /&gt;
Installing individual exe games: open your Wine prefix’s virtual C: drive in Finder (open ~/my-game-prefix/drive_c) and copy your game into an appropriate subdirectory.&lt;br /&gt;
&lt;br /&gt;
'''A. Standard launching'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix 'C:\Program Files (x86)\Steam\steam.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This launches the given Windows game binary with a visible extended Metal Performance HUD and filters logging to output from the Game Porting Toolkit.&lt;br /&gt;
&lt;br /&gt;
'''B. Launching without a HUD'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit-no-hud ~/my-game-prefix 'C:\Program Files (x86)\Steam\steam.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''C. Launching with Wine ESYNC disabled'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit-no-esync ~/my-game-prefix 'C:\Program Files (x86)\Steam\steam.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To enter Winecfg:&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix winecfg&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Shortcut ==&lt;br /&gt;
You can make a shortcut for Steam for example by using macOS built-in Automator app.&lt;br /&gt;
*Open Automator.&lt;br /&gt;
*Select New Application.&lt;br /&gt;
*In the 2nd column select Run Shell Script.&lt;br /&gt;
*Copy and paste this code into the box:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/zsh&lt;br /&gt;
&lt;br /&gt;
export PATH=&amp;quot;/usr/local/bin:${PATH}&amp;quot;&lt;br /&gt;
&lt;br /&gt;
arch -x86_64 gameportingtoolkit ~/my-game-prefix 'C:\Program Files (x86)\Steam\steam.exe'&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the shortcut somewhere e.g. Applications.&lt;br /&gt;
*Above shortcut can be customised to any Wineprefix or game.&lt;br /&gt;
*Add an icon by selecting the shortcut, pressing {{key|cmd|I}} to Get Info, then dragging and dropping a PNG file onto the top left of the window.&lt;br /&gt;
&lt;br /&gt;
== Logging ==&lt;br /&gt;
The provided bin/gameportingtoolkit* scripts can be copied onto your path to facilitate different forms of logging and launching. You can run these scripts from any shell; you don’t need to switch to the Rosetta environment first.&lt;br /&gt;
&lt;br /&gt;
Logging output will appear in the Terminal window in which you launch your game as well as the system log, which can be viewed with the Console app found in Applications ▸ Utilities. Log messages from the Game Porting Toolkit are prefixed with D3DM. By default the gameportingtoolkit* scripts will filter to just the D3DM-prefixed messages.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
'''Steam login black screen'''&lt;br /&gt;
&lt;br /&gt;
Close the Terminal window and then reopen and retry the command, repeat several times.&lt;br /&gt;
&lt;br /&gt;
Alternate way of launching Steam (after installing):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
MTL_HUD_ENABLED=1 WINEESYNC=1 WINEPREFIX=&amp;lt;path to the Wine bottle you set up&amp;gt; /usr/local/Cellar/game-porting-toolkit/1.0/bin/wine64 'C:\Program Files (x86)/Steam/steam.exe'&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If still not working then try using [[CrossOver]] and create a Steam bottle, then redirect this WINEPREFIX to that bottle:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=&amp;quot;/Users/[username]/Library/Application Support/CrossOver/Bottles/Steam/&amp;quot; &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Steam crashes straight after opening'''&lt;br /&gt;
&lt;br /&gt;
Disconnect any external monitors.&lt;br /&gt;
&lt;br /&gt;
'''Battle.net launcher won't re-launch'''&lt;br /&gt;
&lt;br /&gt;
Re-install the launcher to reopen, no other fix at the moment.&lt;br /&gt;
&lt;br /&gt;
'''My game won’t run because it thinks the version of Windows is too old. Some games detect specific minimum versions of Windows and need to be updated.''' Use this script to update your wineprefix with build 19042 which should work for most games e.g. Spider-Man Remastered.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion' /v CurrentBuild /t REG_SZ /d 19042 /f&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion' /v CurrentBuildNumber /t REG_SZ /d 19042 /f&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wineserver -k&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''steamwebhelper.exe crashes'''&lt;br /&gt;
&lt;br /&gt;
This is caused by Steam being run through macOS Ventura or below, upgrade to macOS Sonoma.&lt;br /&gt;
&lt;br /&gt;
'''My game won't run and crashes with an invalid instruction'''&lt;br /&gt;
&lt;br /&gt;
AVX and AVX2 games are not supported by Apple's arm64 chipset.&lt;br /&gt;
&lt;br /&gt;
'''My game won't run because its anti-cheat or DRM software is incompatible with Wine translation.'''&lt;br /&gt;
&lt;br /&gt;
Likely there will be no fixes for any games that use anti-cheat, e.g. Easy Anti Cheat. Some games have workarounds e.g. Elden Ring. Other games that use say Denuvo may also be incompatible until that DRM is removed by the game's developer.&lt;br /&gt;
&lt;br /&gt;
'''My game won’t run because it requires Mono, .NET, or the MSVCRT runtime.'''&lt;br /&gt;
&lt;br /&gt;
The game porting toolkit’s evaluation environment does not pre-install these runtime support packages. If your game makes use of one of these packages, consider searching for and downloading appropriate installers (.exe or .msi) and installing them to your evaluation environment. Additional runtime installers can be run on your environment by just launching the installer and following its installation instructions:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 &amp;lt;some-installer.exe&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
And .MSI packages can be installed by launching the Windows uninstaller application and choosing to install a downloaded .msi package:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 uninstaller&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Controller issues'''&lt;br /&gt;
&lt;br /&gt;
Issues may be fixed by enrolling into the Steam beta.&lt;br /&gt;
&lt;br /&gt;
'''My game looks pixelated and the display resolution is limited'''&lt;br /&gt;
&lt;br /&gt;
Enable Retina (high resolution) mode:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_CURRENT_USER\Software\Wine\Mac Driver' /v RetinaMode /t REG_SZ /d 'Y' /f&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Some games will not run with Retina mode enabled. To disable it:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_CURRENT_USER\Software\Wine\Mac Driver' /v RetinaMode /t REG_SZ /d 'N' /f&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Game compatibility list ==&lt;br /&gt;
Working games:&lt;br /&gt;
* Halo 3 (MCC - No Online due to Easy Anti-Cheat Compatibility)&lt;br /&gt;
* Cyberpunk 2077&lt;br /&gt;
* Final Fantasy VII Remake Intergrade (~50 FPS on High settings at 1080p with M1 Pro)&lt;br /&gt;
* God of War (Works somewhat well on M1 Pro (16gb), wouldn't recommend lesser hardware.)&lt;br /&gt;
* Elden Ring&lt;br /&gt;
* Overwatch 2 &lt;br /&gt;
* SpongeBob SquarePants: The Cosmic Shake&lt;br /&gt;
* Diablo IV [https://www.reddit.com/r/macgaming/comments/14307be/comment/jn7dxzo/?utm_source=reddit&amp;amp;utm_medium=web2x&amp;amp;context=3 ]&lt;br /&gt;
* Hogwarts Legacy&lt;br /&gt;
* Deep Rock Galactic&lt;br /&gt;
* Sonic Omens&lt;br /&gt;
* Sonic P-06&lt;br /&gt;
* Scarlet Nexus&lt;br /&gt;
* Metal Gear Solid V: The Phantom Pain&lt;br /&gt;
* Dyson Sphere Program (some objects and main character weren't visible before)&lt;br /&gt;
* Derail Valley (awesome performance, no missing manuals - in-game objects for train operation - like on CrossOver)&lt;br /&gt;
* Spider-Man (2018)&lt;br /&gt;
* Spider-Man Miles Morales - ''requires Windows ver fix''&lt;br /&gt;
* Warframe - ''To get installer/launcher working add dwrite (disabled) to library overrides in winecfg''&lt;br /&gt;
* HI-Fi RUSH&lt;br /&gt;
* QUBE 2&lt;br /&gt;
* Deceive Inc. - works well if launched without EAC&lt;br /&gt;
* Risk of Rain 2 (does not require `-disable-gpu-skinning` like Crossover 22)&lt;br /&gt;
* Crysis Remastered&lt;br /&gt;
* Cuphead&lt;br /&gt;
* Bloodstained: Ritual of the Night&lt;br /&gt;
* Tetris Effect: Connected - Game window likes to be uncooperative; really doesn't like retina mode, works otherwise&lt;br /&gt;
* Hatsune Miku: Project DIVA Mega Mix+ - works with Retina mode; DivaModLoader and DivaNoSpy recommended; run Steam with WINEDEBUG=-all WINEESYNC=0 WINEDLLOVERRIDES=&amp;quot;dinput8.dll=n,b&amp;quot;; may randomly crash at the title screen (just restart and try again until it works)&lt;br /&gt;
* Kena: Bridge of Spirits&lt;br /&gt;
* Control (DX12 mode, if downloaded from Heroic, needs to be ran by Terminal)&lt;br /&gt;
&lt;br /&gt;
Not working well:&lt;br /&gt;
* Horizon Zero Dawn - slowdown issues&lt;br /&gt;
&lt;br /&gt;
Not working yet:&lt;br /&gt;
* Sea of Thieves - Launches, but the prompt to sign into an xbox live account appears blank and cannot be completed.&lt;br /&gt;
* Red Dead Redemption 2&lt;br /&gt;
* Hitman 3 - launcher works, crash at 0x0000014136dddd hitman3+0x136dddd: int $3&lt;br /&gt;
* Among Us&lt;br /&gt;
* Splitgate - anti-cheat conflict.&lt;br /&gt;
* Rogue Company - anti-cheat conflict.&lt;br /&gt;
* Tiny Tina's Wonderlands - Intro videos play, dragon animation indicating shader precompilation starts, game freezes, eventually crashes.&lt;br /&gt;
* Halo Infinite - Crash on launch&lt;br /&gt;
* Street Fighter 6 - Crash on launch&lt;br /&gt;
* Company of Heroes 3&lt;br /&gt;
* Many (all?) DX9 games&lt;br /&gt;
** 30XX - &amp;quot;Failed to create D3D device&amp;quot; -&amp;gt; crash on launch; this is a rare 64-bit DX9 game&lt;br /&gt;
** Left 4 Dead 2 - Black screen -&amp;gt; crash on launch&lt;br /&gt;
** Killing Floor 1 - Crash on launch&lt;br /&gt;
** Sonic Mania - Crash on launch&lt;br /&gt;
** Mega Man Zero/ZX Legacy Collection - &amp;quot;Failed to create d3d9 device&amp;quot; -&amp;gt; crash on launch&lt;/div&gt;</summary>
		<author><name>Andytizer</name></author>
	</entry>
	<entry>
		<id>https://www.applegamingwiki.com/w/index.php?title=File:Game_Porting_Toolkit.png&amp;diff=7606</id>
		<title>File:Game Porting Toolkit.png</title>
		<link rel="alternate" type="text/html" href="https://www.applegamingwiki.com/w/index.php?title=File:Game_Porting_Toolkit.png&amp;diff=7606"/>
		<updated>2023-06-08T13:59:25Z</updated>

		<summary type="html">&lt;p&gt;Andytizer: Taken from https://developer.apple.com/videos/play/wwdc2023/10123&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary ==&lt;br /&gt;
Taken from https://developer.apple.com/videos/play/wwdc2023/10123&lt;/div&gt;</summary>
		<author><name>Andytizer</name></author>
	</entry>
	<entry>
		<id>https://www.applegamingwiki.com/w/index.php?title=Game_Porting_Toolkit&amp;diff=7605</id>
		<title>Game Porting Toolkit</title>
		<link rel="alternate" type="text/html" href="https://www.applegamingwiki.com/w/index.php?title=Game_Porting_Toolkit&amp;diff=7605"/>
		<updated>2023-06-08T13:58:54Z</updated>

		<summary type="html">&lt;p&gt;Andytizer: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Image|Game Porting Toolkit.png|}}&lt;br /&gt;
&lt;br /&gt;
Game Porting Toolkit is Apple's new translation layer released on 6th June, 2023. Game Porting Toolkit ('''GPTK''') combines Wine with Apple's own D3DMetal which supports DirectX 11 and 12&amp;lt;ref&amp;gt;{{Refurl|url=https://mastodon.gamedev.place/@gavkar/110501451404624870|title=Gokhan Avkarogullari: &amp;quot;@yiningkarlli @aras @romainguy…&amp;quot; - Gamedev Mastodon}}&amp;lt;/ref&amp;gt;. This is less user-friendly method of installing Windows games on Apple Silicon Macs compared to [[CrossOver]] or [[Parallels]], however it unlocks the ability to play many DirectX 12 games. Many more games not work using GPTK, however games that use anti-cheat or aggressive DRM generally don't worker do games that require AVX/AVX 2, e.g. The Last of Us Part I.&lt;br /&gt;
&lt;br /&gt;
== Toolkit install instructions ==&lt;br /&gt;
=== Requirements ===&lt;br /&gt;
*macOS Sonoma should be used, currently it is in beta. You can download the pkg installer from [https://mrmacintosh.com/macos-sonoma-full-installer-database-download-directly-from-apple/ Mr Macintosh blog].&lt;br /&gt;
*macOS Ventura causes large numbers of issues with steamwebhelper.exe crashing so it isn't recommended, use the macOS Sonoma beta.&lt;br /&gt;
*Visit [https://developer.apple.com/downloads Apple Developer Downloads site], these files are now free to download use for any logged in Apple account.&lt;br /&gt;
**Search for Command Line Tools for Xcode 15 beta and download the dmg file, then install it.&lt;br /&gt;
**If you have an old version Xcode installed, remove it.&lt;br /&gt;
**Search for Game Porting Toolkit and download it. Open the dmg file and then run the pkg.&lt;br /&gt;
&lt;br /&gt;
=== Homebrew ===&lt;br /&gt;
Note: if you have ever installed Homebrew before, then it is advisable to remove arm64 Homebrew as this can interfere with this build process. Either use a Homebrew uninstall script or delete the folder &amp;lt;code&amp;gt;/opt/homebrew/bin&amp;lt;/code&amp;gt;. Otherwise, if you prefer to keep both arm64 and x86 versions of brew installed, you may add a &amp;quot;brew-switcher&amp;quot; to your &amp;lt;code&amp;gt;.zshrc&amp;lt;/code&amp;gt; file to allow either version to be used depending on the active architecture. You may follow the steps at the end of this section after installing Brew to achieve this.&lt;br /&gt;
&lt;br /&gt;
Open Terminal (search in Spotlight on macOS).&lt;br /&gt;
&lt;br /&gt;
Install Rosetta:&lt;br /&gt;
&amp;lt;pre&amp;gt;softwareupdate --install-rosetta&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Enter an x86_64 shell to continue the following steps in a Rosetta environment. All subsequent commands should be run within this shell.&lt;br /&gt;
&amp;lt;pre&amp;gt;arch -x86_64 zsh&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Install the x86_64 version of Homebrew if you don't already have it.&lt;br /&gt;
&amp;lt;pre&amp;gt;/bin/bash -c &amp;quot;$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)&amp;quot;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Make sure the brew command is on your path:&lt;br /&gt;
&amp;lt;pre&amp;gt;which brew&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If this command does not print &amp;lt;code&amp;gt;/usr/local/bin/brew&amp;lt;/code&amp;gt;, you should use this command:&lt;br /&gt;
&amp;lt;pre&amp;gt;export PATH=/usr/local/bin:${PATH}&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Fixbox|description=Optionally retain both arm64 and x86 versions of Brew|ref=|collapsed=yes|fix=&lt;br /&gt;
(Optional) If you want to have both arm64 and x86 versions of Brew installed, begin by editing your &amp;lt;code&amp;gt;.zshrc&amp;lt;/code&amp;gt; file:&lt;br /&gt;
&amp;lt;pre&amp;gt;nano ~/.zshrc&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Scroll down (by using the arrow keys or Control + V) to the bottom of the file, and paste the following script:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
if [ &amp;quot;$(arch)&amp;quot; = &amp;quot;arm64&amp;quot; ]; then&lt;br /&gt;
    eval &amp;quot;$(/opt/homebrew/bin/brew shellenv)&amp;quot;&lt;br /&gt;
else&lt;br /&gt;
    eval &amp;quot;$(/usr/local/bin/brew shellenv)&amp;quot;&lt;br /&gt;
fi&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You may now restart your terminal and use the following command to return to an x86_64 shell:&lt;br /&gt;
&amp;lt;pre&amp;gt;arch -x86_64 zsh&amp;lt;/pre&amp;gt;&lt;br /&gt;
Your shell will now select the right installation of Brew, depending on your architecture.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=== Build ===&lt;br /&gt;
Run this command to download Apple tap:&lt;br /&gt;
&amp;lt;pre&amp;gt;brew tap apple/apple http://github.com/apple/homebrew-apple&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Install the game-porting-toolkit formula. This formula downloads and compiles several large software projects. How long this takes will depend on the speed of your computer. It can take over 1 hour to complete depending on the speed of your Mac.&lt;br /&gt;
&amp;lt;pre&amp;gt;brew -v install apple/apple/game-porting-toolkit&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If during installation you see an error such as '''“Error: game-porting-toolkit: unknown or unsupported macOS version: :dunno”, your version of Homebrew doesn’t have macOS Sonoma support. Update to the latest version of Homebrew and try again.'''&lt;br /&gt;
&amp;lt;pre&amp;gt;brew update brew -v install apple/apple/game-porting-toolkit&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Wine prefix ===&lt;br /&gt;
A Wine prefix contains a virtual C: drive. You will install the toolkit and your game into this virtual C: drive. Run the following command to create a new Wine prefix named my-game-prefix in your home directory.&lt;br /&gt;
&amp;lt;pre&amp;gt;WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 winecfg&amp;lt;/pre&amp;gt;&lt;br /&gt;
*A “Wine configuration” window should appear on your screen.&lt;br /&gt;
*Change the version of Windows to Windows 10.&lt;br /&gt;
*Choose Apply and then OK to exit winecfg.&lt;br /&gt;
&lt;br /&gt;
If the “Wine configuration” window does not appear, and no new icon appears in the Dock, verify that you have correctly installed the x86_64 version of Homebrew as well as the game-porting-toolkit formula.&lt;br /&gt;
&lt;br /&gt;
=== Preparing the toolkit ===&lt;br /&gt;
Make sure the Game Porting Toolkit dmg downloaded earlier is mounted at /Volumes/Game Porting Toolkit-1.0. Use this script to copy the Game Porting Toolkit library directory into Wine’s library directory.&lt;br /&gt;
&amp;lt;pre&amp;gt;ditto /Volumes/Game\ Porting\ Toolkit-1.0/lib/ `brew --prefix game-porting-toolkit`/lib/&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Put the 3 scripts from the Game Porting Toolkit DMG into here &amp;lt;code&amp;gt;/usr/local/bin&amp;lt;/code&amp;gt; using this command:&lt;br /&gt;
&amp;lt;pre&amp;gt;cp /Volumes/Game\ Porting\ Toolkit*/gameportingtoolkit* /usr/local/bin&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now you are ready to install a launcher or individual Windows games, see below.&lt;br /&gt;
&lt;br /&gt;
== Steam ==&lt;br /&gt;
Download the [https://cdn.cloudflare.steamstatic.com/client/installer/SteamSetup.exe Windows version of Steam] and place in your Downloads folder.&lt;br /&gt;
&lt;br /&gt;
'''Install Steam'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix ~/Downloads/SteamSetup.exe&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Run Steam'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix 'C:\Program Files (x86)/Steam/steam.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Log into Steam'''&lt;br /&gt;
&lt;br /&gt;
A common issue is that Steam will present with a blank black window.&lt;br /&gt;
&lt;br /&gt;
Alternate way of launching Steam (after installing):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
MTL_HUD_ENABLED=1 WINEESYNC=1 WINEPREFIX=~/my-game-prefix /usr/local/Cellar/game-porting-toolkit/1.0/bin/wine64 'C:\Program Files (x86)\Steam\steam.exe'&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If this continues then close the Terminal window and then re-open and try again, repeat until the login screen opens. Now you should be able to download and launch Windows games through Steam.&lt;br /&gt;
&lt;br /&gt;
== Battle.net ==&lt;br /&gt;
Download the [https://download.battle.net/en-gb/?platform=windows Windows version of Battle.net].&lt;br /&gt;
&lt;br /&gt;
Make a new Wineprefix for Battle.net - we will refer to this as battle-net from now:&lt;br /&gt;
&amp;lt;pre&amp;gt;WINEPREFIX=~/battle-net `brew --prefix game-porting-toolkit`/bin/wine64 winecfg&amp;lt;/pre&amp;gt;&lt;br /&gt;
*A “Wine configuration” window should appear on your screen.&lt;br /&gt;
*Change the version of Windows to &amp;lt;code&amp;gt;Windows 10&amp;lt;/code&amp;gt;.&lt;br /&gt;
*Choose Apply and then OK to exit winecfg.&lt;br /&gt;
&lt;br /&gt;
'''Run Battle.net launcher'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/battle-net ~/Downloads/Battle.net-Setup.exe&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Be aware that there is an issue launching Battle.net once installed, the only current way to re-login is to 'install' the launcher again. &lt;br /&gt;
&lt;br /&gt;
Start individual game without the launcher using this command:&lt;br /&gt;
&amp;lt;pre&amp;gt;arch -x86_64 gameportingtoolkit-no-hud ~/battle-net 'C:\Program Files (x86)\Diablo IV\Diablo IV Launcher.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Epic and GOG.com support ==&lt;br /&gt;
This is particularly useful because '''as it currently stands, the real Epic Games Launcher fails to install under the Game Porting Toolkit'''. Heroic supports Epic and GOG.com games.&lt;br /&gt;
&lt;br /&gt;
* Install the [https://github.com/Heroic-Games-Launcher/HeroicGamesLauncher/releases native macOS Heroic Games Launcher] or from Homebrew.&lt;br /&gt;
* Open Heroic, and log into your Epic Games and/or GOG.com account.&lt;br /&gt;
* Go to the &amp;quot;Wine Manager&amp;quot; and install a '''numbered''' version of Wine, such that it won't auto update- we are going to modify it.&lt;br /&gt;
** At the time of writing this, the newest numbered version of Wine-Crossover is &amp;lt;code&amp;gt;Wine-Crossover-Wine-22.1.0&amp;lt;/code&amp;gt;&lt;br /&gt;
* Press the folder icon that appears after installing it to open the directory containing Heroic's Wine installations.&lt;br /&gt;
* Right-click on the version of Wine you just installed and press &amp;quot;Show Package Contents&amp;quot;.&lt;br /&gt;
* Open this directory in the Terminal.&lt;br /&gt;
** If you have &amp;quot;OpenInTerminal&amp;quot; this is one button, otherwise press &amp;quot;Show Path Bar&amp;quot; and navigate where it says with &amp;quot;cd&amp;quot;.&lt;br /&gt;
** It should be something like &amp;lt;code&amp;gt;cd ~/Library/Application Support/heroic/tools/wine/Wine-crossover-wine-22.1.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
* &amp;lt;pre&amp;gt;cd Contents/MacOS&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Remove the existing Wine: &amp;lt;pre&amp;gt;rm wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Create a symlink to Game Porting Toolkit's Wine: &lt;br /&gt;
** If using Game Porting Toolkit Wineprefix: &amp;lt;pre&amp;gt;ln -s `/usr/local/bin/brew --prefix game-porting-toolkit`/bin/wine64 wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
** If using Whisky: &amp;lt;pre&amp;gt;ln -s /Applications/Whisky.app/Contents/Resources/Libraries/Wine/bin/wine64 wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
* &amp;lt;pre&amp;gt;cd ../Resources&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Remove the existing Wine: &amp;lt;pre&amp;gt;rm -rfv wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Create a symlink to Game Porting Toolkit's Wine&lt;br /&gt;
** If using Game Porting Toolkit Wineprefix: &amp;lt;pre&amp;gt;ln -s `/usr/local/bin/brew --prefix game-porting-toolkit` wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
** If using Whisky: &amp;lt;pre&amp;gt;ln -s /Applications/Whisky.app/Contents/Resources/Libraries/Wine wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
* We are now done with Terminal. Install any games you want to try playing.&lt;br /&gt;
* Select the game you want to play, and press the settings button in the top-right.&lt;br /&gt;
* Make sure the version of Wine you just downloaded and modified is selected.&lt;br /&gt;
* Make sure your Game Porting Toolkit Wine Prefix is selected. If you followed Apple's guide this is &amp;lt;code&amp;gt;/Users/you/my-game-prefix&amp;lt;/code&amp;gt;.&lt;br /&gt;
* If you Open the &amp;quot;Other&amp;quot; section you can also add any environment variables you want like &amp;lt;code&amp;gt;WINEESYNC=1&amp;quot;&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;&amp;quot;MTL_HUD_ENABLED=1&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
* Close the settings and try running the game.&lt;br /&gt;
&lt;br /&gt;
== Commands ==&lt;br /&gt;
Installing individual exe games: open your Wine prefix’s virtual C: drive in Finder (open ~/my-game-prefix/drive_c) and copy your game into an appropriate subdirectory.&lt;br /&gt;
&lt;br /&gt;
'''A. Standard launching'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix 'C:\Program Files (x86)\Steam\steam.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This launches the given Windows game binary with a visible extended Metal Performance HUD and filters logging to output from the Game Porting Toolkit.&lt;br /&gt;
&lt;br /&gt;
'''B. Launching without a HUD'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit-no-hud ~/my-game-prefix 'C:\Program Files (x86)\Steam\steam.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''C. Launching with Wine ESYNC disabled'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit-no-esync ~/my-game-prefix 'C:\Program Files (x86)\Steam\steam.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To enter Winecfg:&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix winecfg&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Shortcut ==&lt;br /&gt;
You can make a shortcut for Steam for example by using macOS built-in Automator app.&lt;br /&gt;
*Open Automator.&lt;br /&gt;
*Select New Application.&lt;br /&gt;
*In the 2nd column select Run Shell Script.&lt;br /&gt;
*Copy and paste this code into the box:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/zsh&lt;br /&gt;
&lt;br /&gt;
export PATH=&amp;quot;/usr/local/bin:${PATH}&amp;quot;&lt;br /&gt;
&lt;br /&gt;
arch -x86_64 gameportingtoolkit ~/my-game-prefix 'C:\Program Files (x86)\Steam\steam.exe'&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the shortcut somewhere e.g. Applications.&lt;br /&gt;
*Above shortcut can be customised to any Wineprefix or game.&lt;br /&gt;
*Add an icon by selecting the shortcut, pressing {{key|cmd|I}} to Get Info, then dragging and dropping a PNG file onto the top left of the window.&lt;br /&gt;
&lt;br /&gt;
== Logging ==&lt;br /&gt;
The provided bin/gameportingtoolkit* scripts can be copied onto your path to facilitate different forms of logging and launching. You can run these scripts from any shell; you don’t need to switch to the Rosetta environment first.&lt;br /&gt;
&lt;br /&gt;
Logging output will appear in the Terminal window in which you launch your game as well as the system log, which can be viewed with the Console app found in Applications ▸ Utilities. Log messages from the Game Porting Toolkit are prefixed with D3DM. By default the gameportingtoolkit* scripts will filter to just the D3DM-prefixed messages.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
'''Steam login black screen'''&lt;br /&gt;
&lt;br /&gt;
Close the Terminal window and then reopen and retry the command, repeat several times.&lt;br /&gt;
&lt;br /&gt;
Alternate way of launching Steam (after installing):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
MTL_HUD_ENABLED=1 WINEESYNC=1 WINEPREFIX=&amp;lt;path to the Wine bottle you set up&amp;gt; /usr/local/Cellar/game-porting-toolkit/1.0/bin/wine64 'C:\Program Files (x86)/Steam/steam.exe'&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If still not working then try using [[CrossOver]] and create a Steam bottle, then redirect this WINEPREFIX to that bottle:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=&amp;quot;/Users/[username]/Library/Application Support/CrossOver/Bottles/Steam/&amp;quot; &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Steam crashes straight after opening'''&lt;br /&gt;
&lt;br /&gt;
Disconnect any external monitors.&lt;br /&gt;
&lt;br /&gt;
'''Battle.net launcher won't re-launch'''&lt;br /&gt;
&lt;br /&gt;
Re-install the launcher to reopen, no other fix at the moment.&lt;br /&gt;
&lt;br /&gt;
'''My game won’t run because it thinks the version of Windows is too old. Some games detect specific minimum versions of Windows and need to be updated.''' Use this script to update your wineprefix with build 19042 which should work for most games e.g. Spider-Man Remastered.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion' /v CurrentBuild /t REG_SZ /d 19042 /f&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion' /v CurrentBuildNumber /t REG_SZ /d 19042 /f&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wineserver -k&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''steamwebhelper.exe crashes'''&lt;br /&gt;
&lt;br /&gt;
This is caused by Steam being run through macOS Ventura or below, upgrade to macOS Sonoma.&lt;br /&gt;
&lt;br /&gt;
'''My game won't run and crashes with an invalid instruction'''&lt;br /&gt;
&lt;br /&gt;
AVX and AVX2 games are not supported by Apple's arm64 chipset.&lt;br /&gt;
&lt;br /&gt;
'''My game won't run because its anti-cheat or DRM software is incompatible with Wine translation.'''&lt;br /&gt;
&lt;br /&gt;
Likely there will be no fixes for any games that use anti-cheat, e.g. Easy Anti Cheat. Some games have workarounds e.g. Elden Ring. Other games that use say Denuvo may also be incompatible until that DRM is removed by the game's developer.&lt;br /&gt;
&lt;br /&gt;
'''My game won’t run because it requires Mono, .NET, or the MSVCRT runtime.'''&lt;br /&gt;
&lt;br /&gt;
The game porting toolkit’s evaluation environment does not pre-install these runtime support packages. If your game makes use of one of these packages, consider searching for and downloading appropriate installers (.exe or .msi) and installing them to your evaluation environment. Additional runtime installers can be run on your environment by just launching the installer and following its installation instructions:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 &amp;lt;some-installer.exe&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
And .MSI packages can be installed by launching the Windows uninstaller application and choosing to install a downloaded .msi package:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 uninstaller&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Controller issues'''&lt;br /&gt;
&lt;br /&gt;
Issues may be fixed by enrolling into the Steam beta.&lt;br /&gt;
&lt;br /&gt;
'''My game looks pixelated and the display resolution is limited'''&lt;br /&gt;
&lt;br /&gt;
Enable Retina (high resolution) mode:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_CURRENT_USER\Software\Wine\Mac Driver' /v RetinaMode /t REG_SZ /d 'Y' /f&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Some games will not run with Retina mode enabled. To disable it:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_CURRENT_USER\Software\Wine\Mac Driver' /v RetinaMode /t REG_SZ /d 'N' /f&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Game compatibility list ==&lt;br /&gt;
Working games:&lt;br /&gt;
* Halo 3 (MCC - No Online due to Easy Anti-Cheat Compatibility)&lt;br /&gt;
* Cyberpunk 2077&lt;br /&gt;
* Final Fantasy VII Remake Intergrade (~50 FPS on High settings at 1080p with M1 Pro)&lt;br /&gt;
* God of War (Works somewhat well on M1 Pro (16gb), wouldn't recommend lesser hardware.)&lt;br /&gt;
* Elden Ring&lt;br /&gt;
* Overwatch 2 &lt;br /&gt;
* SpongeBob SquarePants: The Cosmic Shake&lt;br /&gt;
* Diablo IV [https://www.reddit.com/r/macgaming/comments/14307be/comment/jn7dxzo/?utm_source=reddit&amp;amp;utm_medium=web2x&amp;amp;context=3 ]&lt;br /&gt;
* Hogwarts Legacy&lt;br /&gt;
* Deep Rock Galactic&lt;br /&gt;
* Sonic Omens&lt;br /&gt;
* Sonic P-06&lt;br /&gt;
* Scarlet Nexus&lt;br /&gt;
* Metal Gear Solid V: The Phantom Pain&lt;br /&gt;
* Dyson Sphere Program (some objects and main character weren't visible before)&lt;br /&gt;
* Derail Valley (awesome performance, no missing manuals - in-game objects for train operation - like on CrossOver)&lt;br /&gt;
* Spider-Man (2018)&lt;br /&gt;
* Spider-Man Miles Morales - ''requires Windows ver fix''&lt;br /&gt;
* Warframe - ''To get installer/launcher working add dwrite (disabled) to library overrides in winecfg''&lt;br /&gt;
* HI-Fi RUSH&lt;br /&gt;
* QUBE 2&lt;br /&gt;
* Deceive Inc. - works well if launched without EAC&lt;br /&gt;
* Risk of Rain 2 (does not require `-disable-gpu-skinning` like Crossover 22)&lt;br /&gt;
* Crysis Remastered&lt;br /&gt;
* Cuphead&lt;br /&gt;
* Bloodstained: Ritual of the Night&lt;br /&gt;
* Tetris Effect: Connected - Game window likes to be uncooperative; really doesn't like retina mode, works otherwise&lt;br /&gt;
* Hatsune Miku: Project DIVA Mega Mix+ - works with Retina mode; DivaModLoader and DivaNoSpy recommended; run Steam with WINEDEBUG=-all WINEESYNC=0 WINEDLLOVERRIDES=&amp;quot;dinput8.dll=n,b&amp;quot;; may randomly crash at the title screen (just restart and try again until it works)&lt;br /&gt;
* Kena: Bridge of Spirits&lt;br /&gt;
* Control (DX12 mode, if downloaded from Heroic, needs to be ran by Terminal)&lt;br /&gt;
&lt;br /&gt;
Not working well:&lt;br /&gt;
* Horizon Zero Dawn - slowdown issues&lt;br /&gt;
&lt;br /&gt;
Not working yet:&lt;br /&gt;
* Sea of Thieves - Launches, but the prompt to sign into an xbox live account appears blank and cannot be completed.&lt;br /&gt;
* Red Dead Redemption 2&lt;br /&gt;
* Hitman 3 - launcher works, crash at 0x0000014136dddd hitman3+0x136dddd: int $3&lt;br /&gt;
* Among Us&lt;br /&gt;
* Splitgate - anti-cheat conflict.&lt;br /&gt;
* Rogue Company - anti-cheat conflict.&lt;br /&gt;
* Tiny Tina's Wonderlands - Intro videos play, dragon animation indicating shader precompilation starts, game freezes, eventually crashes.&lt;br /&gt;
* Halo Infinite - Crash on launch&lt;br /&gt;
* Street Fighter 6 - Crash on launch&lt;br /&gt;
* Company of Heroes 3&lt;br /&gt;
* Many (all?) DX9 games&lt;br /&gt;
** 30XX - &amp;quot;Failed to create D3D device&amp;quot; -&amp;gt; crash on launch; this is a rare 64-bit DX9 game&lt;br /&gt;
** Left 4 Dead 2 - Black screen -&amp;gt; crash on launch&lt;br /&gt;
** Killing Floor 1 - Crash on launch&lt;br /&gt;
** Sonic Mania - Crash on launch&lt;br /&gt;
** Mega Man Zero/ZX Legacy Collection - &amp;quot;Failed to create d3d9 device&amp;quot; -&amp;gt; crash on launch&lt;/div&gt;</summary>
		<author><name>Andytizer</name></author>
	</entry>
	<entry>
		<id>https://www.applegamingwiki.com/w/index.php?title=Game_Porting_Toolkit&amp;diff=7595</id>
		<title>Game Porting Toolkit</title>
		<link rel="alternate" type="text/html" href="https://www.applegamingwiki.com/w/index.php?title=Game_Porting_Toolkit&amp;diff=7595"/>
		<updated>2023-06-08T12:32:14Z</updated>

		<summary type="html">&lt;p&gt;Andytizer: /* Game compatibility list */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Game Porting Toolkit is Apple's new translation layer released on 6th June, 2023. Game Porting Toolkit ('''GPTK''') combines Wine with Apple's own D3DMetal which supports DirectX 11 and 12&amp;lt;ref&amp;gt;{{Refurl|url=https://mastodon.gamedev.place/@gavkar/110501451404624870|title=Gokhan Avkarogullari: &amp;quot;@yiningkarlli @aras @romainguy…&amp;quot; - Gamedev Mastodon}}&amp;lt;/ref&amp;gt;. This is less user-friendly method of installing Windows games on Apple Silicon Macs compared to [[CrossOver]] or [[Parallels]], however it unlocks the ability to play many DirectX 12 games. Many more games not work using GPTK, however games that use anti-cheat or aggressive DRM generally don't worker do games that require AVX/AVX 2, e.g. The Last of Us Part I.&lt;br /&gt;
&lt;br /&gt;
== Toolkit install instructions ==&lt;br /&gt;
=== Requirements ===&lt;br /&gt;
*macOS Sonoma should be used, currently it is in beta. You can download the pkg installer from [https://mrmacintosh.com/macos-sonoma-full-installer-database-download-directly-from-apple/ Mr Macintosh blog].&lt;br /&gt;
*macOS Ventura causes large numbers of issues with steamwebhelper.exe crashing so it isn't recommended, use the macOS Sonoma beta.&lt;br /&gt;
*Visit [https://developer.apple.com/downloads Apple Developer Downloads site], these files are now free to download use for any logged in Apple account.&lt;br /&gt;
**Search for Command Line Tools for Xcode 15 beta and download the dmg file, then install it.&lt;br /&gt;
**If you have an old version Xcode installed, remove it.&lt;br /&gt;
**Search for Game Porting Toolkit and download it. Open the dmg file and then run the pkg.&lt;br /&gt;
&lt;br /&gt;
=== Homebrew ===&lt;br /&gt;
Note: if you have ever installed Homebrew before, then it is advisable to remove arm64 Homebrew as this can interfere with this build process. Either use a Homebrew uninstall script or delete the folder &amp;lt;code&amp;gt;/opt/homebrew/bin&amp;lt;/code&amp;gt;. Otherwise, if you prefer to keep both arm64 and x86 versions of brew installed, you may add a &amp;quot;brew-switcher&amp;quot; to your &amp;lt;code&amp;gt;.zshrc&amp;lt;/code&amp;gt; file to allow either version to be used depending on the active architecture. You may follow the steps at the end of this section after installing Brew to achieve this.&lt;br /&gt;
&lt;br /&gt;
Open Terminal (search in Spotlight on macOS).&lt;br /&gt;
&lt;br /&gt;
Install Rosetta:&lt;br /&gt;
&amp;lt;pre&amp;gt;softwareupdate --install-rosetta&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Enter an x86_64 shell to continue the following steps in a Rosetta environment. All subsequent commands should be run within this shell.&lt;br /&gt;
&amp;lt;pre&amp;gt;arch -x86_64 zsh&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Install the x86_64 version of Homebrew if you don't already have it.&lt;br /&gt;
&amp;lt;pre&amp;gt;/bin/bash -c &amp;quot;$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)&amp;quot;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Make sure the brew command is on your path:&lt;br /&gt;
&amp;lt;pre&amp;gt;which brew&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If this command does not print &amp;lt;code&amp;gt;/usr/local/bin/brew&amp;lt;/code&amp;gt;, you should use this command:&lt;br /&gt;
&amp;lt;pre&amp;gt;export PATH=/usr/local/bin:${PATH}&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Fixbox|description=Optionally retain both arm64 and x86 versions of Brew|ref=|collapsed=yes|fix=&lt;br /&gt;
(Optional) If you want to have both arm64 and x86 versions of Brew installed, begin by editing your &amp;lt;code&amp;gt;.zshrc&amp;lt;/code&amp;gt; file:&lt;br /&gt;
&amp;lt;pre&amp;gt;nano ~/.zshrc&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Scroll down (by using the arrow keys or Control + V) to the bottom of the file, and paste the following script:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
if [ &amp;quot;$(arch)&amp;quot; = &amp;quot;arm64&amp;quot; ]; then&lt;br /&gt;
    eval &amp;quot;$(/opt/homebrew/bin/brew shellenv)&amp;quot;&lt;br /&gt;
else&lt;br /&gt;
    eval &amp;quot;$(/usr/local/bin/brew shellenv)&amp;quot;&lt;br /&gt;
fi&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You may now restart your terminal and use the following command to return to an x86_64 shell:&lt;br /&gt;
&amp;lt;pre&amp;gt;arch -x86_64 zsh&amp;lt;/pre&amp;gt;&lt;br /&gt;
Your shell will now select the right installation of Brew, depending on your architecture.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=== Build ===&lt;br /&gt;
Run this command to download Apple tap:&lt;br /&gt;
&amp;lt;pre&amp;gt;brew tap apple/apple http://github.com/apple/homebrew-apple&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Install the game-porting-toolkit formula. This formula downloads and compiles several large software projects. How long this takes will depend on the speed of your computer. It can take over 1 hour to complete depending on the speed of your Mac.&lt;br /&gt;
&amp;lt;pre&amp;gt;brew -v install apple/apple/game-porting-toolkit&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If during installation you see an error such as '''“Error: game-porting-toolkit: unknown or unsupported macOS version: :dunno”, your version of Homebrew doesn’t have macOS Sonoma support. Update to the latest version of Homebrew and try again.'''&lt;br /&gt;
&amp;lt;pre&amp;gt;brew update brew -v install apple/apple/game-porting-toolkit&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Wine prefix ===&lt;br /&gt;
A Wine prefix contains a virtual C: drive. You will install the toolkit and your game into this virtual C: drive. Run the following command to create a new Wine prefix named my-game-prefix in your home directory.&lt;br /&gt;
&amp;lt;pre&amp;gt;WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 winecfg&amp;lt;/pre&amp;gt;&lt;br /&gt;
*A “Wine configuration” window should appear on your screen.&lt;br /&gt;
*Change the version of Windows to Windows 10.&lt;br /&gt;
*Choose Apply and then OK to exit winecfg.&lt;br /&gt;
&lt;br /&gt;
If the “Wine configuration” window does not appear, and no new icon appears in the Dock, verify that you have correctly installed the x86_64 version of Homebrew as well as the game-porting-toolkit formula.&lt;br /&gt;
&lt;br /&gt;
=== Preparing the toolkit ===&lt;br /&gt;
Make sure the Game Porting Toolkit dmg downloaded earlier is mounted at /Volumes/Game Porting Toolkit-1.0. Use this script to copy the Game Porting Toolkit library directory into Wine’s library directory.&lt;br /&gt;
&amp;lt;pre&amp;gt;ditto /Volumes/Game\ Porting\ Toolkit-1.0/lib/ `brew --prefix game-porting-toolkit`/lib/&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Put the 3 scripts from the Game Porting Toolkit DMG into here &amp;lt;code&amp;gt;/usr/local/bin&amp;lt;/code&amp;gt; using this command:&lt;br /&gt;
&amp;lt;pre&amp;gt;cp /Volumes/Game\ Porting\ Toolkit*/gameportingtoolkit* /usr/local/bin&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now you are ready to install a launcher or individual Windows games, see below.&lt;br /&gt;
&lt;br /&gt;
== Steam ==&lt;br /&gt;
Download the [https://cdn.cloudflare.steamstatic.com/client/installer/SteamSetup.exe Windows version of Steam] and place in your Downloads folder.&lt;br /&gt;
&lt;br /&gt;
'''Install Steam'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix ~/Downloads/SteamSetup.exe&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Run Steam'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix 'C:\Program Files (x86)/Steam/steam.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Log into Steam'''&lt;br /&gt;
&lt;br /&gt;
A common issue is that Steam will present with a blank black window.&lt;br /&gt;
&lt;br /&gt;
Alternate way of launching Steam (after installing):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
MTL_HUD_ENABLED=1 WINEESYNC=1 WINEPREFIX=~/my-game-prefix /usr/local/Cellar/game-porting-toolkit/1.0/bin/wine64 'C:\Program Files (x86)\Steam\steam.exe'&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If this continues then close the Terminal window and then re-open and try again, repeat until the login screen opens. Now you should be able to download and launch Windows games through Steam.&lt;br /&gt;
&lt;br /&gt;
== Battle.net ==&lt;br /&gt;
Download the [https://download.battle.net/en-gb/?platform=windows Windows version of Battle.net].&lt;br /&gt;
&lt;br /&gt;
Make a new Wineprefix for Battle.net - we will refer to this as battle-net from now:&lt;br /&gt;
&amp;lt;pre&amp;gt;WINEPREFIX=~/battle-net `brew --prefix game-porting-toolkit`/bin/wine64 winecfg&amp;lt;/pre&amp;gt;&lt;br /&gt;
*A “Wine configuration” window should appear on your screen.&lt;br /&gt;
*Change the version of Windows to &amp;lt;code&amp;gt;Windows 10&amp;lt;/code&amp;gt;.&lt;br /&gt;
*Choose Apply and then OK to exit winecfg.&lt;br /&gt;
&lt;br /&gt;
'''Run Battle.net launcher'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/battle-net ~/Downloads/Battle.net-Setup.exe&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Be aware that there is an issue launching Battle.net once installed, the only current way to re-login is to 'install' the launcher again. &lt;br /&gt;
&lt;br /&gt;
Start individual game without the launcher using this command:&lt;br /&gt;
&amp;lt;pre&amp;gt;arch -x86_64 gameportingtoolkit-no-hud ~/battle-net 'C:\Program Files (x86)\Diablo IV\Diablo IV Launcher.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Epic and GOG.com support ==&lt;br /&gt;
This is particularly useful because '''as it currently stands, the real Epic Games Launcher fails to install under the Game Porting Toolkit'''. Heroic supports Epic and GOG.com games.&lt;br /&gt;
&lt;br /&gt;
* Install the [https://github.com/Heroic-Games-Launcher/HeroicGamesLauncher/releases native macOS Heroic Games Launcher] or from Homebrew.&lt;br /&gt;
* Open Heroic, and log into your Epic Games and/or GOG.com account.&lt;br /&gt;
* Go to the &amp;quot;Wine Manager&amp;quot; and install a '''numbered''' version of Wine, such that it won't auto update- we are going to modify it.&lt;br /&gt;
** At the time of writing this, the newest numbered version of Wine-Crossover is &amp;lt;code&amp;gt;Wine-Crossover-Wine-22.1.0&amp;lt;/code&amp;gt;&lt;br /&gt;
* Press the folder icon that appears after installing it to open the directory containing Heroic's Wine installations.&lt;br /&gt;
* Right-click on the version of Wine you just installed and press &amp;quot;Show Package Contents&amp;quot;.&lt;br /&gt;
* Open this directory in the Terminal.&lt;br /&gt;
** If you have &amp;quot;OpenInTerminal&amp;quot; this is one button, otherwise press &amp;quot;Show Path Bar&amp;quot; and navigate where it says with &amp;quot;cd&amp;quot;.&lt;br /&gt;
** It should be something like &amp;lt;code&amp;gt;cd ~/Library/Application Support/heroic/tools/wine/Wine-crossover-wine-22.1.0&amp;lt;/code&amp;gt;.&lt;br /&gt;
* &amp;lt;pre&amp;gt;cd Contents/MacOS&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Remove the existing Wine: &amp;lt;pre&amp;gt;rm wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Create a symlink to Game Porting Toolkit's Wine: &lt;br /&gt;
** If using Game Porting Toolkit Wineprefix: &amp;lt;pre&amp;gt;ln -s `/usr/local/bin/brew --prefix game-porting-toolkit`/bin/wine64 wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
** If using Whisky: &amp;lt;pre&amp;gt;ln -s /Applications/Whisky.app/Contents/Resources/Libraries/Wine/bin/wine64 wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
* &amp;lt;pre&amp;gt;cd ../Resources&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Remove the existing Wine: &amp;lt;pre&amp;gt;rm -rfv wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Create a symlink to Game Porting Toolkit's Wine&lt;br /&gt;
** If using Game Porting Toolkit Wineprefix: &amp;lt;pre&amp;gt;ln -s `/usr/local/bin/brew --prefix game-porting-toolkit` wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
** If using Whisky: &amp;lt;pre&amp;gt;ln -s /Applications/Whisky.app/Contents/Resources/Libraries/Wine wine&amp;lt;/pre&amp;gt;&lt;br /&gt;
* We are now done with Terminal. Install any games you want to try playing.&lt;br /&gt;
* Select the game you want to play, and press the settings button in the top-right.&lt;br /&gt;
* Make sure the version of Wine you just downloaded and modified is selected.&lt;br /&gt;
* Make sure your Game Porting Toolkit Wine Prefix is selected. If you followed Apple's guide this is &amp;lt;code&amp;gt;/Users/you/my-game-prefix&amp;lt;/code&amp;gt;.&lt;br /&gt;
* If you Open the &amp;quot;Other&amp;quot; section you can also add any environment variables you want like &amp;lt;code&amp;gt;WINEESYNC=1&amp;quot;&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;&amp;quot;MTL_HUD_ENABLED=1&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
* Close the settings and try running the game.&lt;br /&gt;
&lt;br /&gt;
== Commands ==&lt;br /&gt;
Installing individual exe games: open your Wine prefix’s virtual C: drive in Finder (open ~/my-game-prefix/drive_c) and copy your game into an appropriate subdirectory.&lt;br /&gt;
&lt;br /&gt;
'''A. Standard launching'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix 'C:\Program Files (x86)\Steam\steam.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This launches the given Windows game binary with a visible extended Metal Performance HUD and filters logging to output from the Game Porting Toolkit.&lt;br /&gt;
&lt;br /&gt;
'''B. Launching without a HUD'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit-no-hud ~/my-game-prefix 'C:\Program Files (x86)\Steam\steam.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''C. Launching with Wine ESYNC disabled'''&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit-no-esync ~/my-game-prefix 'C:\Program Files (x86)\Steam\steam.exe'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To enter Winecfg:&lt;br /&gt;
&amp;lt;pre&amp;gt;gameportingtoolkit ~/my-game-prefix winecfg&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Shortcut ==&lt;br /&gt;
You can make a shortcut for Steam for example by using macOS built-in Automator app.&lt;br /&gt;
*Open Automator.&lt;br /&gt;
*Select New Application.&lt;br /&gt;
*In the 2nd column select Run Shell Script.&lt;br /&gt;
*Copy and paste this code into the box:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/zsh&lt;br /&gt;
&lt;br /&gt;
export PATH=&amp;quot;/usr/local/bin:${PATH}&amp;quot;&lt;br /&gt;
&lt;br /&gt;
arch -x86_64 gameportingtoolkit ~/my-game-prefix 'C:\Program Files (x86)\Steam\steam.exe'&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Save the shortcut somewhere e.g. Applications.&lt;br /&gt;
*Above shortcut can be customised to any Wineprefix or game.&lt;br /&gt;
*Add an icon by selecting the shortcut, pressing {{key|cmd|I}} to Get Info, then dragging and dropping a PNG file onto the top left of the window.&lt;br /&gt;
&lt;br /&gt;
== Logging ==&lt;br /&gt;
The provided bin/gameportingtoolkit* scripts can be copied onto your path to facilitate different forms of logging and launching. You can run these scripts from any shell; you don’t need to switch to the Rosetta environment first.&lt;br /&gt;
&lt;br /&gt;
Logging output will appear in the Terminal window in which you launch your game as well as the system log, which can be viewed with the Console app found in Applications ▸ Utilities. Log messages from the Game Porting Toolkit are prefixed with D3DM. By default the gameportingtoolkit* scripts will filter to just the D3DM-prefixed messages.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
'''Steam login black screen'''&lt;br /&gt;
&lt;br /&gt;
Close the Terminal window and then reopen and retry the command, repeat several times.&lt;br /&gt;
&lt;br /&gt;
Alternate way of launching Steam (after installing):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
MTL_HUD_ENABLED=1 WINEESYNC=1 WINEPREFIX=&amp;lt;path to the Wine bottle you set up&amp;gt; /usr/local/Cellar/game-porting-toolkit/1.0/bin/wine64 'C:\Program Files (x86)/Steam/steam.exe'&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If still not working then try using [[CrossOver]] and create a Steam bottle, then redirect this WINEPREFIX to that bottle:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=&amp;quot;/Users/[username]/Library/Application Support/CrossOver/Bottles/Steam/&amp;quot; &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Steam crashes straight after opening'''&lt;br /&gt;
&lt;br /&gt;
Disconnect any external monitors.&lt;br /&gt;
&lt;br /&gt;
'''Battle.net launcher won't re-launch'''&lt;br /&gt;
&lt;br /&gt;
Re-install the launcher to reopen, no other fix at the moment.&lt;br /&gt;
&lt;br /&gt;
'''My game won’t run because it thinks the version of Windows is too old. Some games detect specific minimum versions of Windows and need to be updated.''' Use this script to update your wineprefix with build 19042 which should work for most games e.g. Spider-Man Remastered.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion' /v CurrentBuild /t REG_SZ /d 19042 /f&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion' /v CurrentBuildNumber /t REG_SZ /d 19042 /f&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wineserver -k&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''steamwebhelper.exe crashes'''&lt;br /&gt;
&lt;br /&gt;
This is caused by Steam being run through macOS Ventura or below, upgrade to macOS Sonoma.&lt;br /&gt;
&lt;br /&gt;
'''My game won't run and crashes with an invalid instruction'''&lt;br /&gt;
&lt;br /&gt;
AVX and AVX2 games are not supported by Apple's arm64 chipset.&lt;br /&gt;
&lt;br /&gt;
'''My game won't run because its anti-cheat or DRM software is incompatible with Wine translation.'''&lt;br /&gt;
&lt;br /&gt;
Likely there will be no fixes for any games that use anti-cheat, e.g. Easy Anti Cheat. Some games have workarounds e.g. Elden Ring. Other games that use say Denuvo may also be incompatible until that DRM is removed by the game's developer.&lt;br /&gt;
&lt;br /&gt;
'''My game won’t run because it requires Mono, .NET, or the MSVCRT runtime.'''&lt;br /&gt;
&lt;br /&gt;
The game porting toolkit’s evaluation environment does not pre-install these runtime support packages. If your game makes use of one of these packages, consider searching for and downloading appropriate installers (.exe or .msi) and installing them to your evaluation environment. Additional runtime installers can be run on your environment by just launching the installer and following its installation instructions:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 &amp;lt;some-installer.exe&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
And .MSI packages can be installed by launching the Windows uninstaller application and choosing to install a downloaded .msi package:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 uninstaller&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Controller issues'''&lt;br /&gt;
&lt;br /&gt;
Issues may be fixed by enrolling into the Steam beta.&lt;br /&gt;
&lt;br /&gt;
'''My game looks pixelated and the display resolution is limited'''&lt;br /&gt;
&lt;br /&gt;
Enable Retina (high resolution) mode:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_CURRENT_USER\Software\Wine\Mac Driver' /v RetinaMode /t REG_SZ /d 'Y' /f&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Some games will not run with Retina mode enabled. To disable it:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WINEPREFIX=~/my-game-prefix `brew --prefix game-porting-toolkit`/bin/wine64 reg add 'HKEY_CURRENT_USER\Software\Wine\Mac Driver' /v RetinaMode /t REG_SZ /d 'N' /f&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Game compatibility list ==&lt;br /&gt;
Working games:&lt;br /&gt;
* [[Halo 3]] (MCC - No Online due to Easy Anti-Cheat Compatibility)&lt;br /&gt;
* [[Cyberpunk 2077]]&lt;br /&gt;
* [[Final Fantasy VII: Remake Intergrade]] (~50 FPS on High settings at 1080p with M1 Pro)&lt;br /&gt;
* [[God of War]] (Works somewhat well on M1 Pro (16gb), wouldn't recommend lesser hardware.)&lt;br /&gt;
* [[Elden Ring]]&lt;br /&gt;
* [[SpongeBob SquarePants: The Cosmic Shake]]&lt;br /&gt;
* [[Diablo IV]] [https://www.reddit.com/r/macgaming/comments/14307be/comment/jn7dxzo/?utm_source=reddit&amp;amp;utm_medium=web2x&amp;amp;context=3 ]&lt;br /&gt;
* [[Hogwarts Legacy]]&lt;br /&gt;
* [[Deep Rock Galactic]]&lt;br /&gt;
* [[Sonic Omens]]&lt;br /&gt;
* [[Sonic P-06]]&lt;br /&gt;
* [[Scarlet Nexus]]&lt;br /&gt;
* [[Metal Gear Solid V: The Phantom Pain]]&lt;br /&gt;
* [[Dyson Sphere Program]] (some objects and main character weren't visible before)&lt;br /&gt;
* [[Derail Valley]] (awesome performance, no missing manuals - in-game objects for train operation - like on CrossOver)&lt;br /&gt;
* [[Marvel's Spider-Man Remastered]]&lt;br /&gt;
* [[Marvel's Spider-Man: Miles Morales]] - ''requires Windows ver fix''&lt;br /&gt;
* [[Warframe]] - ''To get installer/launcher working add dwrite (disabled) to library overrides in winecfg''&lt;br /&gt;
* [[Hi-Fi RUSH]]&lt;br /&gt;
* [[QUBE 2]]&lt;br /&gt;
* [[Deceive Inc.]] - works well if launched without EAC&lt;br /&gt;
* [[Risk of Rain 2]] (does not require `-disable-gpu-skinning` like Crossover 22)&lt;br /&gt;
* [[Crysis Remastered]]&lt;br /&gt;
* [[Cuphead]]&lt;br /&gt;
* [[Bloodstained: Ritual of the Night]]&lt;br /&gt;
* [[Tetris Effect: Connected]] - Game window likes to be uncooperative; really doesn't like retina mode, works otherwise&lt;br /&gt;
* [[Hatsune Miku: Project DIVA Mega Mix+]] - works with Retina mode; DivaModLoader and DivaNoSpy recommended; run Steam with WINEDEBUG=-all WINEESYNC=0 WINEDLLOVERRIDES=&amp;quot;dinput8.dll=n,b&amp;quot;; may randomly crash at the title screen (just restart and try again until it works)&lt;br /&gt;
&lt;br /&gt;
Not working well:&lt;br /&gt;
* [[Horizon Zero Dawn]] - slowdown issues&lt;br /&gt;
&lt;br /&gt;
Not working yet:&lt;br /&gt;
* Sea of Thieves - Launches, but the prompt to sign into an xbox live account appears blank and cannot be completed.&lt;br /&gt;
* Red Dead Redemption 2&lt;br /&gt;
* Hitman 3 - launcher works, crash at 0x0000014136dddd hitman3+0x136dddd: int $3&lt;br /&gt;
* Among Us&lt;br /&gt;
* Tiny Tina's Wonderlands - Intro videos play, dragon animation indicating shader precompilation starts, game freezes, eventually crashes.&lt;br /&gt;
* Halo Infinite - Crash on launch&lt;br /&gt;
* Street Fighter 6 - Crash on launch&lt;br /&gt;
* Company of Heroes 3&lt;br /&gt;
* Many (all?) DX9 games&lt;br /&gt;
** 30XX - &amp;quot;Failed to create D3D device&amp;quot; -&amp;gt; crash on launch; this is a rare 64-bit DX9 game&lt;br /&gt;
** Left 4 Dead 2 - Black screen -&amp;gt; crash on launch&lt;br /&gt;
** Killing Floor 1 - Crash on launch&lt;br /&gt;
** Sonic Mania - Crash on launch&lt;br /&gt;
** Mega Man Zero/ZX Legacy Collection - &amp;quot;Failed to create d3d9 device&amp;quot; -&amp;gt; crash on launch&lt;/div&gt;</summary>
		<author><name>Andytizer</name></author>
	</entry>
</feed>