Play your own Switch games on iPhone/iPad — one-click macOS app, no terminal. | 把 Switch 游戏装进 iPhone:图形界面一键构建,不用命令行。Bring your own game.
Swift apple-siliconcustom-formathomebrewiosipaipadipadosiphonemetalnative-portnintendo-switchnxnativeromfsswitch-games
Engine pin: seedds/nxnative cd859c38a8f8, 53 commits ahead
v0lumehi38e7cb852a29
diff --git a/.upstream-ref b/.upstream-refindex 6afcfafe..b1130120 100644--- a/.upstream-ref+++ b/.upstream-ref@@ -1 +1 @@-bbc3b73784751d2a706932dc69fd67627e3445d4+cd859c38a8f8890ddbb57a23d6f45e23ba9e6651diff --git a/GAMES.md b/GAMES.mdindex 381d5be9..b42c9299 100644--- a/GAMES.md+++ b/GAMES.md@@ -1,6 +1,6 @@# Games-Every game this fork has a profile for, with the update NSP each one needs. The player's page is [README.md](README.md), and [dm/games/README.md](https://github.com/seedds/nxnative/blob/bbc3b73784751d2a706932dc69fd67627e3445d4/dm/games/README.md) lists the same games with the engine's own notes on each. This page is the full list, so the README stays short. 中文:[GAMES.zh-CN.md](GAMES.zh-CN.md).+Every game this fork has a profile for, with the update NSP each one needs. The player's page is [README.md](README.md), and [dm/games/README.md](https://github.com/seedds/nxnative/blob/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/dm/games/README.md) lists the same games with the engine's own notes on each. This page is the full list, so the README stays short. 中文:[GAMES.zh-CN.md](GAMES.zh-CN.md).## Gallery@@ -9,188 +9,203 @@ Screenshots, with a note where a game has one (a frame rate, a limit). The block<!-- gallery: written by dm/tools/docs_gallery.py from docs/images/gallery.tsv; change the table, then run it --><table><tr>-<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/bbc3b73784751d2a706932dc69fd67627e3445d4/docs/images/mario-kart-8-deluxe.jpg" width="256" alt="Mario Kart 8 Deluxe"><br><small><b><a href="https://github.com/seedds/nxnative/blob/bbc3b73784751d2a706932dc69fd67627e3445d4/dm/games/0100152000022000/README.md">Mario Kart 8 Deluxe</a></b><br>no Mii heads</small></td>-<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/bbc3b73784751d2a706932dc69fd67627e3445d4/docs/images/mario-vs-donkey-kong.jpg" width="256" alt="Mario vs. Donkey Kong"><br><small><b><a href="https://github.com/seedds/nxnative/blob/bbc3b73784751d2a706932dc69fd67627e3445d4/dm/games/0100B99019412000/README.md">Mario vs. Donkey Kong</a></b></small></td>-<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/bbc3b73784751d2a706932dc69fd67627e3445d4/docs/images/paper-mario-the-thousand-year-door.jpg" width="256" alt="Paper Mario: The Thousand-Year Door"><br><small><b><a href="https://github.com/seedds/nxnative/blob/bbc3b73784751d2a706932dc69fd67627e3445d4/dm/games/0100ECD018EBE000/README.md">Paper Mario: The Thousand-Year Door</a></b><br>60 fps with 1.0.1</small></td>+<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/docs/images/donkey-kong-bananza.jpg" width="256" alt="Donkey Kong Bananza"><br><small><b><a href="https://github.com/seedds/nxnative/blob/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/dm/games/040074A01BF12000/README.md">Donkey Kong Bananza</a></b><br>Switch 2, Mac only, from a dump</small></td>+<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/docs/images/mario-kart-8-deluxe.jpg" width="256" alt="Mario Kart 8 Deluxe"><br><small><b><a href="https://github.com/seedds/nxnative/blob/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/dm/games/0100152000022000/README.md">Mario Kart 8 Deluxe</a></b><br>no Mii heads</small></td>+<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/docs/images/mario-vs-donkey-kong.jpg" width="256" alt="Mario vs. Donkey Kong"><br><small><b><a href="https://github.com/seedds/nxnative/blob/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/dm/games/0100B99019412000/README.md">Mario vs. Donkey Kong</a></b></small></td></tr><tr>-<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/bbc3b73784751d2a706932dc69fd67627e3445d4/docs/images/super-mario-3d-world.jpg" width="256" alt="Super Mario 3D World + Bowser's Fury"><br><small><b><a href="https://github.com/seedds/nxnative/blob/bbc3b73784751d2a706932dc69fd67627e3445d4/dm/games/010028600EBDA000/README.md">Super Mario 3D World + Bowser's Fury</a></b></small></td>-<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/bbc3b73784751d2a706932dc69fd67627e3445d4/docs/images/super-mario-bros-wonder.jpg" width="256" alt="Super Mario Bros. Wonder"><br><small><b><a href="https://github.com/seedds/nxnative/blob/bbc3b73784751d2a706932dc69fd67627e3445d4/dm/games/010015100B514000/README.md">Super Mario Bros. Wonder</a></b></small></td>-<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/bbc3b73784751d2a706932dc69fd67627e3445d4/docs/images/super-mario-galaxy.jpg" width="256" alt="Super Mario Galaxy"><br><small><b><a href="https://github.com/seedds/nxnative/blob/bbc3b73784751d2a706932dc69fd67627e3445d4/dm/games/010099C022B96000/README.md">Super Mario Galaxy</a></b></small></td>+<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/docs/images/paper-mario-the-thousand-year-door.jpg" width="256" alt="Paper Mario: The Thousand-Year Door"><br><small><b><a href="https://github.com/seedds/nxnative/blob/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/dm/games/0100ECD018EBE000/README.md">Paper Mario: The Thousand-Year Door</a></b><br>60 fps with 1.0.1</small></td>+<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/docs/images/super-mario-3d-world.jpg" width="256" alt="Super Mario 3D World + Bowser's Fury"><br><small><b><a href="https://github.com/seedds/nxnative/blob/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/dm/games/010028600EBDA000/README.md">Super Mario 3D World + Bowser's Fury</a></b></small></td>+<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/docs/images/super-mario-bros-wonder.jpg" width="256" alt="Super Mario Bros. Wonder"><br><small><b><a href="https://github.com/seedds/nxnative/blob/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/dm/games/010015100B514000/README.md">Super Mario Bros. Wonder</a></b></small></td></tr><tr>-<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/bbc3b73784751d2a706932dc69fd67627e3445d4/docs/images/super-mario-galaxy-2.jpg" width="256" alt="Super Mario Galaxy 2"><br><small><b><a href="https://github.com/seedds/nxnative/blob/bbc3b73784751d2a706932dc69fd67627e3445d4/dm/games/0100FD8022DAA000/README.md">Super Mario Galaxy 2</a></b></small></td>-<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/bbc3b73784751d2a706932dc69fd67627e3445d4/docs/images/super-mario-odyssey.jpg" width="256" alt="Super Mario Odyssey"><br><small><b><a href="https://github.com/seedds/nxnative/blob/bbc3b73784751d2a706932dc69fd67627e3445d4/dm/games/0100000000010000/README.md">Super Mario Odyssey</a></b></small></td>-<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/bbc3b73784751d2a706932dc69fd67627e3445d4/docs/images/zelda-breath-of-the-wild.jpg" width="256" alt="The Legend of Zelda: Breath of the Wild"><br><small><b><a href="https://github.com/seedds/nxnative/blob/bbc3b73784751d2a706932dc69fd67627e3445d4/dm/games/01007EF00011E000/README.md">The Legend of Zelda: Breath of the Wild</a></b><br>60 fps with 1.9.0</small></td>+<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/docs/images/super-mario-galaxy.jpg" width="256" alt="Super Mario Galaxy"><br><small><b><a href="https://github.com/seedds/nxnative/blob/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/dm/games/010099C022B96000/README.md">Super Mario Galaxy</a></b></small></td>+<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/docs/images/super-mario-galaxy-2.jpg" width="256" alt="Super Mario Galaxy 2"><br><small><b><a href="https://github.com/seedds/nxnative/blob/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/dm/games/0100FD8022DAA000/README.md">Super Mario Galaxy 2</a></b></small></td>+<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/docs/images/super-mario-odyssey.jpg" width="256" alt="Super Mario Odyssey"><br><small><b><a href="https://github.com/seedds/nxnative/blob/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/dm/games/0100000000010000/README.md">Super Mario Odyssey</a></b></small></td></tr><tr>-<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/bbc3b73784751d2a706932dc69fd67627e3445d4/docs/images/zelda-links-awakening.jpg" width="256" alt="The Legend of Zelda: Link's Awakening"><br><small><b><a href="https://github.com/seedds/nxnative/blob/bbc3b73784751d2a706932dc69fd67627e3445d4/dm/games/01006BB00C6F0000/README.md">The Legend of Zelda: Link's Awakening</a></b></small></td>-<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/bbc3b73784751d2a706932dc69fd67627e3445d4/docs/images/zelda-tears-of-the-kingdom.jpg" width="256" alt="The Legend of Zelda: Tears of the Kingdom"><br><small><b><a href="https://github.com/seedds/nxnative/blob/bbc3b73784751d2a706932dc69fd67627e3445d4/dm/games/0100F2C0115B6000/README.md">The Legend of Zelda: Tears of the Kingdom</a></b><br>60 fps with 1.4.3</small></td>-<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/bbc3b73784751d2a706932dc69fd67627e3445d4/docs/images/13-sentinels.jpg" width="256" alt="13 Sentinels: Aegis Rim"><br><small><b><a href="https://github.com/seedds/nxnative/blob/bbc3b73784751d2a706932dc69fd67627e3445d4/dm/games/01003FC01670C000/README.md">13 Sentinels: Aegis Rim</a></b></small></td>+<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/docs/images/zelda-breath-of-the-wild.jpg" width="256" alt="The Legend of Zelda: Breath of the Wild"><br><small><b><a href="https://github.com/seedds/nxnative/blob/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/dm/games/01007EF00011E000/README.md">The Legend of Zelda: Breath of the Wild</a></b><br>60 fps with 1.9.0</small></td>+<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/docs/images/zelda-links-awakening.jpg" width="256" alt="The Legend of Zelda: Link's Awakening"><br><small><b><a href="https://github.com/seedds/nxnative/blob/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/dm/games/01006BB00C6F0000/README.md">The Legend of Zelda: Link's Awakening</a></b></small></td>+<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/docs/images/zelda-tears-of-the-kingdom.jpg" width="256" alt="The Legend of Zelda: Tears of the Kingdom"><br><small><b><a href="https://github.com/seedds/nxnative/blob/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/dm/games/0100F2C0115B6000/README.md">The Legend of Zelda: Tears of the Kingdom</a></b><br>60 fps with 1.4.3</small></td></tr><tr>-<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/bbc3b73784751d2a706932dc69fd67627e3445d4/docs/images/absolum.jpg" width="256" alt="Absolum"><br><small><b><a href="https://github.com/seedds/nxnative/blob/bbc3b73784751d2a706932dc69fd67627e3445d4/dm/games/0100A83022A22000/README.md">Absolum</a></b></small></td>-<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/bbc3b73784751d2a706932dc69fd67627e3445d4/docs/images/ace-attorney-investigations.jpg" width="256" alt="Ace Attorney Investigations Collection"><br><small><b><a href="https://github.com/seedds/nxnative/blob/bbc3b73784751d2a706932dc69fd67627e3445d4/dm/games/010005501E68C000/README.md">Ace Attorney Investigations Collection</a></b></small></td>-<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/bbc3b73784751d2a706932dc69fd67627e3445d4/docs/images/advance-wars-1-2-re-boot-camp.jpg" width="256" alt="Advance Wars 1+2: Re-Boot Camp"><br><small><b><a href="https://github.com/seedds/nxnative/blob/bbc3b73784751d2a706932dc69fd67627e3445d4/dm/games/0100300012F2A000/README.md">Advance Wars 1+2: Re-Boot Camp</a></b></small></td>+<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/docs/images/13-sentinels.jpg" width="256" alt="13 Sentinels: Aegis Rim"><br><small><b><a href="https://github.com/seedds/nxnative/blob/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/dm/games/01003FC01670C000/README.md">13 Sentinels: Aegis Rim</a></b></small></td>+<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/docs/images/absolum.jpg" width="256" alt="Absolum"><br><small><b><a href="https://github.com/seedds/nxnative/blob/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/dm/games/0100A83022A22000/README.md">Absolum</a></b></small></td>+<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/docs/images/ace-attorney-investigations.jpg" width="256" alt="Ace Attorney Investigations Collection"><br><small><b><a href="https://github.com/seedds/nxnative/blob/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/dm/games/010005501E68C000/README.md">Ace Attorney Investigations Collection</a></b></small></td></tr><tr>-<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/bbc3b73784751d2a706932dc69fd67627e3445d4/docs/images/ai-the-somnium-files.jpg" width="256" alt="AI: THE SOMNIUM FILES"><br><small><b><a href="https://github.com/seedds/nxnative/blob/bbc3b73784751d2a706932dc69fd67627e3445d4/dm/games/010089B00D09C000/README.md">AI: THE SOMNIUM FILES</a></b></small></td>-<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/bbc3b73784751d2a706932dc69fd67627e3445d4/docs/images/ai-the-somnium-files-nirvana-initiative.jpg" width="256" alt="AI: THE SOMNIUM FILES - nirvanA Initiative"><br><small><b><a href="https://github.com/seedds/nxnative/blob/bbc3b73784751d2a706932dc69fd67627e3445d4/dm/games/0100713016CCC000/README.md">AI: THE SOMNIUM FILES - nirvanA Initiative</a></b></small></td>-<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/bbc3b73784751d2a706932dc69fd67627e3445d4/docs/images/animal-crossing-new-horizons.jpg" width="256" alt="Animal Crossing: New Horizons"><br><small><b><a href="https://github.com/seedds/nxnative/blob/bbc3b73784751d2a706932dc69fd67627e3445d4/dm/games/01006F8002326000/README.md">Animal Crossing: New Horizons</a></b></small></td>+<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/docs/images/advance-wars-1-2-re-boot-camp.jpg" width="256" alt="Advance Wars 1+2: Re-Boot Camp"><br><small><b><a href="https://github.com/seedds/nxnative/blob/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/dm/games/0100300012F2A000/README.md">Advance Wars 1+2: Re-Boot Camp</a></b></small></td>+<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/docs/images/ai-the-somnium-files.jpg" width="256" alt="AI: THE SOMNIUM FILES"><br><small><b><a href="https://github.com/seedds/nxnative/blob/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/dm/games/010089B00D09C000/README.md">AI: THE SOMNIUM FILES</a></b></small></td>+<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/docs/images/ai-the-somnium-files-nirvana-initiative.jpg" width="256" alt="AI: THE SOMNIUM FILES - nirvanA Initiative"><br><small><b><a href="https://github.com/seedds/nxnative/blob/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/dm/games/0100713016CCC000/README.md">AI: THE SOMNIUM FILES - nirvanA Initiative</a></b></small></td></tr><tr>-<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/bbc3b73784751d2a706932dc69fd67627e3445d4/docs/images/animal-well.png" width="256" alt="ANIMAL WELL"><br><small><b><a href="https://github.com/seedds/nxnative/blob/bbc3b73784751d2a706932dc69fd67627e3445d4/dm/games/010020D01AD24000/README.md">ANIMAL WELL</a></b></small></td>-<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/bbc3b73784751d2a706932dc69fd67627e3445d4/docs/images/astral-chain.png" width="256" alt="ASTRAL CHAIN"><br><small><b><a href="https://github.com/seedds/nxnative/blob/bbc3b73784751d2a706932dc69fd67627e3445d4/dm/games/01007300020FA000/README.md">ASTRAL CHAIN</a></b><br>60 fps target with 1.0.1</small></td>-<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/bbc3b73784751d2a706932dc69fd67627e3445d4/docs/images/balatro.jpg" width="256" alt="Balatro"><br><small><b><a href="https://github.com/seedds/nxnative/blob/bbc3b73784751d2a706932dc69fd67627e3445d4/dm/games/0100CD801CE5E000/README.md">Balatro</a></b><br>played by touch</small></td>+<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/docs/images/animal-crossing-new-horizons.jpg" width="256" alt="Animal Crossing: New Horizons"><br><small><b><a href="https://github.com/seedds/nxnative/blob/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/dm/games/01006F8002326000/README.md">Animal Crossing: New Horizons</a></b></small></td>+<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/docs/images/animal-well.png" width="256" alt="ANIMAL WELL"><br><small><b><a href="https://github.com/seedds/nxnative/blob/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/dm/games/010020D01AD24000/README.md">ANIMAL WELL</a></b></small></td>+<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/docs/images/astral-chain.png" width="256" alt="ASTRAL CHAIN"><br><small><b><a href="https://github.com/seedds/nxnative/blob/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/dm/games/01007300020FA000/README.md">ASTRAL CHAIN</a></b><br>60 fps target with 1.0.1</small></td></tr><tr>-<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/bbc3b73784751d2a706932dc69fd67627e3445d4/docs/images/ball-x-pit.jpg" width="256" alt="BALL x PIT"><br><small><b><a href="https://github.com/seedds/nxnative/blob/bbc3b73784751d2a706932dc69fd67627e3445d4/dm/games/010086A022444000/README.md">BALL x PIT</a></b></small></td>-<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/bbc3b73784751d2a706932dc69fd67627e3445d4/docs/images/bayonetta.jpg" width="256" alt="Bayonetta"><br><small><b><a href="https://github.com/seedds/nxnative/blob/bbc3b73784751d2a706932dc69fd67627e3445d4/dm/games/010076F0049A2000/README.md">Bayonetta</a></b></small></td>-<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/bbc3b73784751d2a706932dc69fd67627e3445d4/docs/images/bayonetta-2.jpg" width="256" alt="Bayonetta 2"><br><small><b><a href="https://github.com/seedds/nxnative/blob/bbc3b73784751d2a706932dc69fd67627e3445d4/dm/games/01007960049A0000/README.md">Bayonetta 2</a></b></small></td>+<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/docs/images/balatro.jpg" width="256" alt="Balatro"><br><small><b><a href="https://github.com/seedds/nxnative/blob/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/dm/games/0100CD801CE5E000/README.md">Balatro</a></b><br>played by touch</small></td>+<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/docs/images/ball-x-pit.jpg" width="256" alt="BALL x PIT"><br><small><b><a href="https://github.com/seedds/nxnative/blob/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/dm/games/010086A022444000/README.md">BALL x PIT</a></b></small></td>+<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/docs/images/bayonetta.jpg" width="256" alt="Bayonetta"><br><small><b><a href="https://github.com/seedds/nxnative/blob/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/dm/games/010076F0049A2000/README.md">Bayonetta</a></b></small></td></tr><tr>-<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/bbc3b73784751d2a706932dc69fd67627e3445d4/docs/images/bayonetta-3.jpg" width="256" alt="Bayonetta 3"><br><small><b><a href="https://github.com/seedds/nxnative/blob/bbc3b73784751d2a706932dc69fd67627e3445d4/dm/games/01004A4010FEA000/README.md">Bayonetta 3</a></b></small></td>-<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/bbc3b73784751d2a706932dc69fd67627e3445d4/docs/images/big-brain-academy-brain-vs-brain.jpg" width="256" alt="Big Brain Academy: Brain vs. Brain"><br><small><b><a href="https://github.com/seedds/nxnative/blob/bbc3b73784751d2a706932dc69fd67627e3445d4/dm/games/0100620012D6E000/README.md">Big Brain Academy: Brain vs. Brain</a></b></small></td>-<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/bbc3b73784751d2a706932dc69fd67627e3445d4/docs/images/brain-memory-training-academy.jpg" width="256" alt="Brain Memory Training Academy"><br><small><b><a href="https://github.com/seedds/nxnative/blob/bbc3b73784751d2a706932dc69fd67627e3445d4/dm/games/0100F5D01DA3A000/README.md">Brain Memory Training Academy</a></b></small></td>+<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/docs/images/bayonetta-2.jpg" width="256" alt="Bayonetta 2"><br><small><b><a href="https://github.com/seedds/nxnative/blob/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/dm/games/01007960049A0000/README.md">Bayonetta 2</a></b></small></td>+<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/docs/images/bayonetta-3.jpg" width="256" alt="Bayonetta 3"><br><small><b><a href="https://github.com/seedds/nxnative/blob/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/dm/games/01004A4010FEA000/README.md">Bayonetta 3</a></b></small></td>+<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/docs/images/big-brain-academy-brain-vs-brain.jpg" width="256" alt="Big Brain Academy: Brain vs. Brain"><br><small><b><a href="https://github.com/seedds/nxnative/blob/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/dm/games/0100620012D6E000/README.md">Big Brain Academy: Brain vs. Brain</a></b></small></td></tr><tr>-<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/bbc3b73784751d2a706932dc69fd67627e3445d4/docs/images/captain-toad-treasure-tracker.jpg" width="256" alt="Captain Toad: Treasure Tracker"><br><small><b><a href="https://github.com/seedds/nxnative/blob/bbc3b73784751d2a706932dc69fd67627e3445d4/dm/games/01009BF0072D4000/README.md">Captain Toad: Treasure Tracker</a></b></small></td>-<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/bbc3b73784751d2a706932dc69fd67627e3445d4/docs/images/catherine-full-body.jpg" width="256" alt="Catherine: Full Body"><br><small><b><a href="https://github.com/seedds/nxnative/blob/bbc3b73784751d2a706932dc69fd67627e3445d4/dm/games/0100BF00112C0000/README.md">Catherine: Full Body</a></b></small></td>-<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/bbc3b73784751d2a706932dc69fd67627e3445d4/docs/images/celeste.jpg" width="256" alt="Celeste"><br><small><b><a href="https://github.com/seedds/nxnative/blob/bbc3b73784751d2a706932dc69fd67627e3445d4/dm/games/01002B30028F6000/README.md">Celeste</a></b></small></td>+<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/docs/images/brain-memory-training-academy.jpg" width="256" alt="Brain Memory Training Academy"><br><small><b><a href="https://github.com/seedds/nxnative/blob/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/dm/games/0100F5D01DA3A000/README.md">Brain Memory Training Academy</a></b></small></td>+<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/docs/images/captain-toad-treasure-tracker.jpg" width="256" alt="Captain Toad: Treasure Tracker"><br><small><b><a href="https://github.com/seedds/nxnative/blob/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/dm/games/01009BF0072D4000/README.md">Captain Toad: Treasure Tracker</a></b></small></td>+<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/docs/images/catherine-full-body.jpg" width="256" alt="Catherine: Full Body"><br><small><b><a href="https://github.com/seedds/nxnative/blob/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/dm/games/0100BF00112C0000/README.md">Catherine: Full Body</a></b></small></td></tr><tr>-<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/bbc3b73784751d2a706932dc69fd67627e3445d4/docs/images/cuphead.jpg" width="256" alt="Cuphead"><br><small><b><a href="https://github.com/seedds/nxnative/blob/bbc3b73784751d2a706932dc69fd67627e3445d4/dm/games/0100A5C00D162000/README.md">Cuphead</a></b></small></td>-<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/bbc3b73784751d2a706932dc69fd67627e3445d4/docs/images/dark-souls-remastered-creation.jpg" width="256" alt="DARK SOULS: REMASTERED"><br><small><b><a href="https://github.com/seedds/nxnative/blob/bbc3b73784751d2a706932dc69fd67627e3445d4/dm/games/01004AB00A260000/README.md">DARK SOULS: REMASTERED</a></b><br>60 fps with 1.0.3</small></td>-<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/bbc3b73784751d2a706932dc69fd67627e3445d4/docs/images/digimon-story-cyber-sleuth.jpg" width="256" alt="Digimon Story Cyber Sleuth: Complete Edition"><br><small><b><a href="https://github.com/seedds/nxnative/blob/bbc3b73784751d2a706932dc69fd67627e3445d4/dm/games/010014E00DB56000/README.md">Digimon Story Cyber Sleuth: Complete Edition</a></b></small></td>+<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/docs/images/celeste.jpg" width="256" alt="Celeste"><br><small><b><a href="https://github.com/seedds/nxnative/blob/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/dm/games/01002B30028F6000/README.md">Celeste</a></b></small></td>+<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/docs/images/cuphead.jpg" width="256" alt="Cuphead"><br><small><b><a href="https://github.com/seedds/nxnative/blob/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/dm/games/0100A5C00D162000/README.md">Cuphead</a></b></small></td>+<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/docs/images/dark-souls-remastered-creation.jpg" width="256" alt="DARK SOULS: REMASTERED"><br><small><b><a href="https://github.com/seedds/nxnative/blob/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/dm/games/01004AB00A260000/README.md">DARK SOULS: REMASTERED</a></b><br>60 fps with 1.0.3</small></td></tr><tr>-<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/bbc3b73784751d2a706932dc69fd67627e3445d4/docs/images/donkey-kong-country-tropical-freeze.jpg" width="256" alt="Donkey Kong Country: Tropical Freeze"><br><small><b><a href="https://github.com/seedds/nxnative/blob/bbc3b73784751d2a706932dc69fd67627e3445d4/dm/games/0100C1F0051B6000/README.md">Donkey Kong Country: Tropical Freeze</a></b></small></td>-<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/bbc3b73784751d2a706932dc69fd67627e3445d4/docs/images/dragon-quest-vii-reimagined.jpg" width="256" alt="DRAGON QUEST VII Reimagined"><br><small><b><a href="https://github.com/seedds/nxnative/blob/bbc3b73784751d2a706932dc69fd67627e3445d4/dm/games/0100A9D01C446000/README.md">DRAGON QUEST VII Reimagined</a></b></small></td>-<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/bbc3b73784751d2a706932dc69fd67627e3445d4/docs/images/dragon-quest-xi-s.jpg" width="256" alt="DRAGON QUEST XI S: Echoes of an Elusive Age – Definitive Edition"><br><small><b><a href="https://github.com/seedds/nxnative/blob/bbc3b73784751d2a706932dc69fd67627e3445d4/dm/games/01006C300E9F0000/README.md">DRAGON QUEST XI S: Echoes of an Elusive Age – Definitive Edition</a></b><br>60 fps with 1.0.4</small></td>+<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/docs/images/digimon-story-cyber-sleuth.jpg" width="256" alt="Digimon Story Cyber Sleuth: Complete Edition"><br><small><b><a href="https://github.com/seedds/nxnative/blob/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/dm/games/010014E00DB56000/README.md">Digimon Story Cyber Sleuth: Complete Edition</a></b></small></td>+<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/docs/images/donkey-kong-country-tropical-freeze.jpg" width="256" alt="Donkey Kong Country: Tropical Freeze"><br><small><b><a href="https://github.com/seedds/nxnative/blob/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/dm/games/0100C1F0051B6000/README.md">Donkey Kong Country: Tropical Freeze</a></b></small></td>+<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/docs/images/dragon-quest-vii-reimagined.jpg" width="256" alt="DRAGON QUEST VII Reimagined"><br><small><b><a href="https://github.com/seedds/nxnative/blob/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/dm/games/0100A9D01C446000/README.md">DRAGON QUEST VII Reimagined</a></b></small></td></tr><tr>-<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/bbc3b73784751d2a706932dc69fd67627e3445d4/docs/images/final-fantasy-resonance.jpg" width="256" alt="FINAL FANTASY RESONANCE"><br><small><b><a href="https://github.com/seedds/nxnative/blob/bbc3b73784751d2a706932dc69fd67627e3445d4/dm/games/0100606026F12000/README.md">FINAL FANTASY RESONANCE</a></b><br>60 fps with 1.0.1</small></td>-<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/bbc3b73784751d2a706932dc69fd67627e3445d4/docs/images/final-fantasy-tactics.jpg" width="256" alt="FINAL FANTASY TACTICS - The Ivalice Chronicles"><br><small><b><a href="https://github.com/seedds/nxnative/blob/bbc3b73784751d2a706932dc69fd67627e3445d4/dm/games/010038B015560000/README.md">FINAL FANTASY TACTICS - The Ivalice Chronicles</a></b></small></td>-<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/bbc3b73784751d2a706932dc69fd67627e3445d4/docs/images/fire-emblem-engage.jpg" width="256" alt="Fire Emblem Engage"><br><small><b><a href="https://github.com/seedds/nxnative/blob/bbc3b73784751d2a706932dc69fd67627e3445d4/dm/games/0100A6301214E000/README.md">Fire Emblem Engage</a></b><br>60 fps with 2.0.0</small></td>+<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/docs/images/dragon-quest-xi-s.jpg" width="256" alt="DRAGON QUEST XI S: Echoes of an Elusive Age – Definitive Edition"><br><small><b><a href="https://github.com/seedds/nxnative/blob/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/dm/games/01006C300E9F0000/README.md">DRAGON QUEST XI S: Echoes of an Elusive Age – Definitive Edition</a></b><br>60 fps with 1.0.4</small></td>+<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/docs/images/final-fantasy-resonance.jpg" width="256" alt="FINAL FANTASY RESONANCE"><br><small><b><a href="https://github.com/seedds/nxnative/blob/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/dm/games/0100606026F12000/README.md">FINAL FANTASY RESONANCE</a></b><br>60 fps with 1.0.1</small></td>+<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/docs/images/final-fantasy-tactics.jpg" width="256" alt="FINAL FANTASY TACTICS - The Ivalice Chronicles"><br><small><b><a href="https://github.com/seedds/nxnative/blob/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/dm/games/010038B015560000/README.md">FINAL FANTASY TACTICS - The Ivalice Chronicles</a></b></small></td></tr><tr>-<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/bbc3b73784751d2a706932dc69fd67627e3445d4/docs/images/fire-emblem-three-houses.jpg" width="256" alt="Fire Emblem: Three Houses"><br><small><b><a href="https://github.com/seedds/nxnative/blob/bbc3b73784751d2a706932dc69fd67627e3445d4/dm/games/010055D009F78000/README.md">Fire Emblem: Three Houses</a></b><br>60 fps with 1.2.0</small></td>-<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/bbc3b73784751d2a706932dc69fd67627e3445d4/docs/images/ghost-trick-phantom-detective.jpg" width="256" alt="Ghost Trick: Phantom Detective"><br><small><b><a href="https://github.com/seedds/nxnative/blob/bbc3b73784751d2a706932dc69fd67627e3445d4/dm/games/010029B018432000/README.md">Ghost Trick: Phantom Detective</a></b></small></td>-<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/bbc3b73784751d2a706932dc69fd67627e3445d4/docs/images/the-great-ace-attorney-chronicles.jpg" width="256" alt="The Great Ace Attorney Chronicles"><br><small><b><a href="https://github.com/seedds/nxnative/blob/bbc3b73784751d2a706932dc69fd67627e3445d4/dm/games/010036E00FB20000/README.md">The Great Ace Attorney Chronicles</a></b></small></td>+<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/docs/images/fire-emblem-engage.jpg" width="256" alt="Fire Emblem Engage"><br><small><b><a href="https://github.com/seedds/nxnative/blob/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/dm/games/0100A6301214E000/README.md">Fire Emblem Engage</a></b><br>60 fps with 2.0.0</small></td>+<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/docs/images/fire-emblem-three-houses.jpg" width="256" alt="Fire Emblem: Three Houses"><br><small><b><a href="https://github.com/seedds/nxnative/blob/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/dm/games/010055D009F78000/README.md">Fire Emblem: Three Houses</a></b><br>60 fps with 1.2.0</small></td>+<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/docs/images/ghost-trick-phantom-detective.jpg" width="256" alt="Ghost Trick: Phantom Detective"><br><small><b><a href="https://github.com/seedds/nxnative/blob/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/dm/games/010029B018432000/README.md">Ghost Trick: Phantom Detective</a></b></small></td></tr><tr>-<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/bbc3b73784751d2a706932dc69fd67627e3445d4/docs/images/hades.jpg" width="256" alt="Hades"><br><small><b><a href="https://github.com/seedds/nxnative/blob/bbc3b73784751d2a706932dc69fd67627e3445d4/dm/games/0100535012974000/README.md">Hades</a></b></small></td>-<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/bbc3b73784751d2a706932dc69fd67627e3445d4/docs/images/hades-ii.jpg" width="256" alt="Hades II"><br><small><b><a href="https://github.com/seedds/nxnative/blob/bbc3b73784751d2a706932dc69fd67627e3445d4/dm/games/0100A00019DE0000/README.md">Hades II</a></b></small></td>-<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/bbc3b73784751d2a706932dc69fd67627e3445d4/docs/images/hollow-knight-silksong.jpg" width="256" alt="Hollow Knight: Silksong"><br><small><b><a href="https://github.com/seedds/nxnative/blob/bbc3b73784751d2a706932dc69fd67627e3445d4/dm/games/010013C00E930000/README.md">Hollow Knight: Silksong</a></b></small></td>+<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/docs/images/the-great-ace-attorney-chronicles.jpg" width="256" alt="The Great Ace Attorney Chronicles"><br><small><b><a href="https://github.com/seedds/nxnative/blob/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/dm/games/010036E00FB20000/README.md">The Great Ace Attorney Chronicles</a></b></small></td>+<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/docs/images/hades.jpg" width="256" alt="Hades"><br><small><b><a href="https://github.com/seedds/nxnative/blob/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/dm/games/0100535012974000/README.md">Hades</a></b></small></td>+<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/docs/images/hades-ii.jpg" width="256" alt="Hades II"><br><small><b><a href="https://github.com/seedds/nxnative/blob/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/dm/games/0100A00019DE0000/README.md">Hades II</a></b></small></td></tr><tr>-<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/bbc3b73784751d2a706932dc69fd67627e3445d4/docs/images/hyrule-warriors-age-of-calamity.jpg" width="256" alt="Hyrule Warriors: Age of Calamity"><br><small><b><a href="https://github.com/seedds/nxnative/blob/bbc3b73784751d2a706932dc69fd67627e3445d4/dm/games/01002B00111A2000/README.md">Hyrule Warriors: Age of Calamity</a></b><br>60 fps with 1.3.0</small></td>-<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/bbc3b73784751d2a706932dc69fd67627e3445d4/docs/images/kirby-and-the-forgotten-land.jpg" width="256" alt="Kirby and the Forgotten Land"><br><small><b><a href="https://github.com/seedds/nxnative/blob/bbc3b73784751d2a706932dc69fd67627e3445d4/dm/games/01004D300C5AE000/README.md">Kirby and the Forgotten Land</a></b></small></td>-<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/bbc3b73784751d2a706932dc69fd67627e3445d4/docs/images/luigis-mansion-3.jpg" width="256" alt="Luigi's Mansion 3"><br><small><b><a href="https://github.com/seedds/nxnative/blob/bbc3b73784751d2a706932dc69fd67627e3445d4/dm/games/0100DCA0064A6000/README.md">Luigi's Mansion 3</a></b><br>60 fps with 1.4.0</small></td>+<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/docs/images/hollow-knight-silksong.jpg" width="256" alt="Hollow Knight: Silksong"><br><small><b><a href="https://github.com/seedds/nxnative/blob/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/dm/games/010013C00E930000/README.md">Hollow Knight: Silksong</a></b></small></td>+<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/docs/images/hyrule-warriors-age-of-calamity.jpg" width="256" alt="Hyrule Warriors: Age of Calamity"><br><small><b><a href="https://github.com/seedds/nxnative/blob/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/dm/games/01002B00111A2000/README.md">Hyrule Warriors: Age of Calamity</a></b><br>60 fps with 1.3.0</small></td>+<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/docs/images/kirby-and-the-forgotten-land.jpg" width="256" alt="Kirby and the Forgotten Land"><br><small><b><a href="https://github.com/seedds/nxnative/blob/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/dm/games/01004D300C5AE000/README.md">Kirby and the Forgotten Land</a></b></small></td></tr><tr>-<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/bbc3b73784751d2a706932dc69fd67627e3445d4/docs/images/metroid-dread.jpg" width="256" alt="Metroid Dread"><br><small><b><a href="https://github.com/seedds/nxnative/blob/bbc3b73784751d2a706932dc69fd67627e3445d4/dm/games/010093801237C000/README.md">Metroid Dread</a></b></small></td>-<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/bbc3b73784751d2a706932dc69fd67627e3445d4/docs/images/monster-hunter-rise.jpg" width="256" alt="Monster Hunter Rise"><br><small><b><a href="https://github.com/seedds/nxnative/blob/bbc3b73784751d2a706932dc69fd67627e3445d4/dm/games/0100B04011742000/README.md">Monster Hunter Rise</a></b><br>60 fps with 16.0.2</small></td>-<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/bbc3b73784751d2a706932dc69fd67627e3445d4/docs/images/monster-train-2.jpg" width="256" alt="Monster Train 2"><br><small><b><a href="https://github.com/seedds/nxnative/blob/bbc3b73784751d2a706932dc69fd67627e3445d4/dm/games/010051701FB46000/README.md">Monster Train 2</a></b><br>60 fps with 1.1.1</small></td>+<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/docs/images/luigis-mansion-3.jpg" width="256" alt="Luigi's Mansion 3"><br><small><b><a href="https://github.com/seedds/nxnative/blob/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/dm/games/0100DCA0064A6000/README.md">Luigi's Mansion 3</a></b><br>60 fps with 1.4.0</small></td>+<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/docs/images/metroid-dread.jpg" width="256" alt="Metroid Dread"><br><small><b><a href="https://github.com/seedds/nxnative/blob/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/dm/games/010093801237C000/README.md">Metroid Dread</a></b></small></td>+<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/docs/images/monster-hunter-rise.jpg" width="256" alt="Monster Hunter Rise"><br><small><b><a href="https://github.com/seedds/nxnative/blob/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/dm/games/0100B04011742000/README.md">Monster Hunter Rise</a></b><br>60 fps with 16.0.2</small></td></tr><tr>-<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/bbc3b73784751d2a706932dc69fd67627e3445d4/docs/images/octopath-traveler.jpg" width="256" alt="OCTOPATH TRAVELER"><br><small><b><a href="https://github.com/seedds/nxnative/blob/bbc3b73784751d2a706932dc69fd67627e3445d4/dm/games/010057D006492000/README.md">OCTOPATH TRAVELER</a></b></small></td>-<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/bbc3b73784751d2a706932dc69fd67627e3445d4/docs/images/octopath-traveler-0.jpg" width="256" alt="Octopath Traveler 0"><br><small><b><a href="https://github.com/seedds/nxnative/blob/bbc3b73784751d2a706932dc69fd67627e3445d4/dm/games/01005270232F2000/README.md">Octopath Traveler 0</a></b><br>60 fps with 1.0.5</small></td>-<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/bbc3b73784751d2a706932dc69fd67627e3445d4/docs/images/octopath-traveler-ii.jpg" width="256" alt="Octopath Traveler II"><br><small><b><a href="https://github.com/seedds/nxnative/blob/bbc3b73784751d2a706932dc69fd67627e3445d4/dm/games/0100A3501946E000/README.md">Octopath Traveler II</a></b><br>60 fps with 1.1.1</small></td>+<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/docs/images/monster-train-2.jpg" width="256" alt="Monster Train 2"><br><small><b><a href="https://github.com/seedds/nxnative/blob/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/dm/games/010051701FB46000/README.md">Monster Train 2</a></b><br>60 fps with 1.1.1</small></td>+<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/docs/images/octopath-traveler.jpg" width="256" alt="OCTOPATH TRAVELER"><br><small><b><a href="https://github.com/seedds/nxnative/blob/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/dm/games/010057D006492000/README.md">OCTOPATH TRAVELER</a></b></small></td>+<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/docs/images/octopath-traveler-0.jpg" width="256" alt="Octopath Traveler 0"><br><small><b><a href="https://github.com/seedds/nxnative/blob/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/dm/games/01005270232F2000/README.md">Octopath Traveler 0</a></b><br>60 fps with 1.0.5</small></td></tr><tr>-<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/bbc3b73784751d2a706932dc69fd67627e3445d4/docs/images/patricks-parabox.jpg" width="256" alt="Patrick's Parabox"><br><small><b><a href="https://github.com/seedds/nxnative/blob/bbc3b73784751d2a706932dc69fd67627e3445d4/dm/games/0100E44016C22000/README.md">Patrick's Parabox</a></b></small></td>-<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/bbc3b73784751d2a706932dc69fd67627e3445d4/docs/images/persona-5-royal.jpg" width="256" alt="Persona 5 Royal"><br><small><b><a href="https://github.com/seedds/nxnative/blob/bbc3b73784751d2a706932dc69fd67627e3445d4/dm/games/01005CA01580E000/README.md">Persona 5 Royal</a></b></small></td>-<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/bbc3b73784751d2a706932dc69fd67627e3445d4/docs/images/pikmin-4.jpg" width="256" alt="Pikmin 4"><br><small><b><a href="https://github.com/seedds/nxnative/blob/bbc3b73784751d2a706932dc69fd67627e3445d4/dm/games/0100B7C00933A000/README.md">Pikmin 4</a></b></small></td>+<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/docs/images/octopath-traveler-ii.jpg" width="256" alt="Octopath Traveler II"><br><small><b><a href="https://github.com/seedds/nxnative/blob/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/dm/games/0100A3501946E000/README.md">Octopath Traveler II</a></b><br>60 fps with 1.1.1</small></td>+<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/docs/images/patricks-parabox.jpg" width="256" alt="Patrick's Parabox"><br><small><b><a href="https://github.com/seedds/nxnative/blob/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/dm/games/0100E44016C22000/README.md">Patrick's Parabox</a></b></small></td>+<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/docs/images/persona-5-royal.jpg" width="256" alt="Persona 5 Royal"><br><small><b><a href="https://github.com/seedds/nxnative/blob/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/dm/games/01005CA01580E000/README.md">Persona 5 Royal</a></b></small></td></tr><tr>-<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/bbc3b73784751d2a706932dc69fd67627e3445d4/docs/images/pokemon-brilliant-diamond.jpg" width="256" alt="Pokémon Brilliant Diamond"><br><small><b><a href="https://github.com/seedds/nxnative/blob/bbc3b73784751d2a706932dc69fd67627e3445d4/dm/games/0100000011D90000/README.md">Pokémon Brilliant Diamond</a></b><br>60 fps with 1.3.0</small></td>-<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/bbc3b73784751d2a706932dc69fd67627e3445d4/docs/images/pokemon-legends-z-a.jpg" width="256" alt="Pokémon Legends: Z-A"><br><small><b><a href="https://github.com/seedds/nxnative/blob/bbc3b73784751d2a706932dc69fd67627e3445d4/dm/games/0100F43008C44000/README.md">Pokémon Legends: Z-A</a></b></small></td>-<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/bbc3b73784751d2a706932dc69fd67627e3445d4/docs/images/pokemon-scarlet.png" width="256" alt="Pokémon Scarlet"><br><small><b><a href="https://github.com/seedds/nxnative/blob/bbc3b73784751d2a706932dc69fd67627e3445d4/dm/games/0100A3D008C5C000/README.md">Pokémon Scarlet</a></b></small></td>+<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/docs/images/pikmin-4.jpg" width="256" alt="Pikmin 4"><br><small><b><a href="https://github.com/seedds/nxnative/blob/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/dm/games/0100B7C00933A000/README.md">Pikmin 4</a></b></small></td>+<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/docs/images/pokemon-brilliant-diamond.jpg" width="256" alt="Pokémon Brilliant Diamond"><br><small><b><a href="https://github.com/seedds/nxnative/blob/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/dm/games/0100000011D90000/README.md">Pokémon Brilliant Diamond</a></b><br>60 fps with 1.3.0</small></td>+<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/docs/images/pokemon-legends-z-a.jpg" width="256" alt="Pokémon Legends: Z-A"><br><small><b><a href="https://github.com/seedds/nxnative/blob/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/dm/games/0100F43008C44000/README.md">Pokémon Legends: Z-A</a></b></small></td></tr><tr>-<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/bbc3b73784751d2a706932dc69fd67627e3445d4/docs/images/pokemon-violet.jpg" width="256" alt="Pokémon Violet"><br><small><b><a href="https://github.com/seedds/nxnative/blob/bbc3b73784751d2a706932dc69fd67627e3445d4/dm/games/01008F6008C5E000/README.md">Pokémon Violet</a></b></small></td>-<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/bbc3b73784751d2a706932dc69fd67627e3445d4/docs/images/pokemon-sword.jpg" width="256" alt="Pokémon Sword"><br><small><b><a href="https://github.com/seedds/nxnative/blob/bbc3b73784751d2a706932dc69fd67627e3445d4/dm/games/0100ABF008968000/README.md">Pokémon Sword</a></b></small></td>-<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/bbc3b73784751d2a706932dc69fd67627e3445d4/docs/images/pokemon-shield.jpg" width="256" alt="Pokémon Shield"><br><small><b><a href="https://github.com/seedds/nxnative/blob/bbc3b73784751d2a706932dc69fd67627e3445d4/dm/games/01008DB008C2C000/README.md">Pokémon Shield</a></b></small></td>+<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/docs/images/pokemon-scarlet.png" width="256" alt="Pokémon Scarlet"><br><small><b><a href="https://github.com/seedds/nxnative/blob/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/dm/games/0100A3D008C5C000/README.md">Pokémon Scarlet</a></b></small></td>+<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/docs/images/pokemon-violet.jpg" width="256" alt="Pokémon Violet"><br><small><b><a href="https://github.com/seedds/nxnative/blob/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/dm/games/01008F6008C5E000/README.md">Pokémon Violet</a></b></small></td>+<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/docs/images/pokemon-sword.jpg" width="256" alt="Pokémon Sword"><br><small><b><a href="https://github.com/seedds/nxnative/blob/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/dm/games/0100ABF008968000/README.md">Pokémon Sword</a></b></small></td></tr><tr>-<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/bbc3b73784751d2a706932dc69fd67627e3445d4/docs/images/portal.jpg" width="256" alt="Portal"><br><small><b><a href="https://github.com/seedds/nxnative/blob/bbc3b73784751d2a706932dc69fd67627e3445d4/dm/games/01007BB017812000/README.md">Portal</a></b></small></td>-<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/bbc3b73784751d2a706932dc69fd67627e3445d4/docs/images/raging-loop.jpg" width="256" alt="Raging Loop"><br><small><b><a href="https://github.com/seedds/nxnative/blob/bbc3b73784751d2a706932dc69fd67627e3445d4/dm/games/010020400E1C2000/README.md">Raging Loop</a></b></small></td>-<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/bbc3b73784751d2a706932dc69fd67627e3445d4/docs/images/rhythm-heaven-groove.jpg" width="256" alt="Rhythm Heaven Groove"><br><small><b><a href="https://github.com/seedds/nxnative/blob/bbc3b73784751d2a706932dc69fd67627e3445d4/dm/games/0100D9F01D474000/README.md">Rhythm Heaven Groove</a></b></small></td>+<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/docs/images/pokemon-shield.jpg" width="256" alt="Pokémon Shield"><br><small><b><a href="https://github.com/seedds/nxnative/blob/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/dm/games/01008DB008C2C000/README.md">Pokémon Shield</a></b></small></td>+<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/docs/images/portal.jpg" width="256" alt="Portal"><br><small><b><a href="https://github.com/seedds/nxnative/blob/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/dm/games/01007BB017812000/README.md">Portal</a></b></small></td>+<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/docs/images/raging-loop.jpg" width="256" alt="Raging Loop"><br><small><b><a href="https://github.com/seedds/nxnative/blob/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/dm/games/010020400E1C2000/README.md">Raging Loop</a></b></small></td></tr><tr>-<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/bbc3b73784751d2a706932dc69fd67627e3445d4/docs/images/romance-of-the-three-kingdoms-8-remake.jpg" width="256" alt="ROMANCE OF THE THREE KINGDOMS 8 REMAKE"><br><small><b><a href="https://github.com/seedds/nxnative/blob/bbc3b73784751d2a706932dc69fd67627e3445d4/dm/games/0100C2A01A730000/README.md">ROMANCE OF THE THREE KINGDOMS 8 REMAKE</a></b><br>controller only</small></td>-<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/bbc3b73784751d2a706932dc69fd67627e3445d4/docs/images/sea-of-stars.jpg" width="256" alt="Sea of Stars"><br><small><b><a href="https://github.com/seedds/nxnative/blob/bbc3b73784751d2a706932dc69fd67627e3445d4/dm/games/01008C0016544000/README.md">Sea of Stars</a></b></small></td>-<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/bbc3b73784751d2a706932dc69fd67627e3445d4/docs/images/shin-megami-tensei-v-vengeance.jpg" width="256" alt="SHIN MEGAMI TENSEI V: Vengeance"><br><small><b><a href="https://github.com/seedds/nxnative/blob/bbc3b73784751d2a706932dc69fd67627e3445d4/dm/games/010069C01AB82000/README.md">SHIN MEGAMI TENSEI V: Vengeance</a></b><br>60 fps with 1.0.3</small></td>+<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/docs/images/rhythm-heaven-groove.jpg" width="256" alt="Rhythm Heaven Groove"><br><small><b><a href="https://github.com/seedds/nxnative/blob/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/dm/games/0100D9F01D474000/README.md">Rhythm Heaven Groove</a></b></small></td>+<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/docs/images/romance-of-the-three-kingdoms-8-remake.jpg" width="256" alt="ROMANCE OF THE THREE KINGDOMS 8 REMAKE"><br><small><b><a href="https://github.com/seedds/nxnative/blob/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/dm/games/0100C2A01A730000/README.md">ROMANCE OF THE THREE KINGDOMS 8 REMAKE</a></b><br>controller only</small></td>+<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/docs/images/sea-of-stars.jpg" width="256" alt="Sea of Stars"><br><small><b><a href="https://github.com/seedds/nxnative/blob/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/dm/games/01008C0016544000/README.md">Sea of Stars</a></b></small></td></tr><tr>-<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/bbc3b73784751d2a706932dc69fd67627e3445d4/docs/images/stardew-valley.jpg" width="256" alt="Stardew Valley"><br><small><b><a href="https://github.com/seedds/nxnative/blob/bbc3b73784751d2a706932dc69fd67627e3445d4/dm/games/0100E65002BB8000/README.md">Stardew Valley</a></b></small></td>-<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/bbc3b73784751d2a706932dc69fd67627e3445d4/docs/images/steins-gate-reboot.jpg" width="256" alt="STEINS;GATE RE:BOOT"><br><small><b><a href="https://github.com/seedds/nxnative/blob/bbc3b73784751d2a706932dc69fd67627e3445d4/dm/games/01008BC024FDE000/README.md">STEINS;GATE RE:BOOT</a></b></small></td>-<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/bbc3b73784751d2a706932dc69fd67627e3445d4/docs/images/super-smash-bros-ultimate.jpg" width="256" alt="Super Smash Bros. Ultimate"><br><small><b><a href="https://github.com/seedds/nxnative/blob/bbc3b73784751d2a706932dc69fd67627e3445d4/dm/games/01006A800016E000/README.md">Super Smash Bros. Ultimate</a></b><br>offline</small></td>+<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/docs/images/shin-megami-tensei-v-vengeance.jpg" width="256" alt="SHIN MEGAMI TENSEI V: Vengeance"><br><small><b><a href="https://github.com/seedds/nxnative/blob/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/dm/games/010069C01AB82000/README.md">SHIN MEGAMI TENSEI V: Vengeance</a></b><br>60 fps with 1.0.3</small></td>+<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/docs/images/stardew-valley.jpg" width="256" alt="Stardew Valley"><br><small><b><a href="https://github.com/seedds/nxnative/blob/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/dm/games/0100E65002BB8000/README.md">Stardew Valley</a></b></small></td>+<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/docs/images/steins-gate-reboot.jpg" width="256" alt="STEINS;GATE RE:BOOT"><br><small><b><a href="https://github.com/seedds/nxnative/blob/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/dm/games/01008BC024FDE000/README.md">STEINS;GATE RE:BOOT</a></b></small></td></tr><tr>-<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/bbc3b73784751d2a706932dc69fd67627e3445d4/docs/images/taiko-risshiden-v-dx.jpg" width="256" alt="Taiko Risshiden V DX"><br><small><b><a href="https://github.com/seedds/nxnative/blob/bbc3b73784751d2a706932dc69fd67627e3445d4/dm/games/0100346017304000/README.md">Taiko Risshiden V DX</a></b><br>Japanese · played by touch</small></td>-<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/bbc3b73784751d2a706932dc69fd67627e3445d4/docs/images/unicorn-overlord.jpg" width="256" alt="Unicorn Overlord"><br><small><b><a href="https://github.com/seedds/nxnative/blob/bbc3b73784751d2a706932dc69fd67627e3445d4/dm/games/010069401ADB8000/README.md">Unicorn Overlord</a></b></small></td>-<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/bbc3b73784751d2a706932dc69fd67627e3445d4/docs/images/yoshis-crafted-world.jpg" width="256" alt="Yoshi's Crafted World"><br><small><b><a href="https://github.com/seedds/nxnative/blob/bbc3b73784751d2a706932dc69fd67627e3445d4/dm/games/01006000040C2000/README.md">Yoshi's Crafted World</a></b></small></td>+<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/docs/images/super-smash-bros-ultimate.jpg" width="256" alt="Super Smash Bros. Ultimate"><br><small><b><a href="https://github.com/seedds/nxnative/blob/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/dm/games/01006A800016E000/README.md">Super Smash Bros. Ultimate</a></b><br>offline</small></td>+<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/docs/images/taiko-risshiden-v-dx.jpg" width="256" alt="Taiko Risshiden V DX"><br><small><b><a href="https://github.com/seedds/nxnative/blob/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/dm/games/0100346017304000/README.md">Taiko Risshiden V DX</a></b><br>Japanese · played by touch</small></td>+<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/docs/images/unicorn-overlord.jpg" width="256" alt="Unicorn Overlord"><br><small><b><a href="https://github.com/seedds/nxnative/blob/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/dm/games/010069401ADB8000/README.md">Unicorn Overlord</a></b></small></td></tr><tr>-<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/bbc3b73784751d2a706932dc69fd67627e3445d4/docs/images/nier-automata.png" width="256" alt="NieR:Automata The End of YoRHa Edition"><br><small><b><a href="https://github.com/seedds/nxnative/blob/bbc3b73784751d2a706932dc69fd67627e3445d4/dm/games/010056B015FE8000/README.md">NieR:Automata The End of YoRHa Edition</a></b><br>60 fps with 1.0.3</small></td>-<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/bbc3b73784751d2a706932dc69fd67627e3445d4/docs/images/zelda-echoes-of-wisdom.jpg" width="256" alt="The Legend of Zelda: Echoes of Wisdom"><br><small><b><a href="https://github.com/seedds/nxnative/blob/bbc3b73784751d2a706932dc69fd67627e3445d4/dm/games/01008CF01BAAC000/README.md">The Legend of Zelda: Echoes of Wisdom</a></b></small></td>-<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/bbc3b73784751d2a706932dc69fd67627e3445d4/docs/images/donkey-kong-country-returns-hd.png" width="256" alt="Donkey Kong Country Returns HD"><br><small><b><a href="https://github.com/seedds/nxnative/blob/bbc3b73784751d2a706932dc69fd67627e3445d4/dm/games/01009D901BC56000/README.md">Donkey Kong Country Returns HD</a></b></small></td>+<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/docs/images/yoshis-crafted-world.jpg" width="256" alt="Yoshi's Crafted World"><br><small><b><a href="https://github.com/seedds/nxnative/blob/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/dm/games/01006000040C2000/README.md">Yoshi's Crafted World</a></b></small></td>+<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/docs/images/nier-automata.png" width="256" alt="NieR:Automata The End of YoRHa Edition"><br><small><b><a href="https://github.com/seedds/nxnative/blob/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/dm/games/010056B015FE8000/README.md">NieR:Automata The End of YoRHa Edition</a></b><br>60 fps with 1.0.3</small></td>+<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/docs/images/zelda-echoes-of-wisdom.jpg" width="256" alt="The Legend of Zelda: Echoes of Wisdom"><br><small><b><a href="https://github.com/seedds/nxnative/blob/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/dm/games/01008CF01BAAC000/README.md">The Legend of Zelda: Echoes of Wisdom</a></b></small></td></tr><tr>-<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/bbc3b73784751d2a706932dc69fd67627e3445d4/docs/images/mario-rabbids-sparks-of-hope.jpg" width="256" alt="Mario + Rabbids Sparks of Hope"><br><small><b><a href="https://github.com/seedds/nxnative/blob/bbc3b73784751d2a706932dc69fd67627e3445d4/dm/games/0100317013770000/README.md">Mario + Rabbids Sparks of Hope</a></b></small></td>-<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/bbc3b73784751d2a706932dc69fd67627e3445d4/docs/images/xenoblade-chronicles-2.jpg" width="256" alt="Xenoblade Chronicles 2"><br><small><b><a href="https://github.com/seedds/nxnative/blob/bbc3b73784751d2a706932dc69fd67627e3445d4/dm/games/0100E95004038000/README.md">Xenoblade Chronicles 2</a></b></small></td>-<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/bbc3b73784751d2a706932dc69fd67627e3445d4/docs/images/xenoblade-chronicles-3.jpg" width="256" alt="Xenoblade Chronicles 3"><br><small><b><a href="https://github.com/seedds/nxnative/blob/bbc3b73784751d2a706932dc69fd67627e3445d4/dm/games/010074F013262000/README.md">Xenoblade Chronicles 3</a></b></small></td>+<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/docs/images/donkey-kong-country-returns-hd.png" width="256" alt="Donkey Kong Country Returns HD"><br><small><b><a href="https://github.com/seedds/nxnative/blob/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/dm/games/01009D901BC56000/README.md">Donkey Kong Country Returns HD</a></b></small></td>+<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/docs/images/mario-rabbids-sparks-of-hope.jpg" width="256" alt="Mario + Rabbids Sparks of Hope"><br><small><b><a href="https://github.com/seedds/nxnative/blob/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/dm/games/0100317013770000/README.md">Mario + Rabbids Sparks of Hope</a></b></small></td>+<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/docs/images/xenoblade-chronicles-2.jpg" width="256" alt="Xenoblade Chronicles 2"><br><small><b><a href="https://github.com/seedds/nxnative/blob/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/dm/games/0100E95004038000/README.md">Xenoblade Chronicles 2</a></b></small></td></tr><tr>-<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/bbc3b73784751d2a706932dc69fd67627e3445d4/docs/images/final-fantasy-crystal-chronicles.jpg" width="256" alt="FINAL FANTASY CRYSTAL CHRONICLES Remastered Edition"><br><small><b><a href="https://github.com/seedds/nxnative/blob/bbc3b73784751d2a706932dc69fd67627e3445d4/dm/games/0100CE4010AAC000/README.md">FINAL FANTASY CRYSTAL CHRONICLES Remastered Edition</a></b></small></td>-<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/bbc3b73784751d2a706932dc69fd67627e3445d4/docs/images/return-of-the-obra-dinn.png" width="256" alt="Return of the Obra Dinn"><br><small><b><a href="https://github.com/seedds/nxnative/blob/bbc3b73784751d2a706932dc69fd67627e3445d4/dm/games/010032E00E6E2000/README.md">Return of the Obra Dinn</a></b></small></td>-<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/bbc3b73784751d2a706932dc69fd67627e3445d4/docs/images/blasphemous-2.png" width="256" alt="Blasphemous 2"><br><small><b><a href="https://github.com/seedds/nxnative/blob/bbc3b73784751d2a706932dc69fd67627e3445d4/dm/games/010040801A4C8000/README.md">Blasphemous 2</a></b></small></td>+<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/docs/images/xenoblade-chronicles-3.jpg" width="256" alt="Xenoblade Chronicles 3"><br><small><b><a href="https://github.com/seedds/nxnative/blob/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/dm/games/010074F013262000/README.md">Xenoblade Chronicles 3</a></b></small></td>+<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/docs/images/final-fantasy-crystal-chronicles.jpg" width="256" alt="FINAL FANTASY CRYSTAL CHRONICLES Remastered Edition"><br><small><b><a href="https://github.com/seedds/nxnative/blob/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/dm/games/0100CE4010AAC000/README.md">FINAL FANTASY CRYSTAL CHRONICLES Remastered Edition</a></b></small></td>+<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/docs/images/return-of-the-obra-dinn.png" width="256" alt="Return of the Obra Dinn"><br><small><b><a href="https://github.com/seedds/nxnative/blob/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/dm/games/010032E00E6E2000/README.md">Return of the Obra Dinn</a></b></small></td></tr><tr>-<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/bbc3b73784751d2a706932dc69fd67627e3445d4/docs/images/silver-pines.jpg" width="256" alt="Silver Pines"><br><small><b><a href="https://github.com/seedds/nxnative/blob/bbc3b73784751d2a706932dc69fd67627e3445d4/dm/games/0100D5B026844000/README.md">Silver Pines</a></b></small></td>-<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/bbc3b73784751d2a706932dc69fd67627e3445d4/docs/images/blasphemous.jpg" width="256" alt="Blasphemous"><br><small><b><a href="https://github.com/seedds/nxnative/blob/bbc3b73784751d2a706932dc69fd67627e3445d4/dm/games/0100698009C6E000/README.md">Blasphemous</a></b></small></td>-<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/bbc3b73784751d2a706932dc69fd67627e3445d4/docs/images/final-fantasy-x-x2-hd-remaster.jpg" width="256" alt="FINAL FANTASY X/X-2 HD Remaster"><br><small><b><a href="https://github.com/seedds/nxnative/blob/bbc3b73784751d2a706932dc69fd67627e3445d4/dm/games/0100BC300CB48000/README.md">FINAL FANTASY X/X-2 HD Remaster</a></b></small></td>+<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/docs/images/blasphemous-2.png" width="256" alt="Blasphemous 2"><br><small><b><a href="https://github.com/seedds/nxnative/blob/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/dm/games/010040801A4C8000/README.md">Blasphemous 2</a></b></small></td>+<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/docs/images/silver-pines.jpg" width="256" alt="Silver Pines"><br><small><b><a href="https://github.com/seedds/nxnative/blob/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/dm/games/0100D5B026844000/README.md">Silver Pines</a></b></small></td>+<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/docs/images/blasphemous.jpg" width="256" alt="Blasphemous"><br><small><b><a href="https://github.com/seedds/nxnative/blob/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/dm/games/0100698009C6E000/README.md">Blasphemous</a></b></small></td></tr><tr>-<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/bbc3b73784751d2a706932dc69fd67627e3445d4/docs/images/mario-rabbids-kingdom-battle.jpg" width="256" alt="Mario + Rabbids Kingdom Battle"><br><small><b><a href="https://github.com/seedds/nxnative/blob/bbc3b73784751d2a706932dc69fd67627e3445d4/dm/games/010067300059A000/README.md">Mario + Rabbids Kingdom Battle</a></b></small></td>-<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/bbc3b73784751d2a706932dc69fd67627e3445d4/docs/images/persona-4-golden.jpg" width="256" alt="Persona 4 Golden"><br><small><b><a href="https://github.com/seedds/nxnative/blob/bbc3b73784751d2a706932dc69fd67627e3445d4/dm/games/010062B01525C000/README.md">Persona 4 Golden</a></b></small></td>-<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/bbc3b73784751d2a706932dc69fd67627e3445d4/docs/images/xenoblade-chronicles-definitive-edition.jpg" width="256" alt="Xenoblade Chronicles: Definitive Edition"><br><small><b><a href="https://github.com/seedds/nxnative/blob/bbc3b73784751d2a706932dc69fd67627e3445d4/dm/games/0100FF500E34A000/README.md">Xenoblade Chronicles: Definitive Edition</a></b></small></td>+<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/docs/images/final-fantasy-x-x2-hd-remaster.jpg" width="256" alt="FINAL FANTASY X/X-2 HD Remaster"><br><small><b><a href="https://github.com/seedds/nxnative/blob/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/dm/games/0100BC300CB48000/README.md">FINAL FANTASY X/X-2 HD Remaster</a></b></small></td>+<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/docs/images/mario-rabbids-kingdom-battle.jpg" width="256" alt="Mario + Rabbids Kingdom Battle"><br><small><b><a href="https://github.com/seedds/nxnative/blob/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/dm/games/010067300059A000/README.md">Mario + Rabbids Kingdom Battle</a></b></small></td>+<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/docs/images/persona-4-golden.jpg" width="256" alt="Persona 4 Golden"><br><small><b><a href="https://github.com/seedds/nxnative/blob/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/dm/games/010062B01525C000/README.md">Persona 4 Golden</a></b></small></td></tr><tr>-<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/bbc3b73784751d2a706932dc69fd67627e3445d4/docs/images/pokemon-legends-arceus.jpg" width="256" alt="Pokémon Legends: Arceus"><br><small><b><a href="https://github.com/seedds/nxnative/blob/bbc3b73784751d2a706932dc69fd67627e3445d4/dm/games/01001F5010DFA000/README.md">Pokémon Legends: Arceus</a></b></small></td>-<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/bbc3b73784751d2a706932dc69fd67627e3445d4/docs/images/super-mario-party-jamboree.jpg" width="256" alt="Super Mario Party Jamboree"><br><small><b><a href="https://github.com/seedds/nxnative/blob/bbc3b73784751d2a706932dc69fd67627e3445d4/dm/games/0100965017338000/README.md">Super Mario Party Jamboree</a></b></small></td>-<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/bbc3b73784751d2a706932dc69fd67627e3445d4/docs/images/cult-of-the-lamb.jpg" width="256" alt="Cult of the Lamb"><br><small><b><a href="https://github.com/seedds/nxnative/blob/bbc3b73784751d2a706932dc69fd67627e3445d4/dm/games/01002E7016C46000/README.md">Cult of the Lamb</a></b></small></td>+<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/docs/images/xenoblade-chronicles-definitive-edition.jpg" width="256" alt="Xenoblade Chronicles: Definitive Edition"><br><small><b><a href="https://github.com/seedds/nxnative/blob/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/dm/games/0100FF500E34A000/README.md">Xenoblade Chronicles: Definitive Edition</a></b></small></td>+<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/docs/images/pokemon-legends-arceus.jpg" width="256" alt="Pokémon Legends: Arceus"><br><small><b><a href="https://github.com/seedds/nxnative/blob/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/dm/games/01001F5010DFA000/README.md">Pokémon Legends: Arceus</a></b></small></td>+<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/docs/images/super-mario-party-jamboree.jpg" width="256" alt="Super Mario Party Jamboree"><br><small><b><a href="https://github.com/seedds/nxnative/blob/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/dm/games/0100965017338000/README.md">Super Mario Party Jamboree</a></b></small></td></tr><tr>-<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/bbc3b73784751d2a706932dc69fd67627e3445d4/docs/images/paper-mario-the-origami-king.jpg" width="256" alt="Paper Mario: The Origami King"><br><small><b><a href="https://github.com/seedds/nxnative/blob/bbc3b73784751d2a706932dc69fd67627e3445d4/dm/games/0100A3900C3E2000/README.md">Paper Mario: The Origami King</a></b></small></td>-<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/bbc3b73784751d2a706932dc69fd67627e3445d4/docs/images/batman-arkham-knight.jpg" width="256" alt="Batman: Arkham Knight"><br><small><b><a href="https://github.com/seedds/nxnative/blob/bbc3b73784751d2a706932dc69fd67627e3445d4/dm/games/0100ACD0163D0000/README.md">Batman: Arkham Knight</a></b></small></td>-<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/bbc3b73784751d2a706932dc69fd67627e3445d4/docs/images/bastion.jpg" width="256" alt="Bastion"><br><small><b><a href="https://github.com/seedds/nxnative/blob/bbc3b73784751d2a706932dc69fd67627e3445d4/dm/games/010038600B27E000/README.md">Bastion</a></b></small></td>+<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/docs/images/cult-of-the-lamb.jpg" width="256" alt="Cult of the Lamb"><br><small><b><a href="https://github.com/seedds/nxnative/blob/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/dm/games/01002E7016C46000/README.md">Cult of the Lamb</a></b></small></td>+<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/docs/images/paper-mario-the-origami-king.jpg" width="256" alt="Paper Mario: The Origami King"><br><small><b><a href="https://github.com/seedds/nxnative/blob/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/dm/games/0100A3900C3E2000/README.md">Paper Mario: The Origami King</a></b></small></td>+<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/docs/images/batman-arkham-knight.jpg" width="256" alt="Batman: Arkham Knight"><br><small><b><a href="https://github.com/seedds/nxnative/blob/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/dm/games/0100ACD0163D0000/README.md">Batman: Arkham Knight</a></b></small></td></tr><tr>-<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/bbc3b73784751d2a706932dc69fd67627e3445d4/docs/images/baba-is-you.jpg" width="256" alt="Baba Is You"><br><small><b><a href="https://github.com/seedds/nxnative/blob/bbc3b73784751d2a706932dc69fd67627e3445d4/dm/games/01002CD00A51C000/README.md">Baba Is You</a></b></small></td>-<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/bbc3b73784751d2a706932dc69fd67627e3445d4/docs/images/steamworld-heist-ii.jpg" width="256" alt="SteamWorld Heist II"><br><small><b><a href="https://github.com/seedds/nxnative/blob/bbc3b73784751d2a706932dc69fd67627e3445d4/dm/games/010089C01E9CA000/README.md">SteamWorld Heist II</a></b></small></td>-<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/bbc3b73784751d2a706932dc69fd67627e3445d4/docs/images/steamworld-heist.jpg" width="256" alt="SteamWorld Heist: Ultimate Edition"><br><small><b><a href="https://github.com/seedds/nxnative/blob/bbc3b73784751d2a706932dc69fd67627e3445d4/dm/games/010016100A186000/README.md">SteamWorld Heist: Ultimate Edition</a></b></small></td>+<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/docs/images/bastion.jpg" width="256" alt="Bastion"><br><small><b><a href="https://github.com/seedds/nxnative/blob/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/dm/games/010038600B27E000/README.md">Bastion</a></b></small></td>+<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/docs/images/baba-is-you.jpg" width="256" alt="Baba Is You"><br><small><b><a href="https://github.com/seedds/nxnative/blob/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/dm/games/01002CD00A51C000/README.md">Baba Is You</a></b></small></td>+<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/docs/images/steamworld-heist-ii.jpg" width="256" alt="SteamWorld Heist II"><br><small><b><a href="https://github.com/seedds/nxnative/blob/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/dm/games/010089C01E9CA000/README.md">SteamWorld Heist II</a></b></small></td></tr><tr>-<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/bbc3b73784751d2a706932dc69fd67627e3445d4/docs/images/subnautica-below-zero.jpg" width="256" alt="Subnautica: Below Zero"><br><small><b><a href="https://github.com/seedds/nxnative/blob/bbc3b73784751d2a706932dc69fd67627e3445d4/dm/games/010014C011146000/README.md">Subnautica: Below Zero</a></b></small></td>-<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/bbc3b73784751d2a706932dc69fd67627e3445d4/docs/images/steamworld-dig-2.jpg" width="256" alt="SteamWorld Dig 2"><br><small><b><a href="https://github.com/seedds/nxnative/blob/bbc3b73784751d2a706932dc69fd67627e3445d4/dm/games/0100CA9002322000/README.md">SteamWorld Dig 2</a></b></small></td>-<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/bbc3b73784751d2a706932dc69fd67627e3445d4/docs/images/streets-of-rage-4.jpg" width="256" alt="Streets of Rage 4"><br><small><b><a href="https://github.com/seedds/nxnative/blob/bbc3b73784751d2a706932dc69fd67627e3445d4/dm/games/0100EC9010258000/README.md">Streets of Rage 4</a></b></small></td>+<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/docs/images/steamworld-heist.jpg" width="256" alt="SteamWorld Heist: Ultimate Edition"><br><small><b><a href="https://github.com/seedds/nxnative/blob/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/dm/games/010016100A186000/README.md">SteamWorld Heist: Ultimate Edition</a></b></small></td>+<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/docs/images/subnautica-below-zero.jpg" width="256" alt="Subnautica: Below Zero"><br><small><b><a href="https://github.com/seedds/nxnative/blob/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/dm/games/010014C011146000/README.md">Subnautica: Below Zero</a></b></small></td>+<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/docs/images/steamworld-dig-2.jpg" width="256" alt="SteamWorld Dig 2"><br><small><b><a href="https://github.com/seedds/nxnative/blob/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/dm/games/0100CA9002322000/README.md">SteamWorld Dig 2</a></b></small></td></tr><tr>-<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/bbc3b73784751d2a706932dc69fd67627e3445d4/docs/images/mario-party-superstars.jpg" width="256" alt="Mario Party Superstars"><br><small><b><a href="https://github.com/seedds/nxnative/blob/bbc3b73784751d2a706932dc69fd67627e3445d4/dm/games/01006FE013472000/README.md">Mario Party Superstars</a></b></small></td>-<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/bbc3b73784751d2a706932dc69fd67627e3445d4/docs/images/subnautica.jpg" width="256" alt="Subnautica"><br><small><b><a href="https://github.com/seedds/nxnative/blob/bbc3b73784751d2a706932dc69fd67627e3445d4/dm/games/0100429011144000/README.md">Subnautica</a></b></small></td>-<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/bbc3b73784751d2a706932dc69fd67627e3445d4/docs/images/steamworld-dig.jpg" width="256" alt="SteamWorld Dig"><br><small><b><a href="https://github.com/seedds/nxnative/blob/bbc3b73784751d2a706932dc69fd67627e3445d4/dm/games/01009320084A4000/README.md">SteamWorld Dig</a></b></small></td>+<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/docs/images/streets-of-rage-4.jpg" width="256" alt="Streets of Rage 4"><br><small><b><a href="https://github.com/seedds/nxnative/blob/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/dm/games/0100EC9010258000/README.md">Streets of Rage 4</a></b></small></td>+<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/docs/images/mario-party-superstars.jpg" width="256" alt="Mario Party Superstars"><br><small><b><a href="https://github.com/seedds/nxnative/blob/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/dm/games/01006FE013472000/README.md">Mario Party Superstars</a></b></small></td>+<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/docs/images/subnautica.jpg" width="256" alt="Subnautica"><br><small><b><a href="https://github.com/seedds/nxnative/blob/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/dm/games/0100429011144000/README.md">Subnautica</a></b></small></td></tr><tr>-<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/bbc3b73784751d2a706932dc69fd67627e3445d4/docs/images/team-sonic-racing.jpg" width="256" alt="Team Sonic Racing"><br><small><b><a href="https://github.com/seedds/nxnative/blob/bbc3b73784751d2a706932dc69fd67627e3445d4/dm/games/010092B0091D0000/README.md">Team Sonic Racing</a></b></small></td>-<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/bbc3b73784751d2a706932dc69fd67627e3445d4/docs/images/well-dweller.jpg" width="256" alt="Well Dweller"><br><small><b><a href="https://github.com/seedds/nxnative/blob/bbc3b73784751d2a706932dc69fd67627e3445d4/dm/games/0100217023F6C000/README.md">Well Dweller</a></b></small></td>-<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/bbc3b73784751d2a706932dc69fd67627e3445d4/docs/images/need-for-speed-hot-pursuit-remastered.jpg" width="256" alt="Need for Speed: Hot Pursuit Remastered"><br><small><b><a href="https://github.com/seedds/nxnative/blob/bbc3b73784751d2a706932dc69fd67627e3445d4/dm/games/010029B0118E8000/README.md">Need for Speed: Hot Pursuit Remastered</a></b></small></td>+<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/docs/images/steamworld-dig.jpg" width="256" alt="SteamWorld Dig"><br><small><b><a href="https://github.com/seedds/nxnative/blob/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/dm/games/01009320084A4000/README.md">SteamWorld Dig</a></b></small></td>+<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/docs/images/team-sonic-racing.jpg" width="256" alt="Team Sonic Racing"><br><small><b><a href="https://github.com/seedds/nxnative/blob/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/dm/games/010092B0091D0000/README.md">Team Sonic Racing</a></b></small></td>+<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/docs/images/well-dweller.jpg" width="256" alt="Well Dweller"><br><small><b><a href="https://github.com/seedds/nxnative/blob/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/dm/games/0100217023F6C000/README.md">Well Dweller</a></b></small></td></tr><tr>-<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/bbc3b73784751d2a706932dc69fd67627e3445d4/docs/images/ea-sports-fc-27.jpg" width="256" alt="EA SPORTS FC 27"><br><small><b><a href="https://github.com/seedds/nxnative/blob/bbc3b73784751d2a706932dc69fd67627e3445d4/dm/games/0100C49025D3E000/README.md">EA SPORTS FC 27</a></b><br>60 fps with 1.8d.310c</small></td>-<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/bbc3b73784751d2a706932dc69fd67627e3445d4/docs/images/portal-2.jpg" width="256" alt="Portal 2"><br><small><b><a href="https://github.com/seedds/nxnative/blob/bbc3b73784751d2a706932dc69fd67627e3445d4/dm/games/0100ABD01785C000/README.md">Portal 2</a></b></small></td>+<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/docs/images/need-for-speed-hot-pursuit-remastered.jpg" width="256" alt="Need for Speed: Hot Pursuit Remastered"><br><small><b><a href="https://github.com/seedds/nxnative/blob/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/dm/games/010029B0118E8000/README.md">Need for Speed: Hot Pursuit Remastered</a></b></small></td>+<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/docs/images/ea-sports-fc-27.jpg" width="256" alt="EA SPORTS FC 27"><br><small><b><a href="https://github.com/seedds/nxnative/blob/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/dm/games/0100C49025D3E000/README.md">EA SPORTS FC 27</a></b><br>60 fps with 1.8d.310c</small></td>+<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/docs/images/portal-2.jpg" width="256" alt="Portal 2"><br><small><b><a href="https://github.com/seedds/nxnative/blob/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/dm/games/0100ABD01785C000/README.md">Portal 2</a></b></small></td>+</tr>+<tr>+<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/docs/images/super-monkey-ball-banana-rumble.jpg" width="256" alt="Super Monkey Ball Banana Rumble"><br><small><b><a href="https://github.com/seedds/nxnative/blob/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/dm/games/010031F019294000/README.md">Super Monkey Ball Banana Rumble</a></b></small></td>+<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/docs/images/atelier-ryza-dx.jpg" width="256" alt="Atelier Ryza: Ever Darkness & the Secret Hideout DX"><br><small><b><a href="https://github.com/seedds/nxnative/blob/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/dm/games/0100199023B2E000/README.md">Atelier Ryza: Ever Darkness & the Secret Hideout DX</a></b></small></td>+<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/docs/images/dragon-quest-iii-hd-2d-remake.jpg" width="256" alt="DRAGON QUEST III HD-2D Remake"><br><small><b><a href="https://github.com/seedds/nxnative/blob/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/dm/games/01003E601E324000/README.md">DRAGON QUEST III HD-2D Remake</a></b></small></td>+</tr>+<tr>+<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/docs/images/hyrule-warriors-definitive-edition.jpg" width="256" alt="Hyrule Warriors: Definitive Edition"><br><small><b><a href="https://github.com/seedds/nxnative/blob/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/dm/games/0100AE00096EA000/README.md">Hyrule Warriors: Definitive Edition</a></b></small></td>+<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/docs/images/metroid-prime-remastered.jpg" width="256" alt="Metroid Prime Remastered"><br><small><b><a href="https://github.com/seedds/nxnative/blob/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/dm/games/010012101468C000/README.md">Metroid Prime Remastered</a></b></small></td>+<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/docs/images/dragon-quest-i-ii-hd-2d-remake.jpg" width="256" alt="DRAGON QUEST I & II HD-2D Remake"><br><small><b><a href="https://github.com/seedds/nxnative/blob/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/dm/games/0100D7C01F254000/README.md">DRAGON QUEST I & II HD-2D Remake</a></b></small></td>+</tr>+<tr>+<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/docs/images/dead-cells.jpg" width="256" alt="Dead Cells"><br><small><b><a href="https://github.com/seedds/nxnative/blob/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/dm/games/0100646009FBE000/README.md">Dead Cells</a></b></small></td>+<td align="center" valign="top" width="33%"><img src="https://raw.githubusercontent.com/seedds/nxnative/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/docs/images/hollow-knight.jpg" width="256" alt="Hollow Knight"><br><small><b><a href="https://github.com/seedds/nxnative/blob/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/dm/games/0100633007D48000/README.md">Hollow Knight</a></b></small></td><td></td></tr></table>diff --git a/GAMES.zh-CN.md b/GAMES.zh-CN.mdindex b501bc88..0cc079a7 100644--- a/GAMES.zh-CN.md+++ b/GAMES.zh-CN.md@@ -1,6 +1,6 @@# 游戏-本 fork 有 profile 的全部游戏,以及每款需要的更新包。玩家主页是 [README.zh-CN.md](README.zh-CN.md)。[dm/games/README.md](https://github.com/seedds/nxnative/blob/bbc3b73784751d2a706932dc69fd67627e3445d4/dm/games/README.md)(英文)是引擎对每款游戏的笔记。截图和 IPA 大小在英文页的[图库](GAMES.md#gallery)里。English: [GAMES.md](GAMES.md).+本 fork 有 profile 的全部游戏,以及每款需要的更新包。玩家主页是 [README.zh-CN.md](README.zh-CN.md)。[dm/games/README.md](https://github.com/seedds/nxnative/blob/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/dm/games/README.md)(英文)是引擎对每款游戏的笔记。截图和 IPA 大小在英文页的[图库](GAMES.md#gallery)里。English: [GAMES.md](GAMES.md).## 实测游戏diff --git a/README.md b/README.mdindex 8080725e..8695951a 100644--- a/README.md+++ b/README.md@@ -112,11 +112,11 @@ for your own games.**On the Mac**, a finished game appears in the library with its key art. **Play** starts it.**Launch options** (per game, kept across rebuilds) set the frame rate, console mode (docked orhandheld), render scale and upscaling, game language, controls and more; what each does is in-[docs/settings.md](https://github.com/seedds/nxnative/blob/bbc3b73784751d2a706932dc69fd67627e3445d4/docs/settings.md). A controller drives the launcher as well as the games.+[docs/settings.md](https://github.com/seedds/nxnative/blob/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/docs/settings.md). A controller drives the launcher as well as the games.**On the iPhone**, the app shows the same settings before the game starts; tap **Play**. Touchcontrols come in a 2D and a 3D layout (tap the button at the top centre), and a connected controller-(Xbox, PlayStation, Switch Pro, MFi) replaces them. [docs/playing.md](https://github.com/seedds/nxnative/blob/bbc3b73784751d2a706932dc69fd67627e3445d4/docs/playing.md) covers touch,+(Xbox, PlayStation, Switch Pro, MFi) replaces them. [docs/playing.md](https://github.com/seedds/nxnative/blob/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/docs/playing.md) covers touch,rumble and motion. Short stutters the first time a scene appears are normal: the app compilesgraphics for it once and remembers them. The game's data (`romfs.img`) can live on an external drivethat the Files app picks.@@ -148,12 +148,12 @@ been tried on a phone yet. A few of them:| | Game | Where it runs | Status ||---|---|---|---|-| <img src="https://raw.githubusercontent.com/seedds/nxnative/bbc3b73784751d2a706932dc69fd67627e3445d4/docs/images/zelda-tears-of-the-kingdom.jpg" width="96" alt=""> | The Legend of Zelda: Tears of the Kingdom | Mac and iPhone | **Verified here**: 304,243 files, byte-checked; ~17 GB |-| <img src="https://raw.githubusercontent.com/seedds/nxnative/bbc3b73784751d2a706932dc69fd67627e3445d4/docs/images/hades-ii.jpg" width="96" alt=""> | Hades II | Mac and iPhone | **Verified here** |-| <img src="https://raw.githubusercontent.com/seedds/nxnative/bbc3b73784751d2a706932dc69fd67627e3445d4/docs/images/animal-crossing-new-horizons.jpg" width="96" alt=""> | Animal Crossing: New Horizons | iPhone | **Verified here**: runs smoothly |-| <img src="https://raw.githubusercontent.com/seedds/nxnative/bbc3b73784751d2a706932dc69fd67627e3445d4/docs/images/super-mario-odyssey.jpg" width="96" alt=""> | Super Mario Odyssey | iPhone | Reported playable upstream |-| <img src="https://raw.githubusercontent.com/seedds/nxnative/bbc3b73784751d2a706932dc69fd67627e3445d4/docs/images/zelda-breath-of-the-wild.jpg" width="96" alt=""> | The Legend of Zelda: Breath of the Wild | iPhone | Reported playable upstream; 60 fps with 1.9.0 |-| <img src="https://raw.githubusercontent.com/seedds/nxnative/bbc3b73784751d2a706932dc69fd67627e3445d4/docs/images/mario-kart-8-deluxe.jpg" width="96" alt=""> | Mario Kart 8 Deluxe | iPhone | Reported playable upstream |+| <img src="https://raw.githubusercontent.com/seedds/nxnative/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/docs/images/zelda-tears-of-the-kingdom.jpg" width="96" alt=""> | The Legend of Zelda: Tears of the Kingdom | Mac and iPhone | **Verified here**: 304,243 files, byte-checked; ~17 GB |+| <img src="https://raw.githubusercontent.com/seedds/nxnative/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/docs/images/hades-ii.jpg" width="96" alt=""> | Hades II | Mac and iPhone | **Verified here** |+| <img src="https://raw.githubusercontent.com/seedds/nxnative/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/docs/images/animal-crossing-new-horizons.jpg" width="96" alt=""> | Animal Crossing: New Horizons | iPhone | **Verified here**: runs smoothly |+| <img src="https://raw.githubusercontent.com/seedds/nxnative/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/docs/images/super-mario-odyssey.jpg" width="96" alt=""> | Super Mario Odyssey | iPhone | Reported playable upstream |+| <img src="https://raw.githubusercontent.com/seedds/nxnative/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/docs/images/zelda-breath-of-the-wild.jpg" width="96" alt=""> | The Legend of Zelda: Breath of the Wild | iPhone | Reported playable upstream; 60 fps with 1.9.0 |+| <img src="https://raw.githubusercontent.com/seedds/nxnative/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/docs/images/mario-kart-8-deluxe.jpg" width="96" alt=""> | Mario Kart 8 Deluxe | iPhone | Reported playable upstream |**[GAMES.md](GAMES.md)** (中文: [GAMES.zh-CN.md](GAMES.zh-CN.md)) has the screenshot gallery with eachgame's install size, and the full table with the update version each game needs: the update NSP's@@ -162,7 +162,7 @@ display version must match the profile's, or the build says so.## Limitations- **Only the games with a profile.** A title outside the list needs bring-up work of its own; the- place to start is [docs/agents](https://github.com/seedds/nxnative/blob/bbc3b73784751d2a706932dc69fd67627e3445d4/docs/agents/README.md), upstream's guide for another Switch title.+ place to start is [docs/agents](https://github.com/seedds/nxnative/blob/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/docs/agents/README.md), upstream's guide for another Switch title.- **Big games on an iPhone hit a memory limit.** Without the Increased Memory Limit entitlement iOSgives the app about 3.4 GB, which is not enough for Tears of the Kingdom. The app requests it, andAltStore Classic 2.2+, Impactor and Xcode with a Personal Team keep it; SideStore with a free Apple@@ -184,7 +184,7 @@ display version must match the profile's, or the build says so.[patches/README.md](patches/README.md) explains it, and `python3 tools/engine.py status` lists whatis carried. A daily job moves the pin and opens a pull request, or an issue naming the patch that nolonger fits. The links to the engine's documents in this README point at nxnative at the pinned commit.-- **Another Switch game:** [docs/agents](https://github.com/seedds/nxnative/blob/bbc3b73784751d2a706932dc69fd67627e3445d4/docs/agents/README.md) (extraction, binary survey, bring-up).+- **Another Switch game:** [docs/agents](https://github.com/seedds/nxnative/blob/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/docs/agents/README.md) (extraction, binary survey, bring-up).- **Release history:** [CHANGELOG.md](CHANGELOG.md).## Credits@@ -216,7 +216,7 @@ All of the engine work is other people's. This repository adds the launcher and- **yuzu**, **deko3d**, **libvpx**, **stb_vorbis**, **libdeflate** — see upstream's acknowledgementlist for what each contributes.-`dm/third_party` ships other projects with their licenses ([list](https://github.com/seedds/nxnative/blob/bbc3b73784751d2a706932dc69fd67627e3445d4/dm/third_party/README.md)).+`dm/third_party` ships other projects with their licenses ([list](https://github.com/seedds/nxnative/blob/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/dm/third_party/README.md)).## Legaldiff --git a/README.zh-CN.md b/README.zh-CN.mdindex 7850dcc2..19bc2032 100644--- a/README.zh-CN.md+++ b/README.zh-CN.md@@ -95,11 +95,11 @@ App 需要 iOS 或 iPadOS 26 或更新。封面是 Mac 启动器为你自己的**在 Mac 上**,构建好的游戏带着封面出现在游戏库里,点 **Play** 启动。**启动选项**(按游戏保存,重新构建后仍然保留)可设置帧率、主机模式(底座或掌机)、渲染缩放和超分辨率、游戏语言、操控等;每项的-作用见 [docs/settings.md](https://github.com/seedds/nxnative/blob/bbc3b73784751d2a706932dc69fd67627e3445d4/docs/settings.md)(英文)。手柄既能操作游戏,也能操作启动器。+作用见 [docs/settings.md](https://github.com/seedds/nxnative/blob/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/docs/settings.md)(英文)。手柄既能操作游戏,也能操作启动器。**在 iPhone 上**,App 在游戏开始前显示同样的设置,点 **Play** 即可。触屏操控有 2D 和 3D 两种布局(点顶部中央的按钮切换),连接手柄(Xbox、PlayStation、Switch Pro、MFi)后触屏控件会隐藏。-触屏、震动和体感见 [docs/playing.md](https://github.com/seedds/nxnative/blob/bbc3b73784751d2a706932dc69fd67627e3445d4/docs/playing.md)(英文)。新场景第一次出现时短促卡顿是正常的:+触屏、震动和体感见 [docs/playing.md](https://github.com/seedds/nxnative/blob/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/docs/playing.md)(英文)。新场景第一次出现时短促卡顿是正常的:App 会为它编译一次图形并记住。游戏数据(`romfs.img`)可以放在外置硬盘上,用「文件」App 选取。**游戏语言。** 默认英文。Mac 上用启动选项里的「游戏语言」一行。面板里没有的设置,可以写一个@@ -125,12 +125,12 @@ iPhone 上在「文件」App 里该 App 名字下:`save/` 和 `log.txt`(上| | 游戏 | 运行于 | 状态 ||---|---|---|---|-| <img src="https://raw.githubusercontent.com/seedds/nxnative/bbc3b73784751d2a706932dc69fd67627e3445d4/docs/images/zelda-tears-of-the-kingdom.jpg" width="96" alt=""> | 塞尔达传说:王国之泪 | Mac 和 iPhone | **本 fork 验证**:304,243 个文件,逐字节校验;约 17 GB |-| <img src="https://raw.githubusercontent.com/seedds/nxnative/bbc3b73784751d2a706932dc69fd67627e3445d4/docs/images/hades-ii.jpg" width="96" alt=""> | Hades II | Mac 和 iPhone | **本 fork 验证** |-| <img src="https://raw.githubusercontent.com/seedds/nxnative/bbc3b73784751d2a706932dc69fd67627e3445d4/docs/images/animal-crossing-new-horizons.jpg" width="96" alt=""> | 集合啦!动物森友会 | iPhone | **本 fork 验证**:流畅运行 |-| <img src="https://raw.githubusercontent.com/seedds/nxnative/bbc3b73784751d2a706932dc69fd67627e3445d4/docs/images/super-mario-odyssey.jpg" width="96" alt=""> | 超级马力欧 奥德赛 | iPhone | 上游报告可玩 |-| <img src="https://raw.githubusercontent.com/seedds/nxnative/bbc3b73784751d2a706932dc69fd67627e3445d4/docs/images/zelda-breath-of-the-wild.jpg" width="96" alt=""> | 塞尔达传说:旷野之息 | iPhone | 上游报告可玩;1.9.0 可 60 fps |-| <img src="https://raw.githubusercontent.com/seedds/nxnative/bbc3b73784751d2a706932dc69fd67627e3445d4/docs/images/mario-kart-8-deluxe.jpg" width="96" alt=""> | 马力欧卡丁车 8 豪华版 | iPhone | 上游报告可玩 |+| <img src="https://raw.githubusercontent.com/seedds/nxnative/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/docs/images/zelda-tears-of-the-kingdom.jpg" width="96" alt=""> | 塞尔达传说:王国之泪 | Mac 和 iPhone | **本 fork 验证**:304,243 个文件,逐字节校验;约 17 GB |+| <img src="https://raw.githubusercontent.com/seedds/nxnative/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/docs/images/hades-ii.jpg" width="96" alt=""> | Hades II | Mac 和 iPhone | **本 fork 验证** |+| <img src="https://raw.githubusercontent.com/seedds/nxnative/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/docs/images/animal-crossing-new-horizons.jpg" width="96" alt=""> | 集合啦!动物森友会 | iPhone | **本 fork 验证**:流畅运行 |+| <img src="https://raw.githubusercontent.com/seedds/nxnative/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/docs/images/super-mario-odyssey.jpg" width="96" alt=""> | 超级马力欧 奥德赛 | iPhone | 上游报告可玩 |+| <img src="https://raw.githubusercontent.com/seedds/nxnative/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/docs/images/zelda-breath-of-the-wild.jpg" width="96" alt=""> | 塞尔达传说:旷野之息 | iPhone | 上游报告可玩;1.9.0 可 60 fps |+| <img src="https://raw.githubusercontent.com/seedds/nxnative/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/docs/images/mario-kart-8-deluxe.jpg" width="96" alt=""> | 马力欧卡丁车 8 豪华版 | iPhone | 上游报告可玩 |**[GAMES.zh-CN.md](GAMES.zh-CN.md)**(English: [GAMES.md](GAMES.md),带截图图库和每款的安装大小)有完整表格和每款游戏需要的更新包版本:更新包 NSP 的显示版本必须与 profile 一致,否则构建会提示。@@ -138,7 +138,7 @@ iPhone 上在「文件」App 里该 App 名字下:`save/` 和 `log.txt`(上## 限制- **只支持有 profile 的游戏。** 列表之外的游戏需要单独的 bring-up 工作;起点是- [docs/agents](https://github.com/seedds/nxnative/blob/bbc3b73784751d2a706932dc69fd67627e3445d4/docs/agents/README.md)(上游为其他 Switch 游戏写的指南,英文)。+ [docs/agents](https://github.com/seedds/nxnative/blob/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/docs/agents/README.md)(上游为其他 Switch 游戏写的指南,英文)。- **大体积游戏在 iPhone 上会碰到内存上限。** 没有 Increased Memory Limit entitlement 时 iOS 只给 App约 3.4 GB,不够《王国之泪》用。App 请求了它,AltStore Classic 2.2+、Impactor 和 Xcode + Personal Team会保留;SideStore 配合免费 Apple ID 需要对 App ID 做一次性修复,Sideloadly 会丢掉它@@ -156,7 +156,7 @@ iPhone 上在「文件」App 里该 App 名字下:`save/` 和 `log.txt`(上`python3 tools/engine.py sync` 把它构建到 `engine/`。见 [patches/README.md](patches/README.md)。`python3 tools/engine.py status` 列出带着的全部补丁。每天一次的任务移动固定提交并开 pull request,某个补丁对不上时开一个点名该补丁的 issue。本页指向引擎文档的链接都指向 nxnative 的固定提交。-- **其他 Switch 游戏:** [docs/agents](https://github.com/seedds/nxnative/blob/bbc3b73784751d2a706932dc69fd67627e3445d4/docs/agents/README.md)(解包、二进制调查、bring-up)。+- **其他 Switch 游戏:** [docs/agents](https://github.com/seedds/nxnative/blob/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/docs/agents/README.md)(解包、二进制调查、bring-up)。- **版本历史:** [CHANGELOG.zh-CN.md](CHANGELOG.zh-CN.md)。## 致谢@@ -180,7 +180,7 @@ iPhone 上在「文件」App 里该 App 名字下:`save/` 和 `log.txt`(上- **[SPIRV-Cross](https://github.com/KhronosGroup/SPIRV-Cross)** —— SPIR-V 转 Metal Shading Language。- **yuzu**、**deko3d**、**libvpx**、**stb_vorbis**、**libdeflate** —— 各自贡献见上游致谢列表。-`dm/third_party` 里随附了其他项目及其许可证([列表](https://github.com/seedds/nxnative/blob/bbc3b73784751d2a706932dc69fd67627e3445d4/dm/third_party/README.md))。+`dm/third_party` 里随附了其他项目及其许可证([列表](https://github.com/seedds/nxnative/blob/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/dm/third_party/README.md))。## 法律diff --git a/frontend/README.md b/frontend/README.mdindex 7fb991df..383688ad 100644--- a/frontend/README.md+++ b/frontend/README.md@@ -163,7 +163,7 @@ library manifest is stored at## Launch optionsThe button beside **Play** opens the game's launch options: the settings the iPhone-launcher shows before a game starts ([docs/settings.md](https://github.com/seedds/nxnative/blob/bbc3b73784751d2a706932dc69fd67627e3445d4/docs/settings.md)), read+launcher shows before a game starts ([docs/settings.md](https://github.com/seedds/nxnative/blob/cd859c38a8f8890ddbb57a23d6f45e23ba9e6651/docs/settings.md)), readfrom the list the engine packs into the Mac app (`Contents/Resources/dm/launcher.json`,written by `dm/games/settings.py` from `dm/games/settings.tsv`, and the engine change thatpacks it is [seedds/nxnative#352](https://github.com/seedds/nxnative/pull/352), so adiff --git a/patches/0001-runtime-profile.patch b/patches/0001-runtime-profile.patchindex 5e20331d..f0699cf2 100644--- a/patches/0001-runtime-profile.patch+++ b/patches/0001-runtime-profile.patch@@ -20,20 +20,20 @@ Issue: LNPANDY/NX2Apple#123dm/host/hle_profile.h | 37 ++++dm/host/hle_svc.c | 34 ++--dm/host/loader.c | 2 +-- dm/host/tests/Makefile | 60 +++----+ dm/host/tests/Makefile | 68 ++++----dm/host/tests/t_layout_runtime.c | 103 +++++++++++dm/ios/Sources/DmGamepad.m | 2 +-docs/env_switches.tsv | 1 +- 13 files changed, 510 insertions(+), 53 deletions(-)+ 13 files changed, 514 insertions(+), 57 deletions(-)create mode 100644 dm/host/hle_profile.ccreate mode 100644 dm/host/hle_profile.hcreate mode 100644 dm/host/tests/t_layout_runtime.cdiff --git a/dm/games/game.py b/dm/games/game.py-index 5d04719..359d377 100644+index 6089fe9..bc2ad82 100644--- a/dm/games/game.py+++ b/dm/games/game.py-@@ -199,6 +199,40 @@ if __name__ == '__main__':+@@ -202,6 +202,40 @@ if __name__ == '__main__':out, text = Path(a[2]), header(load(a[1])); out.parent.mkdir(parents=True, exist_ok=True)if not (out.exists() and out.read_text() == text): # written only when it changes: make runs this every time (the profile folder can change under the same GAME), and an unchanged header must not rebuild the hosttmp = out.with_name(out.name + '.tmp'); tmp.write_text(text); tmp.replace(out)@@ -75,7 +75,7 @@ index 5d04719..359d377 100644print(load(a[1]).dir)elif len(a) == 3 and a[0] == 'link': # link → the profile folder (replaced when it points elsewhere)diff --git a/dm/host/dm.h b/dm/host/dm.h-index 25be8aa..3ad1bb2 100644+index c33ee06..bd7ecf6 100644--- a/dm/host/dm.h+++ b/dm/host/dm.h@@ -7,6 +7,7 @@@@ -87,23 +87,23 @@ index 25be8aa..3ad1bb2 100644// Explicit host work does not occupy a guest core (Metal submission, or a blocked native codec lock). A contended host mutex must count as blocked: a signal's same-core handoff// can otherwise wait forever for a peer that needs the signaller's native lock. Uncontended locks retain guest ordering; the counter nests inside existing host work.diff --git a/dm/host/hle_fpslock.c b/dm/host/hle_fpslock.c-index b2d07fb..eea8efc 100644+index 9a8b631..0b70203 100644--- a/dm/host/hle_fpslock.c+++ b/dm/host/hle_fpslock.c-@@ -207,7 +207,7 @@ void dm_fps_lock_tick(void) {- for (int k = 0; k < nue; k++) { rows[nrow++] = &ue[k]; base = g_mod[i].base; }- }- fb_find(); if (!nrow && !nier && !fb.n && !ue_missing) return;+@@ -217,7 +217,7 @@ void dm_fps_lock_tick(void) {+ if (state == -2) {+ state = -1; pthread_once(&g_found, lock_find);+ if (!nrow && !nier && !fb.n && !ue_missing) return;- const char *e = getenv("DM_FPS_TARGET"); int t = e ? atoi(e) : DM_GAME_FPS_TARGET; src = e ? "DM_FPS_TARGET" : "game profile fps_target";+ const char *e = getenv("DM_FPS_TARGET"); int t = e ? atoi(e) : dm_profile()->fps_target; src = e ? "DM_FPS_TARGET" : "game profile fps_target";if (t != 0 && t != 30 && t != 60) { LOG("[RED] DM_FPS_TARGET=%s: must be 0, 30 or 60; leaving the game's frame limit", e); t = 0; }if (t && ue_missing) LOG("[RED] main: Unreal %s not found by the rewriter (ue_cvar.py NAMES; game profile ue_fps_cvar): the game's own frame limit stays", DM_GAME_UE_FPS_CVAR);if (!nrow && !nier && !fb.n) return;diff --git a/dm/host/hle_fs.c b/dm/host/hle_fs.c-index 92fc956..f4fe806 100644+index 80a055b..ab8a182 100644--- a/dm/host/hle_fs.c+++ b/dm/host/hle_fs.c-@@ -590,7 +590,7 @@ HLE_FORCE("_ZN2nn2fs14ExtendSaveDataERKNS_7account3UidEll", "fsp-srv; extend sav+@@ -592,7 +592,7 @@ HLE_FORCE("_ZN2nn2fs14ExtendSaveDataERKNS_7account3UidEll", "fsp-srv; extend savHLE_FORCE("_ZN2nn2fs14EnsureSaveDataERKNS_7account3UidE", "fsp-srv; the save directory is created at mount time", Result, h_fs_EnsureSave, const void *uid) { (void)uid; return RES_OK; }// Another application's save data (Tears of the Kingdom asks by application ID and would mount it read-only): the host keeps only this game's own save, which exists once mountedHLE_FORCE("_ZN2nn2fs18IsSaveDataExistingENS_13ApplicationIdERKNS_7account3UidE", "fsp-srv; only this game's own save data exists", int, h_fs_SaveExisting, uint64_t app, const void *uid) {@@ -113,10 +113,10 @@ index 92fc956..f4fe806 100644HLE_FORCE("_ZN2nn2fs21MountSaveDataReadOnlyEPKcNS_13ApplicationIdERKNS_7account3UidE", "fsp-srv; another program's save data: none", Result, h_fs_MountSaveRO, const char *name, uint64_t app, const void *uid) {(void)uid; LOG("[RED] fs read-only mount of another program's save data %s: program %016llx, the host has none", name, (unsigned long long)app); return 0x7d402u; // fs ResultTargetNotFounddiff --git a/dm/host/hle_os.c b/dm/host/hle_os.c-index 2d1afec..14b3ee5 100644+index a1ca854..2bd6389 100644--- a/dm/host/hle_os.c+++ b/dm/host/hle_os.c-@@ -120,7 +120,7 @@ HLE_FORCE("_ZN2nn6crypto36GenerateCryptographicallyRandomBytesEPvm", "csrng serv+@@ -124,7 +124,7 @@ HLE_FORCE("_ZN2nn6crypto36GenerateCryptographicallyRandomBytesEPvm", "csrng serv// The profile's game_env (KEY=VALUE, separated by spaces; DM_GAME_ENV overrides it, also from Documents/env.txt) answers getenv for those names; any other name goes to the SDK's own getenvstatic const char **g_env_kv; // "KEY=VALUE" strings, NULL-terminatedstatic void game_env_init(void) {@@ -125,7 +125,7 @@ index 2d1afec..14b3ee5 100644int n = 0; for (const char *p = e; *p; p++) n += *p == '=';if (!(g_env_kv = calloc((size_t)n + 1, sizeof *g_env_kv))) die("game_env allocation failed");char *s = strdup(e); int k = 0;-@@ -152,7 +152,7 @@ static void sa_init(void) {+@@ -157,7 +157,7 @@ static void sa_init(void) {g_sa_alloc = ms ? module_sym(ms, "_ZN2nn3mem17StandardAllocator8AllocateEm") : NULL;g_sa_alloc_al = ms ? module_sym(ms, "_ZN2nn3mem17StandardAllocator8AllocateEmm") : NULL;if (!g_sa_alloc || !g_sa_alloc_al) die("StandardAllocator::Allocate not found in the SDK");@@ -465,7 +465,7 @@ index 0000000..a2febeb+const struct dm_profile *dm_profile(void); // loaded once; never NULL+void dm_profile_log(void); // one line per differing value (called after loading)diff --git a/dm/host/hle_svc.c b/dm/host/hle_svc.c-index 4f440a0..5e7eb0e 100644+index 8939b05..ff2e3a3 100644--- a/dm/host/hle_svc.c+++ b/dm/host/hle_svc.c@@ -16,7 +16,7 @@@@ -516,7 +516,7 @@ index 4f440a0..5e7eb0e 100644static size_t image_bytes(void) { size_t n = 0; for (int i = 0; i < g_nmod; i++) if (!g_mod[i].nro) n += g_mod[i].size; // an NRO lives in memory the game allocated (its image and bss buffers)return (n + 0x1fffff) & ~(size_t)0x1fffff; }// Giant bss (modules with the patch area before the base, patch_nso.py FAR): the image bytes beyond the file part. Used memory was reported as "heap + 64 MB", where the 64 MB covers ordinary modules' code and data (Mario's two modules are about 74 MB together,-@@ -459,11 +459,11 @@ uint64_t svc_dispatch(int num, uint64_t *regs, uint64_t orig_addr) {+@@ -461,11 +461,11 @@ uint64_t svc_dispatch(int num, uint64_t *regs, uint64_t orig_addr) {// Logged once (Mario's retries would repeat it): a game that sizes its heap as pool − used memory and does not retry stops here when its modules are larger than the used memory reported// (profile mem_used; the NSP script's probe boot reads this line, and sets mem_used when no SetHeapSize succeeds afterwards)static int once; if (!once++) LOG("[mem] SetHeapSize %#zx + modules %#zx > app pool %#llx (used memory reported %#llx + bss %#zx)", size, image_bytes() - big_bss_bytes(),@@ -531,7 +531,7 @@ index 4f440a0..5e7eb0e 100644pthread_mutex_unlock(&g_map_lock); regs[0] = 0x10801; return 0;}int rc = 0;-@@ -607,8 +607,8 @@ uint64_t svc_dispatch(int num, uint64_t *regs, uint64_t orig_addr) {+@@ -609,8 +609,8 @@ uint64_t svc_dispatch(int num, uint64_t *regs, uint64_t orig_addr) {// and maps new ones for later allocations, until a map fails: then it unmaps the cached block and retries (measured on the Mac: the refused 4 MB map at +0x43e2c000 was followed by// UnmapPhysicalMemory of the 3.15 GB block and the same map again). Without the limit the mapped total went past the pool in the first minute and the freed block stayed mapped.// Off by default: Ace Attorney Investigations Collection maps a little more than the 1 GB pool its profile reports@@ -542,7 +542,7 @@ index 4f440a0..5e7eb0e 100644if (need && need > room) {pthread_mutex_unlock(&g_map_lock);static _Atomic int nref; if (atomic_fetch_add(&nref, 1) < 8) LOG("[mem] MapPhysicalMemory +%#zx refused: %.2f GB mapped, the application pool is full (ResultLimitReached, the SDK frees cached pages and retries)",-@@ -670,16 +670,16 @@ uint64_t svc_dispatch(int num, uint64_t *regs, uint64_t orig_addr) {+@@ -672,16 +672,16 @@ uint64_t svc_dispatch(int num, uint64_t *regs, uint64_t orig_addr) {case I_StackAddr: v = (uint64_t)g_stack; break; case I_StackSize: v = g_stack_cap; break;case I_TotalMem: case I_TotalNonSys: v = APP_POOL; break;case I_UsedMem: case I_UsedNonSys: pthread_mutex_lock(&g_map_lock);@@ -564,10 +564,10 @@ index 4f440a0..5e7eb0e 100644// nn::os::GetFreeThreadCount (SDK 11+): the thread resource limit less the threads alive, as the kernel answers it (Atmosphère kern_svc_info.cpp). pm gives an application a limit of// 96 threads (pm_spec.cpp BaseApplicationThreads; a boost raises it to 256). Monster Train 2's Unity 2022.3 player creates a thread only when this is at least 1: the 0 it got herediff --git a/dm/host/loader.c b/dm/host/loader.c-index 6771666..fb14972 100644+index d0dfd19..f381ac2 100644--- a/dm/host/loader.c+++ b/dm/host/loader.c-@@ -239,7 +239,7 @@ static void install_fps_state(module_t *m) {+@@ -258,7 +258,7 @@ static void install_fps_state(module_t *m) {// DM_RENDER_SCALE (Launcher.swift), and nothing reads the page before the game runsvoid dm_fps_state_apply(void) {if (!dm_fps_state) return;@@ -577,10 +577,10 @@ index 6771666..fb14972 100644float f = (float)t; memcpy(dm_fps_state, &f, sizeof f);// Render scale of the 3D views (the stubs at Tears of the Kingdom's main+0xd5cc0, Breath of the Wild's main+0x1266880): 1.0 keeps the game's own size and dynamic resolution;diff --git a/dm/host/tests/Makefile b/dm/host/tests/Makefile-index b639c75..099bcfe 100644+index e21ca9a..fdd2817 100644--- a/dm/host/tests/Makefile+++ b/dm/host/tests/Makefile-@@ -61,7 +61,7 @@ run: $(B)/t_language $(B)/t_motion $(B)/t_heap_size $(B)/t_touch $(B)/t_gesture+@@ -65,7 +65,7 @@ run: $(B)/t_language $(B)/t_motion $(B)/t_heap_size $(B)/t_touch $(B)/t_gesturerun: $(B)/t_nrorun: $(B)/t_symbols$(B)/t_symbols: t_symbols.c ../hle.c ../loader.c ../hle.h ../dm.h $(GAME_H) | $(B)@@ -589,7 +589,7 @@ index b639c75..099bcfe 100644.PHONY: symbolssymbols: $(B)/t_symbols$(B)/t_symbols-@@ -79,12 +79,12 @@ $(B)/t_audren_layout: t_audren_layout.c ../hle_audren.c ../hle.h ../dm.h $(GAME_+@@ -83,12 +83,12 @@ $(B)/t_audren_layout: t_audren_layout.c ../hle_audren.c ../hle.h ../dm.h $(GAME_audren-layout: $(B)/t_audren_layout$(B)/t_audren_layout$(B)/t_system_event: t_system_event.c ../hle_thread.c ../hle_sdk16.c ../hle.h ../dm.h $(GAME_H) | $(B)@@ -604,7 +604,7 @@ index b639c75..099bcfe 100644.PHONY: nronro: $(B)/t_nro$(B)/t_nro-@@ -98,7 +98,7 @@ cheats: $(B)/t_cheats+@@ -102,7 +102,7 @@ cheats: $(B)/t_cheats$(GAME_H): FORCE$(MAKE) -C .. game_profile GAME=$(GAME)$(B)/t_heap_size: t_heap_size.c ../hle_svc.c ../dm.h $(GAME_H) | $(B)@@ -613,18 +613,27 @@ index b639c75..099bcfe 100644.PHONY: heap_sizeheap_size: $(B)/t_heap_size$(B)/t_heap_size-@@ -108,20 +108,20 @@ $(B)/t_gesture: t_gesture.c ../hle_touch.c ../front.h ../dm.h $(GAME_H) | $(B)+@@ -112,27 +112,27 @@ $(B)/t_gesture: t_gesture.c ../hle_touch.c ../front.h ../dm.h $(GAME_H) | $(B)$(CLANG) -O1 -Wall -Wno-unused-function -I.. $(GINC) -o $@ t_gesture.c ../hle_touch.c$(B)/t_thread_leak: t_thread_leak.c ../thread.c ../dm.h $(GAME_H) | $(B)$(CLANG) -O1 -Wno-unused-function -I.. $(GINC) -o $@ t_thread_leak.c-$(B)/t_fs: t_fs.c t_fs_stub.c ../hle_fs.c ../save_sync.c ../save_sync.h ../hle_bigstack.c ../hle.h ../dm.h $(GAME_H) | $(B)- $(CLANG) -O1 -Wno-unused-function -I.. $(GINC) -o $@ t_fs.c t_fs_stub.c ../hle_bigstack.c ../save_sync.c++$(B)/t_fs: t_fs.c t_fs_stub.c ../hle_fs.c ../save_sync.c ../save_sync.h ../hle_bigstack.c ../hle.h ../dm.h $(GAME_H) ../hle_profile.c ../hle_profile.h | $(B)++ $(CLANG) -O1 -Wno-unused-function -I.. $(GINC) -o $@ t_fs.c t_fs_stub.c ../hle_bigstack.c ../save_sync.c ../hle_profile.c+ # Inject only the folder handle allocation; directory I/O remains real.+-$(B)/t_fs_directory: t_fs_directory.c t_fs_stub.c ../hle_fs.c ../romfs_image.h ../save_sync.c ../save_sync.h ../hle_bigstack.c ../hle.h ../dm.h $(GAME_H) | $(B)+- $(CLANG) -O1 -g -Wall -Werror -Wno-unused-function -I.. $(GINC) -o $@ t_fs_directory.c t_fs_stub.c ../hle_bigstack.c ../save_sync.c++$(B)/t_fs_directory: t_fs_directory.c t_fs_stub.c ../hle_fs.c ../romfs_image.h ../save_sync.c ../save_sync.h ../hle_bigstack.c ../hle.h ../dm.h $(GAME_H) ../hle_profile.c ../hle_profile.h | $(B)++ $(CLANG) -O1 -g -Wall -Werror -Wno-unused-function -I.. $(GINC) -o $@ t_fs_directory.c t_fs_stub.c ../hle_bigstack.c ../save_sync.c ../hle_profile.c+ .PHONY: fs-directory+ fs-directory: $(B)/t_fs_directory+ TMPDIR="$(abspath $(B))" $(B)/t_fs_directory+ run: fs-directory-$(B)/t_fs_commit_list: t_fs_commit_list.c t_fs_stub.c ../hle_fs.c ../save_sync.c ../save_sync.h ../hle_bigstack.c ../hle.h ../dm.h $(GAME_H) | $(B)- $(CLANG) -O1 -Wall -Wno-unused-function -I.. $(GINC) -o $@ t_fs_commit_list.c t_fs_stub.c ../hle_bigstack.c ../save_sync.c-$(B)/t_fs_commit_list_tsan: t_fs_commit_list.c t_fs_stub.c ../hle_fs.c ../save_sync.c ../save_sync.h ../hle_bigstack.c ../hle.h ../dm.h $(GAME_H) | $(B)- $(CLANG) -O1 -g -fsanitize=thread -Wall -Wno-unused-function -I.. $(GINC) -o $@ t_fs_commit_list.c t_fs_stub.c ../hle_bigstack.c ../save_sync.c-+$(B)/t_fs: t_fs.c t_fs_stub.c ../hle_fs.c ../save_sync.c ../save_sync.h ../hle_bigstack.c ../hle.h ../dm.h $(GAME_H) ../hle_profile.c ../hle_profile.h | $(B)-+ $(CLANG) -O1 -Wno-unused-function -I.. $(GINC) -o $@ t_fs.c t_fs_stub.c ../hle_bigstack.c ../save_sync.c ../hle_profile.c+$(B)/t_fs_commit_list: t_fs_commit_list.c t_fs_stub.c ../hle_fs.c ../save_sync.c ../save_sync.h ../hle_bigstack.c ../hle.h ../dm.h $(GAME_H) ../hle_profile.c ../hle_profile.h | $(B)+ $(CLANG) -O1 -Wall -Wno-unused-function -I.. $(GINC) -o $@ t_fs_commit_list.c t_fs_stub.c ../hle_bigstack.c ../save_sync.c ../hle_profile.c+$(B)/t_fs_commit_list_tsan: t_fs_commit_list.c t_fs_stub.c ../hle_fs.c ../save_sync.c ../save_sync.h ../hle_bigstack.c ../hle.h ../dm.h $(GAME_H) ../hle_profile.c ../hle_profile.h | $(B)@@ -636,15 +645,15 @@ index b639c75..099bcfe 100644- $(CLANG) -O1 -Wno-unused-function -I.. $(GINC) -o $@ t_fs_case.c ../hle_bigstack.c ../save_sync.c+$(B)/t_fs_case: t_fs_case.c ../hle_fs.c ../save_sync.c ../save_sync.h ../hle_bigstack.c ../hle.h ../dm.h $(GAME_H) ../hle_profile.c ../hle_profile.h | $(B)+ $(CLANG) -O1 -Wno-unused-function -I.. $(GINC) -o $@ t_fs_case.c ../hle_bigstack.c ../save_sync.c ../hle_profile.c- run: $(B)/t_save_sync+ run: $(B)/t_save_sync $(B)/t_save_sync_metadata-$(B)/t_save_sync: t_save_sync.c t_fs_stub.c ../hle_fs.c ../save_sync.c ../save_sync.h ../hle_bigstack.c ../hle.h ../dm.h $(GAME_H) | $(B)- $(CLANG) -O1 -Wall -Wno-unused-function -I.. $(GINC) -o $@ t_save_sync.c t_fs_stub.c ../hle_bigstack.c ../save_sync.c+$(B)/t_save_sync: t_save_sync.c t_fs_stub.c ../hle_fs.c ../save_sync.c ../save_sync.h ../hle_bigstack.c ../hle.h ../dm.h $(GAME_H) ../hle_profile.c ../hle_profile.h | $(B)+ $(CLANG) -O1 -Wall -Wno-unused-function -I.. $(GINC) -o $@ t_save_sync.c t_fs_stub.c ../hle_bigstack.c ../save_sync.c ../hle_profile.c+ $(B)/t_save_sync_metadata: t_save_sync_metadata.c ../save_sync.c ../save_sync.h | $(B)+ $(CLANG) -O1 -Wall -Wno-unused-function -I.. -o $@ t_save_sync_metadata.c.PHONY: save-sync- save-sync: $(B)/t_save_sync- TMPDIR="$(abspath $(B))" $(B)/t_save_sync $(QUIET)-@@ -142,7 +142,7 @@ $(B)/t_audio_spsc_tsan: t_audio_spsc.c ../hle_audio.c ../hle_bigstack.c ../hle.h+@@ -156,7 +156,7 @@ $(B)/t_audio_spsc_tsan: t_audio_spsc.c ../hle_audio.c ../hle_bigstack.c ../hle.h$(CLANG) -O1 -g -O1 -fsanitize=thread -Wno-unused-function -I.. $(GINC) -o $@ t_audio_spsc.c ../hle_bigstack.c -framework AudioToolboxrun: $(B)/t_fpslock$(B)/t_fpslock: t_fpslock.c ../hle_fpslock.c ../hle.h ../dm.h $(GAME_H) | $(B)@@ -653,7 +662,7 @@ index b639c75..099bcfe 100644run: $(B)/t_uecvar$(B)/t_uecvar: t_uecvar.c ../hle_uecvar.c ../hle.h ../dm.h $(GAME_H) | $(B)$(CLANG) -O1 -g -Wno-unused-function $(GINC) -o $@ t_uecvar.c-@@ -156,12 +156,12 @@ $(B)/t_altstack: t_altstack.c t_altstack_stub.c ../crash.c ../dm.h $(GAME_H) | $+@@ -170,19 +170,19 @@ $(B)/t_altstack: t_altstack.c t_altstack_stub.c ../crash.c ../dm.h $(GAME_H) | $$(B)/t_pctl: t_pctl.c ../hle_misc.c ../hle.h ../dm.h $(GAME_H) | $(B)$(CLANG) -O1 -Wall -Werror -Wno-unused-function -I.. $(GINC) -o $@ t_pctl.c$(B)/t_shared_font: t_shared_font.c ../hle_sdk16.c ../hle.h ../dm.h $(GAME_H) | $(B)@@ -662,13 +671,22 @@ index b639c75..099bcfe 100644run: $(B)/t_nv$(B)/t_nv: t_nv.c ../../gfx/hle_nv.c ../hle.h ../dm.h $(GAME_H) | $(B)$(CLANG) -O1 -g -Wall -Werror -Wno-unused-function -I.. $(GINC) -o $@ t_nv.c+ # nn::nfc answered without nfc:user (NFC disabled), beside the nfp no-tag answers+ run: $(B)/t_nfc+-$(B)/t_nfc: t_nfc.c ../hle_sdk16.c ../hle.h ../dm.h $(GAME_H) | $(B)+- $(CLANG) -O1 -g -Wall -Werror -Wno-unused-function -Wno-frame-address -I.. $(GINC) -o $@ t_nfc.c++$(B)/t_nfc: t_nfc.c ../hle_sdk16.c ../hle.h ../dm.h $(GAME_H) ../hle_profile.c ../hle_profile.h | $(B)++ $(CLANG) -O1 -g -Wall -Werror -Wno-unused-function -Wno-frame-address -I.. $(GINC) -o $@ t_nfc.c ../hle_profile.c+ .PHONY: nfc+ nfc: $(B)/t_nfc+ $(B)/t_nfc$(B)/t_language: t_language.c ../hle_sdk16.c ../hle.h ../dm.h $(GAME_H) | $(B)- $(CLANG) -O1 -g -Wall -Werror -Wno-unused-function -Wno-frame-address -fsanitize=address,undefined -I.. $(GINC) -o $@ t_language.c+ $(CLANG) -O1 -g -Wall -Werror -Wno-unused-function -Wno-frame-address -fsanitize=address,undefined -I.. $(GINC) -o $@ t_language.c ../hle_profile.c$(B)/t_motion: t_motion.c ../motion_fusion.h | $(B)$(CLANG) -O1 -Wall -Werror -Wno-unused-function -o $@ t_motion.c -lmrun: $(B)/t_motion_apple-@@ -186,15 +186,15 @@ $(B)/t_haptics_apple: t_haptics_apple.m ../haptics_apple.m ../haptics_apple.h ..+@@ -207,15 +207,15 @@ $(B)/t_haptics_apple: t_haptics_apple.m ../haptics_apple.m ../haptics_apple.h ..$(B)/t_time: t_time.c ../hle_time.c ../hle.h ../dm.h $(GAME_H) | $(B)$(CLANG) -O1 -Wall -Werror -Wno-unused-function -I.. $(GINC) -o $@ t_time.c$(B)/t_oe: t_oe.c ../hle_oe.c ../hle.h ../dm.h $(GAME_H) | $(B)@@ -689,7 +707,7 @@ index b639c75..099bcfe 100644.PHONY: preemptpreempt: $(B)/t_preempt$(B)/t_preempt-@@ -220,7 +220,7 @@ $(B):+@@ -245,7 +245,7 @@ $(B):mkdir -p $@.PHONY: run tsan$(B)/t_resolution: t_resolution.c ../hle_fpslock.c ../hle.h ../dm.h $(GAME_H) | $(B)@@ -698,7 +716,7 @@ index b639c75..099bcfe 100644.PHONY: resolutionrun: resolutionresolution: $(B)/t_resolution-@@ -233,17 +233,17 @@ tsan: $(B)/t_audio_spsc_tsan $(B)/t_hid_tsan+@@ -258,17 +258,17 @@ tsan: $(B)/t_audio_spsc_tsan $(B)/t_hid_tsanTMPDIR="$(abspath $(B))" $(B)/t_hid_tsanMEM_FLAGS = -O1 -Wall -Werror -Wno-unused-function -Imemory_profile -I..@@ -722,7 +740,7 @@ index b639c75..099bcfe 100644.PHONY: memory memory-tsan memory-dirty memory-profilememory: $(B)/t_svc_memory $(B)/t_svc_memory_unlimited $(B)/t_svc_memory_16k$(B)/t_svc_memory-@@ -259,7 +259,7 @@ run: memory memory-dirty memory-profile+@@ -284,7 +284,7 @@ run: memory memory-dirty memory-profile# A native blocking notification wait must release the thread's guest core.$(B)/t_notify_sched: t_notify_sched.c t_condvar_stub.c ../hle_thread.c ../hle_oe.c ../hle.h ../dm.h $(GAME_H) | $(B)@@ -854,10 +872,10 @@ index a079d7f..3747fc9 100644_full = l == 1; _tap = l == 2;[self applyLayout];diff --git a/docs/env_switches.tsv b/docs/env_switches.tsv-index 87909a2..07dac57 100644+index fd7da19..6e6e706 100644--- a/docs/env_switches.tsv+++ b/docs/env_switches.tsv-@@ -216,6 +216,7 @@ DM_PROBE_LIMIT diagnostic Maximum printed hits per guest probe; 0 or absent leav+@@ -221,6 +221,7 @@ DM_PROBE_LIMIT diagnostic Maximum printed hits per guest probe; 0 or absent leavDM_PROBE_POLL diagnostic `=<address>[+<length>]` (hex, 4 bytes by default, up to 8): a host thread spins on the bytes and on each change snapshots every thread's pc, lr and frames, for writes the watch missesDM_PROBE_WATCH diagnostic `=<address>[+<length>]` (hex, 8 bytes by default): write-protects that host page and reports who writes these bytes, without a debuggerDM_PROBE_X2 diagnostic `=<bytes>` (hex): probe hits also dump that many bytes of the memory x2 points todiff --git a/patches/0003-ios-game-data-folder.patch b/patches/0003-ios-game-data-folder.patchindex d394436e..b6a72a48 100644--- a/patches/0003-ios-game-data-folder.patch+++ b/patches/0003-ios-game-data-folder.patch@@ -162,7 +162,7 @@ index 70789d3..710e59a 100644+// action (re-send the game data as romfs.img from the launcher), or NULL. The launcher's Game data section shows it.+const char *dm_old_archive_message(void);diff --git a/dm/ios/Sources/Launcher.swift b/dm/ios/Sources/Launcher.swift-index f2cb6c1..44af3cc 100644+index 924e2e0..ebaa055 100644--- a/dm/ios/Sources/Launcher.swift+++ b/dm/ios/Sources/Launcher.swift@@ -10,6 +10,64 @@ import os@@ -230,7 +230,7 @@ index f2cb6c1..44af3cc 100644/// Cloud saves: an iCloud Drive folder shared with the Mac app (chosen in its settings window's/// Cloud saves too). The host brings the save in from there when the game starts and/// sends it there after each save (dm/host/save_sync.h); the folder is a bookmark (CloudSaves.m).-@@ -60,14 +118,14 @@ private struct CloudSavesSection: View {+@@ -61,14 +119,14 @@ private struct CloudSavesSection: View {}}@@ -247,7 +247,7 @@ index f2cb6c1..44af3cc 100644let picker = UIDocumentPickerViewController(forOpeningContentTypes: types, asCopy: false)picker.allowsMultipleSelection = falsepicker.delegate = context.coordinator-@@ -128,6 +186,7 @@ private struct LauncherView: View {+@@ -129,6 +187,7 @@ private struct LauncherView: View {} footer: {Text("Brings back all settings this game was tested with.")}@@ -256,12 +256,12 @@ index f2cb6c1..44af3cc 100644Section {HStack {diff --git a/dm/ios/Sources/front_ios.m b/dm/ios/Sources/front_ios.m-index 56c8add..0469c90 100644+index b941e77..df1983d 100644--- a/dm/ios/Sources/front_ios.m+++ b/dm/ios/Sources/front_ios.m@@ -21,6 +21,7 @@const char *front_ios_boot_message(void); // main.m: why a build that keeps the game files off the IPA found none usable (NULL = the generic hint)- const char *front_ios_device_message(void); // main.m: why this device cannot run the games (its GPU has no BC textures; NULL = supported)+ const char *front_ios_device_check(void); // main.m: why this device cannot run the games (its GPU has no BC textures; NULL = supported); makes the first Metal devicebool dm_show_launcher(void *view_controller, void (*done)(void)); // Launcher.swift: false = no launcher (no dm/launcher.json, or DM_LAUNCHER=0)+int dm_locate_game_data(void); // main.m: (re)decide where the game data is; NO when there still is none@@ -275,7 +275,7 @@ index 56c8add..0469c90 100644- (void)startGame;@endstatic DmRootVC *g_root;-@@ -93,6 +95,14 @@ - (void)viewDidLoad {+@@ -95,6 +97,14 @@ - (void)viewDidLoad {// The game view, the pad and the frame-rate counter are made once the launcher has set the switches they read (DM_SHOW_FPS, DM_METAL_HUD); the host's loading began at app launch (main.m)- (void)startGame {if (self.game) return;@@ -288,9 +288,9 @@ index 56c8add..0469c90 100644+ [self.view addSubview:lb]; return;+ }dm_cloud_saves_env(); // DM_SAVE_SYNC from the launcher's Cloud saves pick, before the game's first save mount reads it (CloudSaves.m, save_sync.h)- front_hud_env(); // before the game view makes its device (an env file's DM_METAL_HUD sets it in main.m already)- self.game = [[DmGameView alloc] initWithFrame:self.view.bounds];-@@ -128,7 +138,8 @@ - (void)viewDidAppear:(BOOL)a {+ front_hud_env(); // before the process's first Metal device, which reads MTL_HUD_ENABLED (an env file's DM_METAL_HUD sets it in main.m already; GitHub issue #840)+ const char *dev = front_ios_device_check(); // that first device: a GPU without BC textures is refused here, not at launch, so the launcher's HUD switch counts+@@ -132,7 +142,8 @@ - (void)viewDidAppear:(BOOL)a {}if (self.launched || !front_ios_boot_ok()) return;self.launched = YES; g_root = self;@@ -301,7 +301,7 @@ index 56c8add..0469c90 100644- (BOOL)prefersHomeIndicatorAutoHidden { return YES; }- (UIRectEdge)preferredScreenEdgesDeferringSystemGestures { return UIRectEdgeAll; } // Edge gestures need two swipes, to avoid accidental exitsdiff --git a/dm/ios/Sources/main.m b/dm/ios/Sources/main.m-index d0211f4..d88e35c 100644+index 7afe1c3..85c068c 100644--- a/dm/ios/Sources/main.m+++ b/dm/ios/Sources/main.m@@ -8,9 +8,10 @@@@ -438,10 +438,10 @@ index d0211f4..d88e35c 100644// Add-on content (DLC): each DLC's RomFS image at <dir>/<index>.img (or a legacy <index>/ folder). Like the game files, Documents/aoc comes before <App>/aoc.// A DM_AOC_DIR that is already set (env.txt, the launch environment) wins. The host mounts and counts the DLC from DM_AOC_DIR (hle_fs.c, hle_misc.c)static void aoc_locate(void) {-@@ -165,16 +258,28 @@ static int boot_env(void) {- gpu ? gpu.name.UTF8String : "no Metal device");- fprintf(stderr, "[RED] boot: %s\n", g_device_message); return 0;- }+@@ -168,16 +261,28 @@ static int boot_env(void) {+ NSString *lang = [NSBundle.mainBundle objectForInfoDictionaryKey:@"DMLanguage"];+ if (!getenv("DM_LANG") && [lang isKindOfClass:NSString.class] && lang.length) setenv("DM_LANG", lang.UTF8String, 0);+ fprintf(stderr, "boot: game language %s\n", getenv("DM_LANG") ?: "en-US");+ // No game data yet is not fatal: the launcher comes up all the same, and its Game data section+ // is where a location gets picked; dm_locate_game_data() looks again when Play is pressed.+ NSString *gdir = game_dir_for(dm_profile()->id);diff --git a/patches/0004-ios-slim-ipa.patch b/patches/0004-ios-slim-ipa.patchindex 22d0d1e4..5e5ea49b 100644--- a/patches/0004-ios-slim-ipa.patch+++ b/patches/0004-ios-slim-ipa.patch@@ -73,10 +73,10 @@ index 40db2b7..0407560 100644diff --git a/dm/ios/tools/build_ipa.sh b/dm/ios/tools/build_ipa.sh-index 1bb65f0..6a33884 100755+index cd8bb1e..8f42405 100755--- a/dm/ios/tools/build_ipa.sh+++ b/dm/ios/tools/build_ipa.sh-@@ -178,6 +178,9 @@ if [ -n "${DM_ENTITLEMENTS-default}" ]; then+@@ -182,6 +182,9 @@ if [ -n "${DM_ENTITLEMENTS-default}" ]; thenfiP=Payload/DmIOS.appMAPS=()@@ -86,7 +86,7 @@ index 1bb65f0..6a33884 100755if [ "${DM_COPY_ROMFS:-YES}" = NO ]; thent "no game files in the IPA (DM_COPY_ROMFS=NO): the app takes Documents/romfs.img (scripts/push_romfs.sh)"# The image's identity (dm/host/romfs_identity.h) goes into the app as romfs.id: main.m then uses only a Documents/romfs.img with the same size and index hash, and says so when it is another version or missing.-@@ -187,7 +190,11 @@ if [ "${DM_COPY_ROMFS:-YES}" = NO ]; then+@@ -191,7 +194,11 @@ if [ "${DM_COPY_ROMFS:-YES}" = NO ]; thenMAPS=("$P/romfs.id=$O/romfs.id"); t "game files identity: $(cat "$O/romfs.id")"fielif [ -f "$ROMFS" ]; then MAPS=("$P/romfs.img=$ROMFS"); else MAPS=("$P/romfs=$ROMFS"); fi@@ -148,7 +148,7 @@ index a832ad5..0f5485d 100644raise ValueError(f'bundle ID {bundle_id} is already used by {other}; choose a different --bundle-id for this game')diff --git a/docs/env_switches.tsv b/docs/env_switches.tsv-index 07dac57..1cee0c6 100644+index 6e6e706..f0cbbba 100644--- a/docs/env_switches.tsv+++ b/docs/env_switches.tsv@@ -41,6 +41,7 @@ DM_FS diagnostic When set, logs file opens, paths not found or not mounted, anddiff --git a/patches/0005-nsp-dotnet-home.patch b/patches/0005-nsp-dotnet-home.patchindex d5e56be9..25153121 100644--- a/patches/0005-nsp-dotnet-home.patch+++ b/patches/0005-nsp-dotnet-home.patch@@ -14,10 +14,10 @@ Issue: LNPANDY/NX2Apple#101 file changed, 19 insertions(+), 1 deletion(-)diff --git a/scripts/build_ipa_from_nsp.py b/scripts/build_ipa_from_nsp.py-index 26acdd4..2ce3b26 100755+index 678e418..e7743e7 100755--- a/scripts/build_ipa_from_nsp.py+++ b/scripts/build_ipa_from_nsp.py-@@ -29,7 +29,7 @@+@@ -30,7 +30,7 @@# unless ALLOW_OTHER_METAL / --allow-other-metal. Issue #242 reported corruption with another compiler; the cause is still unconfirmed.# Python 3.12+ is required for bounded archive mappings inside images. The Python running this file needs lz4, capstone 5.x and fonttools (and backports.zstd before Python 3.14); also needed: Xcode, xcodegen, .NET SDK 10, zstd. SPIRV-Cross is the in-repo build. A first run takes 2 (Metroid Dread) to 10 minutes (Breath of the Wild: 5 of them the shader split), longer when shader libraries must be compiled; a repeat run with unchanged inputs takes about 20 s (Metroid Dread), mostly packing the IPA. Key values are never printed.# The console shows one line per stage ([k/n] stage, with a bar, done/total, percent, elapsed time and ETA where the work can be counted); the tools' own output goes only to logs/ (PROGRESS / --progress). --progress json writes newline-delimited JSON events to stdout.@@ -26,7 +26,7 @@ index 26acdd4..2ce3b26 100755from pathlib import Pathsys.path.insert(0, str(Path(__file__).resolve().parents[1] / "dm/tools"))import romfs as rfs-@@ -2312,6 +2312,24 @@ def main(args=None):+@@ -2408,6 +2408,24 @@ def main(args=None):if not want_lang: raise BuildError(f'unknown game language {lang_in!r}; give one of {language_list([c for c, _ in nacp.LANGUAGES])}, by code or by name')env = dict(os.environ, PATH=os.pathsep.join(TOOL_PATHS + [os.environ.get('PATH', '/usr/bin:/bin:/usr/sbin:/sbin')]))env.setdefault('USER', getpass.getuser()) # xcodegen fails without USER (Couldn't find current username)diff --git a/patches/0006-nsp-chain-changed-note.patch b/patches/0006-nsp-chain-changed-note.patchindex fa0288df..e047c7b1 100644--- a/patches/0006-nsp-chain-changed-note.patch+++ b/patches/0006-nsp-chain-changed-note.patch@@ -14,10 +14,10 @@ Issue: LNPANDY/NX2Apple#1231 file changed, 5 insertions(+)diff --git a/scripts/build_ipa_from_nsp.py b/scripts/build_ipa_from_nsp.py-index 2ce3b26..da118fe 100755+index e7743e7..a4da14e 100755--- a/scripts/build_ipa_from_nsp.py+++ b/scripts/build_ipa_from_nsp.py-@@ -1847,6 +1847,11 @@ def build_shaders(py, repo, sh, xlate, env, logs, g, pkg_key=None, mac=False):+@@ -1941,6 +1941,11 @@ def build_shaders(py, repo, sh, xlate, env, logs, g, pkg_key=None, mac=False):ios, log = sh / 'ios', logs / 'dmsh_build.log'PROG.stage('Mac shaders' if mac else 'iOS shaders')chain = chain_of(repo)diff --git a/patches/0008-bc-cpu-decode.patch b/patches/0008-bc-cpu-decode.patchindex 18fbd1cd..fadc31ca 100644--- a/patches/0008-bc-cpu-decode.patch+++ b/patches/0008-bc-cpu-decode.patch@@ -46,10 +46,10 @@ index 8a8adb8..223a7f7 100644tex_dirty_upload on# 60 fps (30 on the Switch): the host decides each frame's step in whole vsyncs and holds the frame that long (rewriter stubs at FPSLocker's sites, patches.py FRAME_STEP);diff --git a/dm/games/game.py b/dm/games/game.py-index 359d377..a4f228a 100644+index bc2ad82..2456df0 100644--- a/dm/games/game.py+++ b/dm/games/game.py-@@ -128,6 +128,8 @@ def header(g):+@@ -131,6 +131,8 @@ def header(g):if tfu not in ('on', 'off'): sys.exit(f'{g.id}: tex_flush_upload must be on or off: {tfu}')tdu = g.get('tex_dirty_upload', 'off') # with tex_flush_upload: a registered texture the CPU writes after init without any flush is uploaded too (dirty pages, hle_nvn.c nvn_ft_written): on / offif tdu not in ('on', 'off') or (tdu == 'on' and tfu != 'on'): sys.exit(f'{g.id}: tex_dirty_upload must be on or off, and needs tex_flush_upload on: {tdu}')@@ -58,7 +58,7 @@ index 359d377..a4f228a 100644tds = g.get('tex_dyn_slots', 'off') # shaders whose texture handle the translator could not trace to one slot: slot indices in c2, the bound slots in the fallback arrays (nvn_mtl.m): on / offif tds not in ('on', 'off'): sys.exit(f'{g.id}: tex_dyn_slots must be on or off: {tds}')vcr = g.get('vconv_range', 'off') # vertex attributes converted on the CPU only over the vertices each draw reads (nvn_mtl.m vc_draw_range): on / off-@@ -183,6 +185,7 @@ def header(g):+@@ -186,6 +188,7 @@ def header(g):f'#define DM_GAME_SHADER_KEY_SKIP_OFF {sko:#x}', f'#define DM_GAME_SHADER_KEY_SKIP_LEN {skl:#x}',f'#define DM_GAME_RENDER_COND {int(rcd == "on")}',f'#define DM_GAME_TEX_DIRTY_UPLOAD {int(tdu == "on")}',@@ -67,7 +67,7 @@ index 359d377..a4f228a 100644f'#define DM_GAME_GPU_TS_SEGMENT {int(gts == "segment")}',f'#define DM_GAME_VCONV_RANGE {int(vcr == "on")}',diff --git a/dm/gfx/nvn/nvn_mtl.m b/dm/gfx/nvn/nvn_mtl.m-index 1140f62..a8b3f32 100644+index 86b8eff..d6aa07b 100644--- a/dm/gfx/nvn/nvn_mtl.m+++ b/dm/gfx/nvn/nvn_mtl.m@@ -20,6 +20,7 @@@@ -109,7 +109,7 @@ index 1140f62..a8b3f32 100644[g_q addResidencySet:g_res];[g_q4 addResidencySet:g_res];{ void crash_set_wait_dump(void (*fn)(void)); void mtl_wait_state_dump(void); crash_set_wait_dump(mtl_wait_state_dump); }-@@ -1865,7 +1872,12 @@ static MTLTextureUsage img_usage(const tex_t *t, MTLPixelFormat pf) {+@@ -1899,7 +1906,12 @@ static MTLTextureUsage img_usage(const tex_t *t, MTLPixelFormat pf) {static int tex_atomic_capable(id<MTLTexture> base) { return pf_r32i(base.pixelFormat) && (base.usage & MTLTextureUsageShaderWrite); }static MTLTextureDescriptor *tex_desc(const tex_t *t, int packaged) {uint32_t pf = 0; uint8_t swz[4];@@ -123,7 +123,7 @@ index 1140f62..a8b3f32 100644// Metal's limits: 16384 in 2D, 2048 in 3D, 2048 array layers; beyond them Metal aborts the process on an assertion, so they are caught here with a red lineif (t->d.width > 16384 || t->d.height > 16384 || t->d.depth > 2048) { RED_ONCE(71, "texture size exceeds Metal limits: %u×%u×%u levels %u format %#x target %d (first case ser=%llu)", t->d.width, t->d.height, t->d.depth, t->d.levels, t->d.format, t->d.target, (unsigned long long)t->serial); return nil; }MTLTextureDescriptor *d = [MTLTextureDescriptor new];-@@ -2331,15 +2343,43 @@ static void rb_swap_rows(uint8_t *p, size_t wb, size_t rows, size_t nz, size_t r+@@ -2365,15 +2377,43 @@ static void rb_swap_rows(uint8_t *p, size_t wb, size_t rows, size_t nz, size_t rif (!(part = malloc(t->L.size ? t->L.size : 1))) MDIE("sparse texture copy of %llu bytes failed", (unsigned long long)t->L.size);nvn_sparse_copy(t->pool, part, (uint64_t)(uintptr_t)t->mem, t->L.size); src = part;}@@ -168,7 +168,7 @@ index 1140f62..a8b3f32 100644if (nvn_deswizzle(&t->d, l, y, src, (uint8_t *)stg.contents + off, pitch)) { RED_ONCE(9, "deswizzle failed format %#x target %d", t->d.format, t->d.target); break; }if (rb_shift) rb_swap_rows((uint8_t *)stg.contents + off, pitch, rows, z, pitch, pitch * rows, rb_shift);if (zb && l < 16) { const uint64_t *q = (const uint64_t *)((const uint8_t *)stg.contents + off); size_t nb = pitch * rows * z / 16;-@@ -2349,6 +2389,7 @@ static void rb_swap_rows(uint8_t *p, size_t wb, size_t rows, size_t nz, size_t r+@@ -2383,6 +2423,7 @@ static void rb_swap_rows(uint8_t *p, size_t wb, size_t rows, size_t nz, size_t roff += pitch * rows * z;}}@@ -417,7 +417,7 @@ index 0000000..5fd5efe+ return 0;+}diff --git a/dm/ios/Sources/main.m b/dm/ios/Sources/main.m-index d88e35c..ddfce1a 100644+index 85c068c..a5fe462 100644--- a/dm/ios/Sources/main.m+++ b/dm/ios/Sources/main.m@@ -9,6 +9,7 @@@@ -428,15 +428,15 @@ index d88e35c..ddfce1a 100644#include "front.h"#include "romfs_image.h"#include "DataBookmark.h"-@@ -253,7 +254,7 @@ static int boot_env(void) {- if (!getenv("DM_LANG") && [lang isKindOfClass:NSString.class] && lang.length) setenv("DM_LANG", lang.UTF8String, 0);- fprintf(stderr, "boot: game language %s\n", getenv("DM_LANG") ?: "en-US");+@@ -197,7 +198,7 @@ static void aoc_locate(void) {+ static char msg[320]; static int done;+ if (done++) return msg[0] ? msg : NULL;id<MTLDevice> gpu = MTLCreateSystemDefaultDevice(); // the system default device, the one the graphics layers take (mtl_init repeats this check for the other routes)-- if (!gpu.supportsBCTextureCompression) {-+ if (!gpu.supportsBCTextureCompression && !DM_GAME_TEX_BC_CPU) { // tex_bc_cpu: nvn_mtl.m decodes BC on the CPU (nvn_bcdec.c)- snprintf(g_device_message, sizeof g_device_message, "This device's GPU (%s) cannot read BC-compressed textures, which the games use. It needs an iPhone 15 Pro or newer (A17 Pro chip or later) or an iPad with an M1 chip or later.",- gpu ? gpu.name.UTF8String : "no Metal device");- fprintf(stderr, "[RED] boot: %s\n", g_device_message); return 0;+- if (gpu.supportsBCTextureCompression) return NULL;++ if (gpu.supportsBCTextureCompression || DM_GAME_TEX_BC_CPU) return NULL; // tex_bc_cpu: nvn_mtl.m decodes BC on the CPU (nvn_bcdec.c)+ snprintf(msg, sizeof msg, "This device's GPU (%s) cannot read BC-compressed textures, which the games use. It needs an iPhone 15 Pro or newer (A17 Pro chip or later) or an iPad with an M1 chip or later.",+ gpu ? gpu.name.UTF8String : "no Metal device");+ fprintf(stderr, "[RED] boot: %s\n", msg);diff --git a/dm/third_party/bcdec/LICENSE b/dm/third_party/bcdec/LICENSEnew file mode 100644index 0000000..78e53f1diff --git a/patches/0009-mac-keymap.patch b/patches/0009-mac-keymap.patchindex 831e51b0..d7e3d3d2 100644--- a/patches/0009-mac-keymap.patch+++ b/patches/0009-mac-keymap.patch@@ -9,7 +9,7 @@ Upstream-Status: forwarded seedds/nxnative#386Reason: The launcher's Controls page: DM_KEYMAP and DM_PAD_MAP move buttons to other keys and controller buttons (open upstream, #386)Issue: LNPANDY/NX2Apple#386---- dm/host/front_mac.m | 42 +++++++--------+ dm/host/front_mac.m | 54 ++++++++++---------dm/host/input_map.h | 82 +++++++++++++++++++++++++++++dm/host/tests/Makefile | 8 ++-dm/host/tests/t_input_map.c | 43 +++++++++++++++@@ -17,21 +17,21 @@ Issue: LNPANDY/NX2Apple#386dm/tools/impact_map.tsv | 1 +docs/development.md | 2 +docs/env_switches.tsv | 2 +- 8 files changed, 193 insertions(+), 22 deletions(-)+ 8 files changed, 200 insertions(+), 27 deletions(-)create mode 100644 dm/host/input_map.hcreate mode 100644 dm/host/tests/t_input_map.ccreate mode 100644 dm/host/tests/t_launcher_contract.cdiff --git a/dm/host/front_mac.m b/dm/host/front_mac.m-index beffeea..fb74e5b 100644+index 714987f..6123890 100644--- a/dm/host/front_mac.m+++ b/dm/host/front_mac.m@@ -4,7 +4,8 @@// Cheats (hle_cheats.c): the Cheats menu's rows toggle, reload (⌘R) and open the cheats folder; its first item "Show Cheats// Window" (⌘⇧C, or DM_CHEATS_WINDOW=1 at launch) opens a Cheats panel beside the game: sections, search, the master switch,// safe mode, values, details and the import of cheat files (see the code below).--// Key map (Nintendo layout): WASD left stick, arrow keys D-pad, J=A K=B U=X I=Y, Q=L E=R, Z=ZL C=ZR, F=press left stick G=press right stick, Return=+ Tab=−, Space=shake the controller.-+// Key map (Nintendo layout): WASD left stick, arrow keys D-pad, J=A K=B U=X I=Y, Q=L E=R, Z=ZL C=ZR, F=press left stick G=press right stick, Return=+ Tab=−, Space=shake the controller;+-// Key map (Nintendo layout): WASD left stick, arrow keys D-pad (with Shift held: the right stick, for the camera), J=A K=B U=X I=Y, Q=L E=R, Z=ZL C=ZR, F=press left stick G=press right stick, Return=+ Tab=−, Space=shake the controller.++// Key map (Nintendo layout): WASD left stick, arrow keys D-pad (with Shift held: the right stick, for the camera), J=A K=B U=X I=Y, Q=L E=R, Z=ZL C=ZR, F=press left stick G=press right stick, Return=+ Tab=−, Space=shake the controller;+// DM_KEYMAP moves a function to another key (the right stick too), DM_PAD_MAP changes what a controller's buttons send (input_map.h).// Controllers: face buttons as on the iPhone, by position (right A, bottom B, top X, left Y) or on a Nintendo pad by its labels (pad_apple.h), shoulders L R, triggers ZL ZR, Menu + Options −, both sticks and their presses.// Each controller is a player of its own (local co-op): the first one connected is player 1, together with the keyboard, the next player 2, and so on up to 8 (pad_slots.h);@@ -44,24 +44,27 @@ index beffeea..fb74e5b 100644#include "haptics_apple.h"#include "motion_apple.h"#include "motion_pro_mac.h"-@@ -27,7 +29,6 @@+@@ -28,8 +30,7 @@static CAMetalLayer *g_layer;static uint64_t g_btn;-static int g_w, g_a, g_s, g_d;+-static int g_rl, g_ru, g_rr, g_rd; // arrow keys pressed with Shift held: the right stick (each goes back up as it went down, whatever Shift does meanwhile)++static int8_t g_shift_fn[IM_KEYS]; // a D-pad key pressed with Shift held: the right-stick function it holds until released, plus 1 (0: none)static int g_input_on = 1; // main thread: the game window is key, so its keyboard, mouse and controllers reach the game (input_release / input_resume)void *front_metal_layer(void) { return (__bridge void *)g_layer; }-@@ -91,27 +92,20 @@ void front_screen_match(int fps) {- if (!g_layer || g_match_want == fps) return; // no window (a windowless run's main thread runs the guest), or the rate as before- g_match_want = fps; dispatch_async(dispatch_get_main_queue(), ^{ screen_match_apply(); });+@@ -107,33 +108,28 @@ static void cursor_hide_for_input(void) {+ NSView *v = g_win.contentView;+ if (NSPointInRect([v convertPoint:g_win.mouseLocationOutsideOfEventStream fromView:nil], v.bounds)) [NSCursor setHiddenUntilMouseMoves:YES];}+// Keyboard: each key holds one function of the key map (input_map.h; DM_KEYMAP changes it), the held functions make the buttons and both sticks+static key_map g_keys;+static uint32_t g_held_fn; // bit f: a key holding function f is downstatic void push(void) {- int32_t lx = (g_d - g_a) * 32767, ly = (g_w - g_s) * 32767;-- dm_input_set(g_btn, lx, ly, 0, 0);+- int32_t rx = (g_rr - g_rl) * 32767, ry = (g_ru - g_rd) * 32767;+- dm_input_set(g_btn, lx, ly, rx, ry);-}-static int key_bit(unsigned short code) {- switch (code) {@@ -79,44 +82,51 @@ index beffeea..fb74e5b 100644}static void on_key(NSEvent *e, int down) {if (!g_input_on) return;-- unsigned short c = e.keyCode;+ unsigned short c = e.keyCode;- switch (c) { case 13: g_w = down; break; case 0: g_a = down; break; case 1: g_s = down; break; case 2: g_d = down; break; }+- // An arrow key pressed with Shift held is the right stick until it is released; without Shift, the D-pad. The keyboard had no right stick: a 3D game's camera++ int f = key_map_fn(&g_keys, c); if (f < 0) return;++ // A D-pad key pressed with Shift held is the matching right-stick direction until it is released; without Shift, the D-pad. The keyboard had no right stick: a 3D game's camera+ // could be turned only with a controller (Donkey Kong Bananza)+- int *rs = c == 123 ? &g_rl : c == 126 ? &g_ru : c == 124 ? &g_rr : c == 125 ? &g_rd : NULL;+- if (rs && (down ? (e.modifierFlags & NSEventModifierFlagShift) != 0 : *rs)) { *rs = down; push(); return; }- int b = key_bit(c);- uint64_t m = b >= 0 ? 1ull << b : c == 49 ? DM_BTN_SHAKE : 0; // Space: shaken while held- g_btn = down ? (g_btn | m) : (g_btn & ~m);-+ int f = key_map_fn(&g_keys, e.keyCode); if (f < 0) return;+- if (down && (m || c == 13 || c == 0 || c == 1 || c == 2)) cursor_hide_for_input(); // a key the game takes (WASD: the left stick)++ if (c < IM_KEYS) {++ if (down && f >= 12 && f <= 15 && (e.modifierFlags & NSEventModifierFlagShift)) g_shift_fn[c] = (int8_t)((f == 12 ? IM_RLEFT : f == 13 ? IM_RUP : f == 14 ? IM_RRIGHT : IM_RDOWN) + 1);++ if (g_shift_fn[c]) { int rf = g_shift_fn[c] - 1; g_held_fn = down ? (g_held_fn | 1u << rf) : (g_held_fn & ~(1u << rf)); if (!down) g_shift_fn[c] = 0; push(); return; }++ }+ g_held_fn = down ? (g_held_fn | 1u << f) : (g_held_fn & ~(1u << f));+ g_btn = (g_held_fn & 0xffff) | (g_held_fn >> IM_SHAKE & 1 ? DM_BTN_SHAKE : 0);++ if (down) cursor_hide_for_input(); // a key the game takespush();}-@@ -123,6 +117,7 @@ static void on_key(NSEvent *e, int down) {+@@ -145,9 +141,11 @@ static void on_key(NSEvent *e, int down) {static pad_slots g_slots;static GCController *g_held[DM_PLAYERS]; // the controller of each slot, kept alive while it holds it (the slot table keys on its pointer)static int g_merge, g_kbd_own;+static pad_map g_padmap; // DM_PAD_MAP (input_map.h): what each button sends, applied to every controllerstatic int32_t pad_axis(float v) { return (int32_t)(fmaxf(-1.f, fminf(1.f, v)) * DM_STICK_MAX); }- static void pad_read(GCExtendedGamepad *g) {- if (!g_input_on) return;-@@ -134,6 +129,7 @@ static void pad_read(GCExtendedGamepad *g) {- K(g.buttonMenu, DM_BTN_PLUS); K(g.buttonOptions, DM_BTN_MINUS); K(g.leftThumbstickButton, DM_BTN_LS); K(g.rightThumbstickButton, DM_BTN_RS); // nil on pads without them: not pressed- K(g.dpad.left, DM_BTN_LEFT); K(g.dpad.up, DM_BTN_UP); K(g.dpad.right, DM_BTN_RIGHT); K(g.dpad.down, DM_BTN_DOWN);- #undef K-+ m = pad_map_apply(&g_padmap, m);- dm_pad_set_player(p, m, pad_axis(g.leftThumbstick.xAxis.value), pad_axis(g.leftThumbstick.yAxis.value), pad_axis(g.rightThumbstick.xAxis.value), pad_axis(g.rightThumbstick.yAxis.value));- }- // Home and Capture: without this macOS takes them as system gestures (Home opens the Games app); the host gives them no function-@@ -190,7 +186,7 @@ static void pads_changed(GCController *gone) {- static void input_release(void) {+ // A controller's state for player p, GameController or raw HID: a pressed button or a stick past 15% hides the pointer (cursor_hide_for_input), a resting stick's drift does not+ static void pad_set(int p, uint64_t m, int32_t lx, int32_t ly, int32_t rx, int32_t ry) {++ m = pad_map_apply(&g_padmap, m); // DM_PAD_MAP+ const int32_t dead = DM_STICK_MAX * 15 / 100;+ if (m || abs(lx) > dead || abs(ly) > dead || abs(rx) > dead || abs(ry) > dead) cursor_hide_for_input();+ dm_pad_set_player(p, m, lx, ly, rx, ry);+@@ -235,7 +233,7 @@ static void input_release(void) {+ display_awake(0);g_input_on = 0;dm_motion_pro_active(0);-- g_btn = 0; g_w = g_a = g_s = g_d = 0; push();-+ g_btn = 0; g_held_fn = 0; push();+- g_btn = 0; g_w = g_a = g_s = g_d = 0; g_rl = g_ru = g_rr = g_rd = 0; push();++ g_btn = 0; g_held_fn = 0; memset(g_shift_fn, 0, sizeof g_shift_fn); push();if (g_mouse_down) { g_mouse_down = 0; dm_touch_set(NULL, 0); }- if (g_merge) { for (GCController *c in GCController.controllers) if (c.extendedGamepad) { dm_pad_set(0, 0, 0, 0, 0); break; } }- else for (int p = 0; p < DM_PLAYERS; p++) if (g_held[p]) dm_pad_set_player(p, 0, 0, 0, 0, 0);-@@ -202,6 +198,10 @@ static void input_resume(void) {- else for (int p = 0; p < DM_PLAYERS; p++) if (g_held[p].extendedGamepad) pad_read(g_held[p].extendedGamepad);+ if (g_merge) { if (merge_pads_left(nil)) dm_pad_set(0, 0, 0, 0, 0); return; }+ for (int p = 0; p < DM_PLAYERS; p++) if (g_held[p]) dm_pad_set_player(p, 0, 0, 0, 0, 0);+@@ -275,6 +273,10 @@ static void hidpad_detach(hid_pad *d) { // d is already off g_hidpads+ dm_pad_players(pad_slot_mask(&g_slots));}static void pads_start(void) {+ key_map_default(&g_keys); pad_map_default(&g_padmap);@@ -126,12 +136,12 @@ index beffeea..fb74e5b 100644const char *e = getenv("DM_PAD_MERGE"); g_merge = e && atoi(e);e = getenv("DM_KBD_PLAYER"); g_kbd_own = !g_merge && e && !strcmp(e, "own");static const char kbd = 0;-@@ -1255,7 +1255,7 @@ int front_text_input(const char *title, const char *sub, const char *guide, cons+@@ -1333,7 +1335,7 @@ int front_text_input(const char *title, const char *sub, const char *guide, consdispatch_sync(dispatch_get_main_queue(), ^{// The box takes the keyboard and the mouse, so the game window never sees the key-up of the button or the touch-up of the click that opened it: nothing may stay pressed// while it is up, or the game reads the stuck button / touch the moment the box closes (Stardew Valley's character creation re-opened the keyboard endlessly)-- g_btn = 0; g_w = g_a = g_s = g_d = 0; push();-+ g_btn = 0; g_held_fn = 0; push();+- g_btn = 0; g_w = g_a = g_s = g_d = 0; g_rl = g_ru = g_rr = g_rd = 0; push();++ g_btn = 0; g_held_fn = 0; memset(g_shift_fn, 0, sizeof g_shift_fn); push();dm_touch_set(NULL, 0);int min_chars = g_swkbd_min_chars > 0 ? g_swkbd_min_chars : 0;NSString *info = [NSString stringWithFormat:@"%s%s%s", sub ? sub : "", sub && *sub && guide && *guide ? "\n" : "", guide ? guide : ""];@@ -224,28 +234,28 @@ index 0000000..56fa499+}+static int pad_map_is_default(const pad_map *m) { for (int b = 0; b < IM_BUTTONS; b++) if (m->to[b] != b) return 0; return 1; }diff --git a/dm/host/tests/Makefile b/dm/host/tests/Makefile-index 099bcfe..97d104c 100644+index fdd2817..61529d6 100644--- a/dm/host/tests/Makefile+++ b/dm/host/tests/Makefile@@ -12,7 +12,7 @@ QUIET = $(if $(findstring -fsanitize,$(SAN)),,2>/dev/null)GINC = $(if $(strip $(GAME)),-I../gen/$(GAME) -I../../games/$(GAME),$(error GAME is not set: make GAME=<base game title ID>: $(shell python3 ../../games/game.py list | awk -F'\t' '{printf "%s (%s) ", $$1, $$3}')))$(B)/t_fs $(B)/t_fs_case $(B)/t_fs_commit_list $(B)/t_fs_commit_list_tsan: ../romfs_image.hGAME_H = ../gen/$(GAME)/game_profile.h--run: $(B)/t_language $(B)/t_motion $(B)/t_heap_size $(B)/t_touch $(B)/t_gesture $(B)/t_oe $(B)/t_fs $(B)/t_fs_commit_list $(B)/t_thread_leak $(B)/t_fs_case $(B)/t_audio $(B)/t_audio_spsc $(B)/t_swkbd $(B)/t_altstack $(B)/t_condvar $(B)/t_condvar_old $(B)/t_pollwait $(B)/t_pctl $(B)/t_time $(B)/t_shared_font $(B)/t_vorbis $(B)/t_vorbis_divides $(B)/t_hid $(B)/t_haptics $(B)/t_haptics_apple $(B)/t_cheats-+run: $(B)/t_language $(B)/t_motion $(B)/t_heap_size $(B)/t_touch $(B)/t_gesture $(B)/t_oe $(B)/t_fs $(B)/t_fs_commit_list $(B)/t_thread_leak $(B)/t_fs_case $(B)/t_audio $(B)/t_audio_spsc $(B)/t_swkbd $(B)/t_altstack $(B)/t_condvar $(B)/t_condvar_old $(B)/t_pollwait $(B)/t_pctl $(B)/t_time $(B)/t_shared_font $(B)/t_vorbis $(B)/t_vorbis_divides $(B)/t_hid $(B)/t_haptics $(B)/t_haptics_apple $(B)/t_cheats $(B)/t_input_map $(B)/t_launcher_contract+-run: $(B)/t_language $(B)/t_motion $(B)/t_heap_size $(B)/t_touch $(B)/t_gesture $(B)/t_oe $(B)/t_fs $(B)/t_fs_commit_list $(B)/t_thread_leak $(B)/t_fs_case $(B)/t_audio $(B)/t_audio_spsc $(B)/t_swkbd $(B)/t_altstack $(B)/t_condvar $(B)/t_condvar_old $(B)/t_pollwait $(B)/t_pctl $(B)/t_time $(B)/t_shared_font $(B)/t_vorbis $(B)/t_vorbis_divides $(B)/t_hid $(B)/t_haptics $(B)/t_haptics_apple $(B)/t_cheats $(B)/t_pad_hid++run: $(B)/t_language $(B)/t_motion $(B)/t_heap_size $(B)/t_touch $(B)/t_gesture $(B)/t_oe $(B)/t_fs $(B)/t_fs_commit_list $(B)/t_thread_leak $(B)/t_fs_case $(B)/t_audio $(B)/t_audio_spsc $(B)/t_swkbd $(B)/t_altstack $(B)/t_condvar $(B)/t_condvar_old $(B)/t_pollwait $(B)/t_pctl $(B)/t_time $(B)/t_shared_font $(B)/t_vorbis $(B)/t_vorbis_divides $(B)/t_hid $(B)/t_haptics $(B)/t_haptics_apple $(B)/t_cheats $(B)/t_pad_hid $(B)/t_input_map $(B)/t_launcher_contract$(B)/t_language$(B)/t_heap_size$(B)/t_touch-@@ -53,6 +53,8 @@ run: $(B)/t_language $(B)/t_motion $(B)/t_heap_size $(B)/t_touch $(B)/t_gesture- $(B)/t_motion_pro+@@ -57,6 +57,8 @@ run: $(B)/t_language $(B)/t_motion $(B)/t_heap_size $(B)/t_touch $(B)/t_gesture$(B)/t_motion_pro_macTMPDIR="$(abspath $(B))" $(B)/t_hid+ $(B)/t_pad_hid+ $(B)/t_input_map+ $(B)/t_launcher_contract$(B)/t_haptics$(B)/t_haptics_appleTMPDIR="$(abspath $(B))" $(B)/t_cheats $(QUIET)-@@ -175,6 +177,10 @@ $(B)/t_motion_pro: t_motion_pro.c ../motion_pro.h | $(B)+@@ -196,6 +198,10 @@ $(B)/t_motion_pro: t_motion_pro.c ../motion_pro.h | $(B)$(CLANG) -O1 -g -Wall -Werror -fsanitize=address,undefined -o $@ t_motion_pro.c$(B)/t_motion_pro_mac: t_motion_pro_mac.m ../motion_pro_mac.h ../motion_pro.h ../dm_input.h | $(B)$(CLANG) -O1 -g -fobjc-arc -Wall -Werror -Wno-unused-function -fsanitize=address,undefined -I.. -o $@ t_motion_pro_mac.m -framework Foundation -framework GameController -framework IOKit@@ -359,7 +369,7 @@ index 4961987..de8c929 100644dm/host/motion_apple.h hle:*SixAxisSensor* controller motion supplied by GameControllerdm/host/pad_apple.h hle:*hid* controller face buttons from GameControllerdiff --git a/docs/development.md b/docs/development.md-index 5232a58..d3ebdd2 100644+index 48dcbd1..b069427 100644--- a/docs/development.md+++ b/docs/development.md@@ -14,6 +14,8 @@ The README covers packing and playing. This page is for working on nxnative itse@@ -372,10 +382,10 @@ index 5232a58..d3ebdd2 100644How a Switch with Atmosphère runs cheats, and where this host differs, is in [Cheats on a Switch](reference/cheats.md).diff --git a/docs/env_switches.tsv b/docs/env_switches.tsv-index 1cee0c6..36c1374 100644+index f0cbbba..bcb7056 100644--- a/docs/env_switches.tsv+++ b/docs/env_switches.tsv-@@ -64,6 +64,7 @@ DM_ICON path `=<image>` gives `build_ipa.sh` another app icon (default the `icon+@@ -67,6 +67,7 @@ DM_ICON path `=<image>` gives `build_ipa.sh` another app icon (default the `iconDM_IMPORTS diagnostic When set, logs each import the loader binds to a host function and each forced takeoverDM_KBD switch `=<text>`: the system keyboard returns that text as OK without showing an input box; unset with no window, it returns cancelDM_KBD_PLAYER switch `own` makes the Mac keyboard player 1 on its own, with controllers from player 2 on (by default the first controller shares player 1 with the keyboard)@@ -383,7 +393,7 @@ index 1cee0c6..36c1374 100644DM_KEYS switch Scripted input: `<seconds or f<frame>>:<key>[+key][~hold or ~f<frames>][*count/interval],…` presses buttons, sticks, touches and `Shake` at those times; `=@<file>` reads the steps from the fileDM_LANG player Game language as a language code (default `en-US`; the iOS app sets the one the IPA was packed with)DM_LAUNCHER switch `0` skips the iOS settings screen or the Mac settings window and starts the game at once, with the saved choices (on the Mac also `--no-launcher`)-@@ -192,6 +193,7 @@ DM_OODLE_JOB path `=<job file>`: the host runs the game's own Oodle decoder on e+@@ -197,6 +198,7 @@ DM_OODLE_JOB path `=<job file>`: the host runs the game's own Oodle decoder on eDM_OODLE_MODULES path The rewritten modules the Mac host's Oodle tool mode loads when `shader_split.py` decodes Trinity packs; set by the NSP scriptDM_OODLE_SERVE switch `=1`: the host answers decode requests on stdin / stdout with the game's own Oodle (or LZ5) decoder from the guest main thread before the SDK starts, until stdin endsDM_OPMODE player The operation mode the game sees: `0` handheld, `1` console (default: the profile's `op_mode`, console unless set); read once at startupdiff --git a/patches/0017-fork-patches-stamp.patch b/patches/0017-fork-patches-stamp.patchindex 75f4fa2d..352cd1ec 100644--- a/patches/0017-fork-patches-stamp.patch+++ b/patches/0017-fork-patches-stamp.patch@@ -23,10 +23,10 @@ Issue: LNPANDY/NX2Apple#1236 files changed, 16 insertions(+), 2 deletions(-)diff --git a/dm/ios/Sources/main.m b/dm/ios/Sources/main.m-index ddfce1a..7e4d49a 100644+index a5fe462..487a711 100644--- a/dm/ios/Sources/main.m+++ b/dm/ios/Sources/main.m-@@ -218,6 +218,9 @@ static int boot_env(void) {+@@ -227,6 +227,9 @@ static int boot_env(void) {NSString *log = [doc stringByAppendingPathComponent:@"log.txt"], *prev = [doc stringByAppendingPathComponent:@"log.prev.txt"];[fm removeItemAtPath:prev error:nil]; [fm moveItemAtPath:log toPath:prev error:nil];if (freopen(log.fileSystemRepresentation, "w", stderr)) setvbuf(stderr, NULL, _IOLBF, 0);@@ -49,7 +49,7 @@ index 16b4165..ed0010a 100644GCSupportsControllerUserInteraction: true # Physical controllers (GameController)GCSupportedGameControllers:diff --git a/dm/ios/tools/build_ipa.sh b/dm/ios/tools/build_ipa.sh-index 6a33884..92fd85d 100755+index 8f42405..783b16c 100755--- a/dm/ios/tools/build_ipa.sh+++ b/dm/ios/tools/build_ipa.sh@@ -38,6 +38,7 @@ VNACP=$(dirname "$ROMFS")/control.nacp; [ -f "$VNACP" ] || VNACP=$W/data/v0/contdiff --git a/patches/0018-nsp-dotnet-root-verify.patch b/patches/0018-nsp-dotnet-root-verify.patchindex 61072834..440a2738 100644--- a/patches/0018-nsp-dotnet-root-verify.patch+++ b/patches/0018-nsp-dotnet-root-verify.patch@@ -12,10 +12,10 @@ Issue: LNPANDY/NX2Apple#1231 file changed, 23 insertions(+)diff --git a/scripts/build_ipa_from_nsp.py b/scripts/build_ipa_from_nsp.py-index da118fe..a60d511 100755+index a4da14e..492f238 100755--- a/scripts/build_ipa_from_nsp.py+++ b/scripts/build_ipa_from_nsp.py-@@ -2336,6 +2336,29 @@ def main(args=None):+@@ -2432,6 +2432,29 @@ def main(args=None):env.setdefault('DOTNET_CLI_TELEMETRY_OPTOUT', '1')env.setdefault('DOTNET_NOLOGO', '1')configure_dotnet(env)@@ -44,4 +44,4 @@ index da118fe..a60d511 100755+ say('DOTNET_ROOT: removed (none verified — the apphost searches its default locations)')env.setdefault('J', str(os.cpu_count() or 8)) # shader_split.py's and dmsh_build.py's workers (their default is 8)py = sys.executable- with package_title_reader(repo, keys, env) as from_package: app, fam = scan_nsps(nsp_dir, from_package)+ want = args.title_id or TITLE_IDdiff --git a/patches/0031-front-mac-dm-screen.patch b/patches/0031-front-mac-dm-screen.patchindex 4d537fc9..628d52a5 100644--- a/patches/0031-front-mac-dm-screen.patch+++ b/patches/0031-front-mac-dm-screen.patch@@ -14,11 +14,11 @@ Issue: LNPANDY/NX2Apple#2214 files changed, 14 insertions(+), 1 deletion(-)diff --git a/dm/host/front_mac.m b/dm/host/front_mac.m-index fb74e5b..6706ced 100644+index 6123890..7b8d20c 100644--- a/dm/host/front_mac.m+++ b/dm/host/front_mac.m-@@ -1126,6 +1126,17 @@ void front_run(void (*guest)(void)) {- if (getenv("DM_METAL_HUD") && atoi(getenv("DM_METAL_HUD"))) { g_layer.developerHUDProperties = @{@"mode": @"default"}; LOG("front end: Metal performance HUD on (DM_METAL_HUD)"); } // Apple's HUD over the game: frame rate, frame and GPU time, memory+@@ -1204,6 +1204,17 @@ void front_run(void (*guest)(void)) {+ if (getenv("DM_METAL_HUD") && atoi(getenv("DM_METAL_HUD"))) LOG("front end: Metal performance HUD on (DM_METAL_HUD)");v.layer = g_layer; [(DmGameView *)v fitDrawable];[win center];+ // DM_SCREEN=<NSScreenNumber>: the launcher's display. Moved before the window is shown and before any fullscreen request, so DM_FULLSCREEN enters fullscreen there@@ -33,26 +33,26 @@ index fb74e5b..6706ced 100644+ } else LOG("front end: DM_SCREEN=%s ignored, no connected screen has that number", want_scr);+ }[win makeKeyAndOrderFront:nil];- g_screen_fps = (int)(win.screen ?: NSScreen.mainScreen).maximumFramesPerSecond;+ screen_refresh(win.screen ?: NSScreen.mainScreen);g_win = win;diff --git a/docs/development.md b/docs/development.md-index d3ebdd2..7b7fa3a 100644+index b069427..8191ce7 100644--- a/docs/development.md+++ b/docs/development.md@@ -10,7 +10,7 @@ The README covers packing and playing. This page is for working on nxnative itse| Host (`dm/host`) | Stands in for the Horizon kernel and the system services the games call: threads and synchronization, memory, file system with transactional saves, HID, audio, movies (VP9 through libvpx, Vorbis sound through stb_vorbis), software keyboard, focus and lifecycle || Graphics (`dm/gfx`) | NVN on Metal. Shaders are extracted by `shader_split.py` from Nintendo's containers and from Unity's `Shader` objects, then translated offline. Mario: 16,266 of 16,268 shaders compile. Engage: 9,268 of 9,269. Games that render with Vulkan (Hades) or OpenGL (Digimon Story Cyber Sleuth) go through layers of their own on Metal (`dm/gfx/vk`, `dm/gfx/gl`) || Audio | Games that carry the SDK's audio renderer (Mario) run it in-process; games that use AudioOut directly (Engage: Wwise) feed it straight. Output goes through Core Audio (default on iOS, `DM_AUDIO=1` on the Mac) |--| Input | iOS: the touch gamepad (hidden while a physical controller is connected) and physical controllers; shaking the phone shakes the controller (its six-axis sensor, `hle_hid.c`; the accelerometer in `DmGamepad.m`, threshold `DM_SHAKE_G`, 1.5 G by default). Mac: scripted input (`DM_KEYS=<seconds>:<button>,…`, `Shake` for a shake, with `DM_KBD=<text>` answering the system keyboard; `DM_REC=<file>` records what the player does in that syntax, [05](agents/05-debugging.md#scripted-input-and-thread-scheduling)) or `DM_WINDOW=1` for a window with keyboard input (Space shakes) and physical controllers (face buttons by position as on the iPhone, a Nintendo pad by its labels: `pad_apple.h`). On the Mac and iOS each controller is a player of its own, for local co-op: the first one connected is player 1, together with the keyboard (iOS: the touch gamepad and the phone's gyro), the next player 2, and so on up to 8 (`pad_slots.h`); a controller that is removed frees its player and gets it back when it reconnects, and the log names each one's player and npad (`controller 'Xbox Wireless Controller' connected: player 2 (npad 1)`). Player 1 is the Handheld npad in handheld mode and No1 docked, player n is No n; the game's supported npad ids decide how many play (`hle_hid.c`): a one-player game gets every controller as player 1, and a controller past a game's last player is not used. `DM_PAD_MERGE=1` makes every controller player 1, as before (on iOS from `Documents/env.txt`); `DM_KBD_PLAYER=own` makes the keyboard player 1 on its own, with the controllers from player 2 on. The window goes fullscreen from its green button or ⌃⌘F; `DM_FULLSCREEN=1` starts it that way. In fullscreen, a screen whose refresh rate is not a multiple of the game's (144 or 165 Hz) runs at one that is (120 Hz) until the window leaves fullscreen; `DM_SCREEN_MATCH=0` keeps its rate. The drawable follows the window in pixels (fullscreen at the screen's resolution); `DM_METAL_HUD=1` shows Apple's performance HUD (on the iPhone too, from `Documents/env.txt`). The left mouse button is the touchscreen, on the 16:9 picture. Motion: a controller with a gyroscope drives its player's six-axis sensor (`motion_apple.h` → `dm_motion_set`, `hle_hid.c`; orientation from the gyro with tilt correction toward gravity, `motion_fusion.h`), and on iOS the phone's own device motion drives player 1's while no controller supplies fresh motion (`DmGamepad.m`, in the Switch frame: the pad view's own frame on iOS 27 and later (`deviceMotionBody`), turned for the screen's orientation before that ([The phone's motion in the picture's frame](reference/services.md#the-phones-motion-in-the-pictures-frame)); `DM_PHONE_MOTION=0|1|auto`; `1` selects only the phone). On the Mac, a Switch Pro Controller whose GameController motion is empty can use passive HID reports instead (`motion_pro_mac.h`; `DM_MOTION_HID=0` turns this reader off). This requires exactly one Pro in each API so it can use the same player slot without guessing; multiple Pros retain GameController input. Raw HID has its own orientation and nominal sensor scales; hardware validation of the reworked reader remains open ([Pro Controller fallback](reference/services.md#switch-pro-controller-advertises-motion-but-sends-zeroes)). `DM_MOTION_AXES` / `DM_MOTION_ACC_SIGN` apply only to GameController. Each source keeps its own orientation. Without live motion the sensor lies flat as before. `DM_MOTION_LOG=1` logs player 1's mapped sample once a second per source; `DM_MOTION_AXES` (e.g. `x,-z,y`) and `DM_MOTION_ACC_SIGN=-1` remap a controller whose axes differ, `DM_MOTION_GAIN` sets the tilt correction (0.5), `DM_MOTION=0` turns motion off (the NSP script's `--no-motion` builds it in). The console's own sensor (`SevenSixAxisSensor`, read in handheld mode) still reports no states. In handheld mode the touches also drive `hid::GetGestureStates` (taps, presses, pans, swipes, pinches and rotations recognized by the host, `hle_touch.c`) |-+| Input | iOS: the touch gamepad (hidden while a physical controller is connected) and physical controllers; shaking the phone shakes the controller (its six-axis sensor, `hle_hid.c`; the accelerometer in `DmGamepad.m`, threshold `DM_SHAKE_G`, 1.5 G by default). Mac: scripted input (`DM_KEYS=<seconds>:<button>,…`, `Shake` for a shake, with `DM_KBD=<text>` answering the system keyboard; `DM_REC=<file>` records what the player does in that syntax, [05](agents/05-debugging.md#scripted-input-and-thread-scheduling)) or `DM_WINDOW=1` for a window with keyboard input (Space shakes) and physical controllers (face buttons by position as on the iPhone, a Nintendo pad by its labels: `pad_apple.h`). On the Mac and iOS each controller is a player of its own, for local co-op: the first one connected is player 1, together with the keyboard (iOS: the touch gamepad and the phone's gyro), the next player 2, and so on up to 8 (`pad_slots.h`); a controller that is removed frees its player and gets it back when it reconnects, and the log names each one's player and npad (`controller 'Xbox Wireless Controller' connected: player 2 (npad 1)`). Player 1 is the Handheld npad in handheld mode and No1 docked, player n is No n; the game's supported npad ids decide how many play (`hle_hid.c`): a one-player game gets every controller as player 1, and a controller past a game's last player is not used. `DM_PAD_MERGE=1` makes every controller player 1, as before (on iOS from `Documents/env.txt`); `DM_KBD_PLAYER=own` makes the keyboard player 1 on its own, with the controllers from player 2 on. The window goes fullscreen from its green button or ⌃⌘F; `DM_FULLSCREEN=1` starts it that way and `DM_SCREEN=<NSScreenNumber>` opens it on that screen instead of the one macOS picks. In fullscreen, a screen whose refresh rate is not a multiple of the game's (144 or 165 Hz) runs at one that is (120 Hz) until the window leaves fullscreen; `DM_SCREEN_MATCH=0` keeps its rate. The drawable follows the window in pixels (fullscreen at the screen's resolution); `DM_METAL_HUD=1` shows Apple's performance HUD (on the iPhone too, from `Documents/env.txt`). The left mouse button is the touchscreen, on the 16:9 picture. Motion: a controller with a gyroscope drives its player's six-axis sensor (`motion_apple.h` → `dm_motion_set`, `hle_hid.c`; orientation from the gyro with tilt correction toward gravity, `motion_fusion.h`), and on iOS the phone's own device motion drives player 1's while no controller supplies fresh motion (`DmGamepad.m`, in the Switch frame: the pad view's own frame on iOS 27 and later (`deviceMotionBody`), turned for the screen's orientation before that ([The phone's motion in the picture's frame](reference/services.md#the-phones-motion-in-the-pictures-frame)); `DM_PHONE_MOTION=0|1|auto`; `1` selects only the phone). On the Mac, a Switch Pro Controller whose GameController motion is empty can use passive HID reports instead (`motion_pro_mac.h`; `DM_MOTION_HID=0` turns this reader off). This requires exactly one Pro in each API so it can use the same player slot without guessing; multiple Pros retain GameController input. Raw HID has its own orientation and nominal sensor scales; hardware validation of the reworked reader remains open ([Pro Controller fallback](reference/services.md#switch-pro-controller-advertises-motion-but-sends-zeroes)). `DM_MOTION_AXES` / `DM_MOTION_ACC_SIGN` apply only to GameController. Each source keeps its own orientation. Without live motion the sensor lies flat as before. `DM_MOTION_LOG=1` logs player 1's mapped sample once a second per source; `DM_MOTION_AXES` (e.g. `x,-z,y`) and `DM_MOTION_ACC_SIGN=-1` remap a controller whose axes differ, `DM_MOTION_GAIN` sets the tilt correction (0.5), `DM_MOTION=0` turns motion off (the NSP script's `--no-motion` builds it in). The console's own sensor (`SevenSixAxisSensor`, read in handheld mode) still reports no states. In handheld mode the touches also drive `hid::GetGestureStates` (taps, presses, pans, swipes, pinches and rotations recognized by the host, `hle_touch.c`) |+-| Input | iOS: the touch gamepad (hidden while a physical controller is connected) and physical controllers; shaking the phone shakes the controller (its six-axis sensor, `hle_hid.c`; the accelerometer in `DmGamepad.m`, threshold `DM_SHAKE_G`, 1.5 G by default). Mac: scripted input (`DM_KEYS=<seconds>:<button>,…`, `Shake` for a shake, with `DM_KBD=<text>` answering the system keyboard; `DM_REC=<file>` records what the player does in that syntax, [05](agents/05-debugging.md#scripted-input-and-thread-scheduling)) or `DM_WINDOW=1` for a window with keyboard input (Space shakes; Shift + arrow keys move the right stick, the arrow keys alone are the D-pad; key map in `front_mac.m`) and physical controllers (face buttons by position as on the iPhone, a Nintendo pad by its labels: `pad_apple.h`). On the Mac and iOS each controller is a player of its own, for local co-op: the first one connected is player 1, together with the keyboard (iOS: the touch gamepad and the phone's gyro), the next player 2, and so on up to 8 (`pad_slots.h`); a controller that is removed frees its player and gets it back when it reconnects, and the log names each one's player and npad (`controller 'Xbox Wireless Controller' connected: player 2 (npad 1)`). Player 1 is the Handheld npad in handheld mode and No1 docked, player n is No n; the game's supported npad ids decide how many play (`hle_hid.c`): a one-player game gets every controller as player 1, and a controller past a game's last player is not used. `DM_PAD_MERGE=1` makes every controller player 1, as before (on iOS from `Documents/env.txt`); `DM_KBD_PLAYER=own` makes the keyboard player 1 on its own, with the controllers from player 2 on. The window goes fullscreen from its green button or ⌃⌘F; `DM_FULLSCREEN=1` starts it that way. In fullscreen, a screen whose refresh rate is not a multiple of the game's (144 or 165 Hz) runs at one that is (120 Hz) until the window leaves fullscreen; `DM_SCREEN_MATCH=0` keeps its rate. The drawable follows the window in pixels (fullscreen at the screen's resolution); `DM_METAL_HUD=1` shows Apple's performance HUD (on the iPhone too, from `Documents/env.txt`). The left mouse button is the touchscreen, on the 16:9 picture. Motion: a controller with a gyroscope drives its player's six-axis sensor (`motion_apple.h` → `dm_motion_set`, `hle_hid.c`; orientation from the gyro with tilt correction toward gravity, `motion_fusion.h`), and on iOS the phone's own device motion drives player 1's while no controller supplies fresh motion (`DmGamepad.m`, in the Switch frame: the pad view's own frame on iOS 27 and later (`deviceMotionBody`), turned for the screen's orientation before that ([The phone's motion in the picture's frame](reference/services.md#the-phones-motion-in-the-pictures-frame)); `DM_PHONE_MOTION=0|1|auto`; `1` selects only the phone). On the Mac, a Switch Pro Controller whose GameController motion is empty can use passive HID reports instead (`motion_pro_mac.h`; `DM_MOTION_HID=0` turns this reader off). This requires exactly one Pro in each API so it can use the same player slot without guessing; multiple Pros retain GameController input. Raw HID has its own orientation and nominal sensor scales; hardware validation of the reworked reader remains open ([Pro Controller fallback](reference/services.md#switch-pro-controller-advertises-motion-but-sends-zeroes)). `DM_MOTION_AXES` / `DM_MOTION_ACC_SIGN` apply only to GameController. Each source keeps its own orientation. Without live motion the sensor lies flat as before. `DM_MOTION_LOG=1` logs player 1's mapped sample once a second per source; `DM_MOTION_AXES` (e.g. `x,-z,y`) and `DM_MOTION_ACC_SIGN=-1` remap a controller whose axes differ, `DM_MOTION_GAIN` sets the tilt correction (0.5), `DM_MOTION=0` turns motion off (the NSP script's `--no-motion` builds it in). The console's own sensor (`SevenSixAxisSensor`, read in handheld mode) still reports no states. In handheld mode the touches also drive `hid::GetGestureStates` (taps, presses, pans, swipes, pinches and rotations recognized by the host, `hle_touch.c`) |++| Input | iOS: the touch gamepad (hidden while a physical controller is connected) and physical controllers; shaking the phone shakes the controller (its six-axis sensor, `hle_hid.c`; the accelerometer in `DmGamepad.m`, threshold `DM_SHAKE_G`, 1.5 G by default). Mac: scripted input (`DM_KEYS=<seconds>:<button>,…`, `Shake` for a shake, with `DM_KBD=<text>` answering the system keyboard; `DM_REC=<file>` records what the player does in that syntax, [05](agents/05-debugging.md#scripted-input-and-thread-scheduling)) or `DM_WINDOW=1` for a window with keyboard input (Space shakes; Shift + arrow keys move the right stick, the arrow keys alone are the D-pad; key map in `front_mac.m`) and physical controllers (face buttons by position as on the iPhone, a Nintendo pad by its labels: `pad_apple.h`). On the Mac and iOS each controller is a player of its own, for local co-op: the first one connected is player 1, together with the keyboard (iOS: the touch gamepad and the phone's gyro), the next player 2, and so on up to 8 (`pad_slots.h`); a controller that is removed frees its player and gets it back when it reconnects, and the log names each one's player and npad (`controller 'Xbox Wireless Controller' connected: player 2 (npad 1)`). Player 1 is the Handheld npad in handheld mode and No1 docked, player n is No n; the game's supported npad ids decide how many play (`hle_hid.c`): a one-player game gets every controller as player 1, and a controller past a game's last player is not used. `DM_PAD_MERGE=1` makes every controller player 1, as before (on iOS from `Documents/env.txt`); `DM_KBD_PLAYER=own` makes the keyboard player 1 on its own, with the controllers from player 2 on. The window goes fullscreen from its green button or ⌃⌘F; `DM_FULLSCREEN=1` starts it that way and `DM_SCREEN=<NSScreenNumber>` opens it on that screen instead of the one macOS picks. In fullscreen, a screen whose refresh rate is not a multiple of the game's (144 or 165 Hz) runs at one that is (120 Hz) until the window leaves fullscreen; `DM_SCREEN_MATCH=0` keeps its rate. The drawable follows the window in pixels (fullscreen at the screen's resolution); `DM_METAL_HUD=1` shows Apple's performance HUD (on the iPhone too, from `Documents/env.txt`). The left mouse button is the touchscreen, on the 16:9 picture. Motion: a controller with a gyroscope drives its player's six-axis sensor (`motion_apple.h` → `dm_motion_set`, `hle_hid.c`; orientation from the gyro with tilt correction toward gravity, `motion_fusion.h`), and on iOS the phone's own device motion drives player 1's while no controller supplies fresh motion (`DmGamepad.m`, in the Switch frame: the pad view's own frame on iOS 27 and later (`deviceMotionBody`), turned for the screen's orientation before that ([The phone's motion in the picture's frame](reference/services.md#the-phones-motion-in-the-pictures-frame)); `DM_PHONE_MOTION=0|1|auto`; `1` selects only the phone). On the Mac, a Switch Pro Controller whose GameController motion is empty can use passive HID reports instead (`motion_pro_mac.h`; `DM_MOTION_HID=0` turns this reader off). This requires exactly one Pro in each API so it can use the same player slot without guessing; multiple Pros retain GameController input. Raw HID has its own orientation and nominal sensor scales; hardware validation of the reworked reader remains open ([Pro Controller fallback](reference/services.md#switch-pro-controller-advertises-motion-but-sends-zeroes)). `DM_MOTION_AXES` / `DM_MOTION_ACC_SIGN` apply only to GameController. Each source keeps its own orientation. Without live motion the sensor lies flat as before. `DM_MOTION_LOG=1` logs player 1's mapped sample once a second per source; `DM_MOTION_AXES` (e.g. `x,-z,y`) and `DM_MOTION_ACC_SIGN=-1` remap a controller whose axes differ, `DM_MOTION_GAIN` sets the tilt correction (0.5), `DM_MOTION=0` turns motion off (the NSP script's `--no-motion` builds it in). The console's own sensor (`SevenSixAxisSensor`, read in handheld mode) still reports no states. In handheld mode the touches also drive `hid::GetGestureStates` (taps, presses, pans, swipes, pinches and rotations recognized by the host, `hle_touch.c`) || iOS app | One unsigned IPA for iPhone and iPad. The rewritten code is embedded in the executable; the shader libraries, the RomFS and the game icon are inside the app. A settings screen comes before the game (`Launcher.swift`, drawn from `dm/launcher.json`, which `dm/games/settings.py` writes from `dm/games/settings.tsv`); the host's loading starts at app launch meanwhile, and the frame rate and render scale go into the frame step state when the game starts (`loader.c` `dm_fps_state_apply`) || Known gaps | Conditional render is always drawn; `MultiDraw*IndirectCount` waits on the CPU for the GPU-written count; geometry shaders do not translate. TBDR optimizations are off by default (they don't understand bindless textures yet). No amiibo. On the Mac, Mario's menu and dialogue text render blank (fine on the iPhone) |diff --git a/docs/env_switches.tsv b/docs/env_switches.tsv-index 36c1374..f05c13a 100644+index bcb7056..d83ac4a 100644--- a/docs/env_switches.tsv+++ b/docs/env_switches.tsv-@@ -268,6 +268,7 @@ DM_SAVE path This run's save folder (must be set); the device save is `<DM_SAVE>+@@ -273,6 +273,7 @@ DM_SAVE path This run's save folder (must be set); the device save is `<DM_SAVE>DM_SAVED_CHOICES switch `0` ignores the player's saved choices (launcher.<VAR> in the app's preferences) and leaves them saved; the Mac launcher and the iOS settings screenDM_SAVE_SYNC player Cloud saves: the folder whose `<title ID>/save.dmsync` the save is synced through, `icloud` for iCloud Drive/nxnative Saves (the Mac); `0` or unset, off. The Mac launcher sets the folder chosen in its settings window's Cloud saves, the iPhone app the one picked in its launcher (dm/host/save_sync.h)DM_SCHEME_NAME switch Set by `build_ipa.sh` itself for xcodegen's `project.yml`: the Xcode scheme name, `DmIOS`, or `<display name> (<title ID>)` for a project prepared with `--prepare-xcode`diff --git a/patches/0032-front-mac-hide-the-pointer-after-a-few-idle-seco.patch b/patches/0032-front-mac-hide-the-pointer-after-a-few-idle-seco.patchindex b7f2c0a0..8ad261b0 100644--- a/patches/0032-front-mac-hide-the-pointer-after-a-few-idle-seco.patch+++ b/patches/0032-front-mac-hide-the-pointer-after-a-few-idle-seco.patch@@ -16,10 +16,10 @@ Issue: LNPANDY/NX2Apple#2723 files changed, 25 insertions(+)diff --git a/dm/host/front_mac.m b/dm/host/front_mac.m-index 6706ced..99d217d 100644+index 7b8d20c..e3b5211 100644--- a/dm/host/front_mac.m+++ b/dm/host/front_mac.m-@@ -1192,6 +1192,22 @@ void front_run(void (*guest)(void)) {+@@ -1270,6 +1270,22 @@ void front_run(void (*guest)(void)) {(void)n; want = 0; entering = 0; g_fs_failed = nil; }]; // startup succeeded: later manual refusals have no startup request to retrydispatch_async(dispatch_get_main_queue(), enter);}@@ -43,7 +43,7 @@ index 6706ced..99d217d 100644[NSNotificationCenter.defaultCenter addObserverForName:nm object:nil queue:NSOperationQueue.mainQueue usingBlock:^(NSNotification *n) {GCController *c = n.object; int conn = n.name == GCControllerDidConnectNotification;diff --git a/docs/env_switches.tsv b/docs/env_switches.tsv-index f05c13a..5ce83dd 100644+index d83ac4a..b14a397 100644--- a/docs/env_switches.tsv+++ b/docs/env_switches.tsv@@ -20,6 +20,7 @@ DM_CHEATS_WINDOW switch `1` opens the Mac Cheats panel beside the game from the@@ -55,10 +55,10 @@ index f05c13a..5ce83dd 100644DM_DBG_AU_FRAMES diagnostic `=<frames>` asks the Mac's Core Audio output for that many frames per callback instead of about 5 ms (1024 reproduces the iOS default that caused crackling)DM_DETCLOCK switch `=<step ns>`: from the first present on, the guest clock advances a fixed step per present instead of following the wall clock, and the random source becomes a fixed-seed stream (replay and test runs)diff --git a/docs/reference/frame-rate.md b/docs/reference/frame-rate.md-index 62fa9a9..93f4a16 100644+index fc69884..f999f52 100644--- a/docs/reference/frame-rate.md+++ b/docs/reference/frame-rate.md-@@ -227,6 +227,14 @@ Frame pacing: the host's frame step, engine frame limiters, present intervals an+@@ -250,6 +250,14 @@ Frame pacing: the host's frame step, engine frame limiters, present intervals an- **Check:** the reporter confirmed that the deferred request entered fullscreen on its first attempt and stayed there, without a refusal. A harness of the startup callbacks checks both readiness orders, bounded refusal recovery, and cancellation before startup or a queued retry, plus later manual failures after successful startup.- **Not checked:** the revised lifecycle handling in a real game through the launcher's console mode; native refusal recovery (the reporter's deferred request succeeded without it).diff --git a/patches/0034-metal-a-newer-compiler-of-the-recorded-generatio.patch b/patches/0034-metal-a-newer-compiler-of-the-recorded-generatio.patchindex ae7947e5..d84f1721 100644--- a/patches/0034-metal-a-newer-compiler-of-the-recorded-generatio.patch+++ b/patches/0034-metal-a-newer-compiler-of-the-recorded-generatio.patch@@ -15,7 +15,7 @@ Issue: seedds/nxnative#7172 files changed, 68 insertions(+), 6 deletions(-)diff --git a/dm/gfx/tools/own_compilers.py b/dm/gfx/tools/own_compilers.py-index fc0a062..374f766 100644+index d0e967d..415bdd1 100644--- a/dm/gfx/tools/own_compilers.py+++ b/dm/gfx/tools/own_compilers.py@@ -2,6 +2,8 @@@@ -82,14 +82,14 @@ index fc0a062..374f766 100644if __name__ == '__main__':diff --git a/dm/tools/tests/test_own_compilers.py b/dm/tools/tests/test_own_compilers.py-index 4d4f6d3..7d08101 100644+index 860e241..0b1fd07 100644--- a/dm/tools/tests/test_own_compilers.py+++ b/dm/tools/tests/test_own_compilers.py@@ -25,6 +25,8 @@ nsp = importlib.util.module_from_spec(spec); spec.loader.exec_module(nsp)with open(dmsh_chain.LOCK) as _f: LOCKED = dict(l.rstrip('\n').split('\t', 1) for l in _f if '\t' in l and not l.startswith('#'))OTHER = 'Apple metal version 32023.850 (metalfe-32023.850.10)' # Xcode 26's, say-+NEWER = 'Apple metal version 32023.922 (metalfe-32023.922.4)' # Xcode 27.2's auto-updated compiler: the recorded generation, newer than the lock++NEWER = 'Apple metal version 32023.923 (metalfe-32023.923.1)' # a later auto-updated compiler: the recorded generation, newer than the lock (Xcode 27.2's own 32023.922 is the lock now)+FOREIGN = 'Apple metal version 32024.100 (metalfe-32024.100.1)' # another toolchain generation, however new@@ -120,7 +120,7 @@ index 4d4f6d3..7d08101 100644+ with self.subTest(other=other):+ with self.assertRaises(SystemExit) as e: self.check([mismatch('metal_macosx', other)])+ self.assertTrue(str(e.exception.code).startswith('[RED] '))-+ self.assertEqual(own_compilers.metal_key(LOCKED['metal_macosx']), (32023, 921, 6))++ self.assertEqual(own_compilers.metal_key(LOCKED['metal_macosx']), (32023, 922, 4))+ self.assertIsNone(own_compilers.metal_key('Apple metal 32023.922'))++ def test_newer_and_stopping_together(self): # a newer macOS compiler and an older iOS one: the iOS mismatch stops, both notes reach the logdiff --git a/patches/0037-totk-1.4.2-frame-step-sites.patch b/patches/0037-totk-1.4.2-frame-step-sites.patchindex 94ea9f8b..a70b255c 100644--- a/patches/0037-totk-1.4.2-frame-step-sites.patch+++ b/patches/0037-totk-1.4.2-frame-step-sites.patch@@ -38,7 +38,7 @@ Issue: LNPANDY/NX2Apple#3033 files changed, 45 insertions(+), 25 deletions(-)diff --git a/dm/games/0100F2C0115B6000/README.md b/dm/games/0100F2C0115B6000/README.md-index 2ac37ae..e197da9 100644+index 1748061..eb3015f 100644--- a/dm/games/0100F2C0115B6000/README.md+++ b/dm/games/0100F2C0115B6000/README.md@@ -24,6 +24,13 @@ Update 1.4.3 (v720896) over the base game, SDK 20.5.22. Nintendo EPD's engine (sdiff --git a/patches/0040-nsp-derived-profile-without-frame-step.patch b/patches/0040-nsp-derived-profile-without-frame-step.patchdeleted file mode 100644index f17f39b3..00000000--- a/patches/0040-nsp-derived-profile-without-frame-step.patch+++ /dev/null@@ -1,103 +0,0 @@-From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001-From: v0lumehi <[email protected]>-Date: Sat, 31 Oct 2026 13:59:49 +0100-Subject: [PATCH] build_ipa_from_nsp: a derived profile without frame step- stubs keeps the game's own step--Tears of the Kingdom 1.4.2 ran at double speed. The profile registers only 1.4.3, so a derived profile packs 1.4.2. The profile's patches.py has FRAME_STEP stubs for the 1.4.3 main only. The 1.4.2 main gets no frame step state page, and derive_profile copied fps_target 60 unchanged. Without the page, fps_present_cap() returns 60, present_itv() presents every vsync, and the game steps 1/30 s per frame.--derive_profile now reads the FRAME_STEP table of the profile's patches.py with ast (the file is never run). When the table has entries and none is for the derived main's build ID, the derived profile gets fps_target 0, with a comment line that says why. Registered builds, shader_only derivations and profiles without FRAME_STEP are unchanged.--Reported in LNPANDY/NX2Apple#303, traced by fredchu.--Upstream-Status: forwarded seedds/nxnative#794-Reason: A derived profile with frame step stubs for other builds only kept fps_target 60, so Tears of the Kingdom 1.4.2 ran at double speed-Issue: LNPANDY/NX2Apple#303--Co-authored-by: Fred Chu <[email protected]>----- dm/games/README.md | 2 +-- dm/tools/tests/test_nsp_incremental.py | 14 ++++++++++++++- scripts/build_ipa_from_nsp.py | 16 +++++++++++++++-- 3 files changed, 30 insertions(+), 2 deletions(-)--diff --git a/dm/games/README.md b/dm/games/README.md-index 82d7e3b..5d6d841 100644---- a/dm/games/README.md-+++ b/dm/games/README.md-@@ -189,7 +189,7 @@ One row per profile; the notes are each profile's `README.md`.- | `present_snap` | `on` / `off` (the default): present snapshots by default (`nvn_mtl.m` `mtl_snap_on`, a ring of 2 host textures): each present is copied and the game's swapchain texture is free at once, so the GPU does not idle between frames ([Present snapshots](../../docs/reference/frame-rate.md#present-snapshots-the-games-swapchain-texture-free-at-once)). A setting the game was tested with: the iOS launcher's **Frame buffering** defaults to it, and `DM_PRESENT_SNAP` / `Documents/env.txt` override it. Breath of the Wild sets it on |- | `pso_mtl4` | `on` / `off` (the default): on iOS, render pipelines through MTL4Compiler by default, with the pipeline archive, the prepare step, the hybrid pipelines and the prebuild (on by default on the Mac; `DM_PSO_MTL4=1` / `0` overrides). A setting the game was tested with on an iPhone. It also gives the app the [pipeline archive made offline](../../docs/development.md#the-pipeline-archive-made-offline) (`build_ipa.sh` builds it for `g18p` unless `DM_PSO_GPUS` says otherwise; without the key, none) and the pulling libraries (`_bp`). Breath of the Wild sets it on |- | `enc_thread` | `on` / `off` (the default): on the Mac, Metal encoding on its own thread by default, as on iOS for every game (`nvn_rec.h` `rec_on`; `DM_NVN_ENC_THREAD=1` / `0` and the launcher's Encode thread override it). For a game that waits on its fence every frame, whose submit thread would otherwise also encode before the wait: Need for Speed: Hot Pursuit Remastered's 60 fps frame took 18.1 ms with encoding on the submit thread and 16.7 on its own |--| `fps_target` | Frame rate cap of the rewriter's frame step, for builds that have one (`FRAME_STEP` in the profile's `patches.py`: Tears of the Kingdom 1.4.3, Breath of the Wild 1.9.0, Hyrule Warriors: Age of Calamity 1.3.0, Paper Mario: The Thousand-Year Door 1.0.1, ASTRAL CHAIN 1.0.1), or the engine's own frame limit the host writes into game memory (`hle_fpslock.c`: Monster Hunter Rise 16.0.2, which also needs `present_interval display`; any Unreal Engine 4.2x / 5 build, its `t.MaxFPS` (or `ue_fps_cvar`) and `rhi.SyncInterval` or `nvn.SyncInterval`, found by name by the rewriter, so the game asks for present interval 1 itself; Luigi's Mansion 3 1.4.0, its frame limiter's milliseconds per frame, with `present_interval display`; Pokémon Brilliant Diamond 1.3.0, Unity's integer `Application.targetFrameRate`, also with `present_interval display`; EA SPORTS FC 27, Frostbite's simulation rate, found by name on any build, and on 1.8d.310c its frame regulator, also with `present_interval display`). `0` (the default): the game's own step. `30` / `60`: the host decides each frame's step in whole vsyncs and keeps the frame on screen that long (`hle_nvn.c` `fstep_tick`, `nvn_fstep.h`): 1 at a 60 cap, 2 when 60 does not hold or at a 30 cap (and while a prerendered movie plays), plus one vsync while the game is behind real time after a late frame. Presents follow that hold instead of the interval the game sets. `DM_FPS_TARGET` overrides it, also from `Documents/env.txt`; the log line `frame step: game time … of real time` checks the game's speed |-+| `fps_target` | Frame rate cap of the rewriter's frame step, for builds that have one (`FRAME_STEP` in the profile's `patches.py`: Tears of the Kingdom 1.4.3, Breath of the Wild 1.9.0, Hyrule Warriors: Age of Calamity 1.3.0, Paper Mario: The Thousand-Year Door 1.0.1, ASTRAL CHAIN 1.0.1), or the engine's own frame limit the host writes into game memory (`hle_fpslock.c`: Monster Hunter Rise 16.0.2, which also needs `present_interval display`; any Unreal Engine 4.2x / 5 build, its `t.MaxFPS` (or `ue_fps_cvar`) and `rhi.SyncInterval` or `nvn.SyncInterval`, found by name by the rewriter, so the game asks for present interval 1 itself; Luigi's Mansion 3 1.4.0, its frame limiter's milliseconds per frame, with `present_interval display`; Pokémon Brilliant Diamond 1.3.0, Unity's integer `Application.targetFrameRate`, also with `present_interval display`; EA SPORTS FC 27, Frostbite's simulation rate, found by name on any build, and on 1.8d.310c its frame regulator, also with `present_interval display`). `0` (the default): the game's own step. `30` / `60`: the host decides each frame's step in whole vsyncs and keeps the frame on screen that long (`hle_nvn.c` `fstep_tick`, `nvn_fstep.h`): 1 at a 60 cap, 2 when 60 does not hold or at a 30 cap (and while a prerendered movie plays), plus one vsync while the game is behind real time after a late frame. Presents follow that hold instead of the interval the game sets. `DM_FPS_TARGET` overrides it, also from `Documents/env.txt`; the log line `frame step: game time … of real time` checks the game's speed. A derived profile (`derive_profile`) whose `main` has no `FRAME_STEP` stubs, while the profile has them for other builds, gets `fps_target 0`: without the stubs the host would present every vsync and the game would run at double speed |- | `fps_hold` | `on` (the default): with `fps_target`, three late frames in a row raise the hold above the cap's vsyncs (30 or 20 fps), and steady frames that fit try the lower hold again. `off`: frames are never held longer than the cap's vsyncs; each is shown as soon as it is ready. For a game whose updates do not wait for the presents and step by the cap whatever the hold (Age of Calamity): there the hold only paces the screen. `DM_FPS_HOLD=on` / `off` overrides it, also from `Documents/env.txt` Paper Mario: The Thousand-Year Door sets it off too: its frame waits for three render worker threads, and holding frames left them idle, so a frame cost more the longer the hold (the hold stuck at 3 vsyncs, 20 fps, on a loaded Mac; 32–58 fps without holds) |- | `ue_fps_cvar` | Unreal Engine games: the console variable the host writes `fps_target` into (`hle_fpslock.c`). `t.MaxFPS` (the default) is the engine's frame limit; a game whose settings apply a variable of its own to `t.MaxFPS` names that one, or the next settings change sets the game's 30 again (SHIN MEGAMI TENSEI V: Vengeance: `Project.FrameRateLimit`). The rewriter finds it by its registered name, so a name set here must be in `dm/tools/ue_cvar.py`'s `NAMES` (a red line otherwise): [Unreal's frame limit and present interval, found by name](../../docs/reference/frame-rate.md#unreals-frame-limit-and-present-interval-found-by-name) |- | `ue_texture_pool` | Unreal Engine games: megabytes of the texture streaming pool (`r.Streaming.PoolSize`) the host raises the game's own to, on the Mac (`hle_uecvar.c`; the rewriter finds the variable by its name, `dm/tools/ue_cvar.py`): past its pool the streamer drops the top mips of what is in view, and the Switch's pool is small (DRAGON QUEST VII Reimagined: 200 MB, 1000 on Windows). `0` (the default): the game's own pool. A larger value the game sets, or −1, stays. `DM_UE_TEXTURE_POOL` overrides it; on iOS only that switch turns it on (`Documents/env.txt`). An improvement over the Switch, not a fix: [Unreal's texture streaming pool](../../docs/reference/rendering.md#unreals-texture-streaming-pool) |-diff --git a/dm/tools/tests/test_nsp_incremental.py b/dm/tools/tests/test_nsp_incremental.py-index 6613e8a..08da8ab 100644---- a/dm/tools/tests/test_nsp_incremental.py-+++ b/dm/tools/tests/test_nsp_incremental.py-@@ -122,6 +122,20 @@ class DeriveProfile(Base):- nsp.derive_profile(g, self.pdir, 'v65536', self.ex, ['main'], shader_only=True)- self.assertEqual(derived.table('shader_map.tsv').read_text(), 'generated DLC shader rows\n')--+ def test_derived_main_without_frame_step_stubs_keeps_the_games_step(self):-+ source = self.src / 'game.tsv'; source.write_text(source.read_text() + 'fps_target\t60\n')-+ (self.src / 'patches.py').write_text(f'def frame_step(ctx): pass\nFRAME_STEP = {{"{BID}": frame_step}}\n') # stubs for the registered main only, never run-+ self.derive()-+ self.assertEqual(game.Game(self.pdir).get('fps_target'), '0')-+ self.assertIn('frame step stubs for other builds only', (self.pdir / 'game.tsv').read_text())-+ (self.src / 'patches.py').write_text(f'FRAME_STEP = {{"{BID}": 1, "{BID2}": 2}}\n') # the derived main has stubs too-+ self.derive(); self.assertEqual(game.Game(self.pdir).get('fps_target'), '60')-+ (self.src / 'patches.py').write_text('CUTS = {}\n'); self.derive() # no frame step in the profile-+ self.assertEqual(game.Game(self.pdir).get('fps_target'), '60')-+ (self.src / 'patches.py').write_text(f'FRAME_STEP = {{"{BID}": 1}}\n'); self.derive()-+ nsp.derive_profile(game.Game(self.src), self.pdir, 'v65536', self.ex, ['main'], shader_only=True) # shader tables only: the settings stay-+ self.assertEqual(game.Game(self.pdir).get('fps_target'), '60')-+- def test_missing_corrupt_and_duplicate_override_rows_derive_again(self):- for change in ('missing', 'corrupt', 'override', 'indented override', 'truncated'):- with self.subTest(change):-diff --git a/scripts/build_ipa_from_nsp.py b/scripts/build_ipa_from_nsp.py-index a60d511..42c631b 100755---- a/scripts/build_ipa_from_nsp.py-+++ b/scripts/build_ipa_from_nsp.py-@@ -827,6 +827,15 @@ def derived_key(profile_dir):- return profile_dir.with_name(profile_dir.name + '.derived.key')---+def frame_step_builds(path): # the build IDs of the FRAME_STEP table of a patches.py, read without running the file (empty: no table)-+ try:-+ for n in ast.parse(path.read_text(encoding='utf-8')).body:-+ if isinstance(n, ast.Assign) and any(isinstance(t, ast.Name) and t.id == 'FRAME_STEP' for t in n.targets) and isinstance(n.value, ast.Dict):-+ return {k.value for k in n.value.keys if isinstance(k, ast.Constant)}-+ except (OSError, UnicodeError, SyntaxError): pass-+ return set()-+-+- def derive_profile(g, pdir, ver, d, mods, app=None, shader_only=False):- """The game's profile for a version it was not brought up on (the folder has no update, another update, files of other builds, or a registered build under another title ID: app),- in pdir (outside the repository, where a provisional profile goes): its keys as they are, with this version's build row, package and shader versions, and app's title ID and-@@ -834,7 +843,8 @@ def derive_profile(g, pdir, ver, d, mods, app=None, shader_only=False):- left out: the build makes them again from this version's own files, as for a provisional profile. The hand-written tables (the prewarm list, shader_facts_manual.tsv) are copied:- they name shaders by content key. A folder derived from the same inputs (the files copied and the game.tsv written, kept in <pdir>.derived.key) is kept as it is, with what later- stages wrote into it (mem_used, the heap check, the split's tables), so their own reuse holds. shader_only preserves all registered game.tsv rows and links its existing cuts:-- only the shader tables change with installed DLC or newly decoded compute kernels. Returns the version's display version"""-+ only the shader tables change with installed DLC or newly decoded compute kernels. A profile with frame step stubs (FRAME_STEP) for other builds only gets fps_target 0 for this version:-+ its main has no state page, so a cap of 30 or 60 would present every vsync while the game steps 1/30 s per frame (double speed). Returns the version's display version"""- src = sorted(p for p in g.dir.iterdir() if p.is_file() and (p.name not in DERIVED_SKIP or shader_only and p.name == 'patches.py'))- T, disp = '\t', nacp.version(d / 'control.nacp') or '?'- row = T.join(['build', ver, disp] + [f'{m}={build_id(d / "ExeFS" / m)}' for m in mods if (d / 'ExeFS' / m).exists()])-@@ -845,7 +855,11 @@ def derive_profile(g, pdir, ver, d, mods, app=None, shader_only=False):- if app is not None and app != g.title_id: # the host reports the program ID and answers save data queries for it (hle_svc.c, hle_fs.c)- ids = {'title_id': f'title_id{T}{app:016X}', 'program_id': f'program_id{T}{(pg.npdm(d / "ExeFS/main.npdm")[1] or app):016X}'}- out.insert(1, f'# under title ID {app:016X}, not the profile\'s {g.title_id:016X}')-+ stubs = frame_step_builds(g.dir / 'patches.py')-+ own_step = shader_only or not stubs or not (d / 'ExeFS/main').exists() or build_id(d / 'ExeFS/main') in stubs- for line in (g.dir / 'game.tsv').read_text(encoding='utf-8').splitlines():-+ if not own_step and line.split(T, 1)[0] == 'fps_target' and line.partition(T)[2].strip() != '0':-+ out += ['# the profile has frame step stubs for other builds only: this version\'s main has none, so it keeps the game\'s own step', f'fps_target{T}0']; continue- if line.split(T, 1)[0] in ids: out.append(ids[line.split(T, 1)[0]]); continue- if not shader_only and line.split(T, 1)[0] in ('build', 'package', 'shader_versions'):- if not put: out += [row, f'package{T}{ver}', f'shader_versions{T}{ver}']; put = Truediff --git a/patches/0041-shared-fonts-a-compact-stand-in-for-a-font-engin.patch b/patches/0041-shared-fonts-a-compact-stand-in-for-a-font-engin.patchindex 105e2a6f..ad7c661b 100644--- a/patches/0041-shared-fonts-a-compact-stand-in-for-a-font-engin.patch+++ b/patches/0041-shared-fonts-a-compact-stand-in-for-a-font-engin.patch@@ -37,7 +37,7 @@ Issue: LNPANDY/NX2Apple#313create mode 100644 dm/tools/compact_font.pydiff --git a/dm/host/hle_sdk16.c b/dm/host/hle_sdk16.c-index 4119648..20d28b3 100644+index 1e0fd2b..d4aa0fc 100644--- a/dm/host/hle_sdk16.c+++ b/dm/host/hle_sdk16.c@@ -103,15 +103,74 @@ static const void *font_payload(const void *p) {@@ -203,10 +203,10 @@ index 8b1e0f6..acbef28 100644return fails != 0;}diff --git a/dm/ios/tools/build_ipa.sh b/dm/ios/tools/build_ipa.sh-index 92fd85d..a95b210 100755+index 783b16c..e91a7ae 100755--- a/dm/ios/tools/build_ipa.sh+++ b/dm/ios/tools/build_ipa.sh-@@ -109,6 +109,9 @@ if [ "$GFXAPI" = vulkan ]; then MSLDIR=vk; elif [ "$GFXAPI" = gl ]; then MSLDIR=+@@ -113,6 +113,9 @@ if [ "$GFXAPI" = vulkan ]; then MSLDIR=vk; elif [ "$GFXAPI" = gl ]; then MSLDIR=# Shared-font stand-ins: standard = macOS's Arial Unicode (absent on iOS), Nintendo extension = button icons generated by make_ext_font.py (needs fontTools; FONT_PY names a python that has it)mkdir -p Gen/dm/font && cp "${STD_FONT:-/System/Library/Fonts/Supplemental/Arial Unicode.ttf}" Gen/dm/font/standard.ttf || die "copy standard font (STD_FONT=a TTF)""${FONT_PY:-python3}" "$DM/tools/make_ext_font.py" Gen/dm/font/nintendo_ext.ttf > /dev/null || die "make_ext_font.py (pip install fonttools, or FONT_PY=python with fontTools)"@@ -271,10 +271,10 @@ index 0000000..c255d91+if __name__ == '__main__':+ sys.exit(main())diff --git a/docs/reference/services.md b/docs/reference/services.md-index 0608442..c2d6367 100644+index 2ff40ab..5837cba 100644--- a/docs/reference/services.md+++ b/docs/reference/services.md-@@ -627,6 +627,14 @@ Most service calls can be found before they crash, before the first boot or the+@@ -680,6 +680,14 @@ Most service calls can be found before they crash, before the first boot or the- **Fix:** the iOS app ships `dm/font/standard.ttf` and `dm/font/nintendo_ext.ttf` (copied / generated by `build_ipa.sh`) and sets `DM_FONT_DIR`.- **Found on:** every game on iOS (general).@@ -290,10 +290,10 @@ index 0608442..c2d6367 100644### Time zone rules, calendar conversion and the network clockdiff --git a/scripts/build_ipa_from_nsp.py b/scripts/build_ipa_from_nsp.py-index 42c631b..ffcee75 100755+index 492f238..2085bfd 100755--- a/scripts/build_ipa_from_nsp.py+++ b/scripts/build_ipa_from_nsp.py-@@ -2084,6 +2084,16 @@ def mac_host(py, repo, work, env, logs, g):+@@ -2164,6 +2164,16 @@ def mac_host(py, repo, work, env, logs, g):rmtree(kf); font.mkdir(parents=True, exist_ok=True)run([py, repo / 'dm/tools/make_ext_font.py', ttf], logs / 'make_ext_font.log', env=env)kf.write_text(f'{key}\n')diff --git a/patches/0042-ios-launcher-present-the-document-picker-once-pe.patch b/patches/0042-ios-launcher-present-the-document-picker-once-pe.patchindex f66c45f8..8d2302c4 100644--- a/patches/0042-ios-launcher-present-the-document-picker-once-pe.patch+++ b/patches/0042-ios-launcher-present-the-document-picker-once-pe.patch@@ -13,15 +13,15 @@ The sheet now sits on the button that sets the flag, so one tap presents onepicker. In the iOS 27 simulator Open then dismisses the picker and stores thebookmark ("launcher: cloud-save folder set to ...").-Upstream-Status: forwarded seedds/nxnative#800-Reason: One tap on Choose a folder in iCloud Drive presented a document picker per Section row. The pickers invalidated each other and Open did nothing. The Game data hunk is fork-only, because that section comes from patch 0003+Upstream-Status: fork-only (the Cloud saves hunk landed upstream in seedds/nxnative#800)+Reason: One tap on Choose a folder in iCloud Drive presented a document picker per Section row. The pickers invalidated each other and Open did nothing. Upstream has the Cloud saves hunk (seedds/nxnative#800). What is left is the Game data hunk, which is fork-only because that section comes from patch 0003Issue: LNPANDY/NX2Apple#315---- dm/ios/Sources/Launcher.swift | 46 ++++++++++++++++++------------------ 1 file changed, 24 insertions(+), 22 deletions(-)+ dm/ios/Sources/Launcher.swift | 23 ++++++++++++-----------+ 1 file changed, 12 insertions(+), 11 deletions(-)diff --git a/dm/ios/Sources/Launcher.swift b/dm/ios/Sources/Launcher.swift-index 44af3cc..f20e403 100644+index ebaa055..f20e403 100644--- a/dm/ios/Sources/Launcher.swift+++ b/dm/ios/Sources/Launcher.swift@@ -30,6 +30,18 @@ private struct GameDataSection: View {@@ -61,40 +61,3 @@ index 44af3cc..f20e403 100644.onAppear(perform: refresh)}-@@ -85,6 +86,18 @@ private struct CloudSavesSection: View {- .foregroundStyle(.secondary).lineLimit(1).truncationMode(.middle)- }- Button(folder.isEmpty ? "Choose a folder in iCloud Drive…" : "Choose a different folder…") { picking = true }-+ // The sheet sits on the button, not on the Section: SwiftUI hands a Section's modifiers to every row, so one tap presented a picker per row and they invalidated each other (LNPANDY/NX2Apple#315).-+ .sheet(isPresented: $picking) {-+ DocumentPicker(types: [.folder]) { url in-+ picking = false-+ if dm_store_cloud_saves(url) {-+ note = "Saved. The game uses this folder when you press Play."-+ refresh()-+ } else {-+ note = "That folder could not be remembered — try a different one."-+ }-+ } onCancel: { picking = false }-+ }- if !folder.isEmpty {- Button("Turn off cloud saves", role: .destructive) {- dm_clear_cloud_saves(); refresh(); note = ""-@@ -95,17 +108,6 @@ private struct CloudSavesSection: View {- ? "Choose a folder in iCloud Drive, and the same one in the Mac app's Cloud saves. The save comes in when the game starts and goes out after each save; a save that is replaced is kept in save-backups."- : note)- }-- .sheet(isPresented: $picking) {-- DocumentPicker(types: [.folder]) { url in-- picking = false-- if dm_store_cloud_saves(url) {-- note = "Saved. The game uses this folder when you press Play."-- refresh()-- } else {-- note = "That folder could not be remembered — try a different one."-- }-- } onCancel: { picking = false }-- }- .onAppear(perform: refresh)- }-diff --git a/patches/0045-route-c-loader-image-header.patch b/patches/0045-route-c-loader-image-header.patchindex aeae81f5..06eae0eb 100644--- a/patches/0045-route-c-loader-image-header.patch+++ b/patches/0045-route-c-loader-image-header.patch@@ -25,7 +25,7 @@ Issue: LNPANDY/NX2Apple#144create mode 100644 dm/host/loader_image.hdiff --git a/dm/host/loader.c b/dm/host/loader.c-index fb14972..ae0a76f 100644+index f381ac2..94e62a2 100644--- a/dm/host/loader.c+++ b/dm/host/loader.c@@ -10,9 +10,15 @@@@ -44,7 +44,7 @@ index fb14972..ae0a76f 100644// Stable module addresses live in g_mod; lookup order follows activation, including unload/reload.static module_t **g_loaded; static int g_nloaded, g_mod_capacity;static pthread_rwlock_t g_modules_mu = PTHREAD_RWLOCK_INITIALIZER;-@@ -522,7 +528,9 @@ static void remap_at(module_t *m, vm_address_t to, const void *from, unsigned lo+@@ -541,7 +547,9 @@ static void remap_at(module_t *m, vm_address_t to, const void *from, unsigned loif (kr != KERN_SUCCESS || a != to) die("%s vm_remap %p → %#lx (%#lx bytes) failed: %d", m->name, from, (unsigned long)to, size, kr);if ((cur & need) != need) die("%s permissions after vm_remap %#x, missing %#x", m->name, cur, need);}diff --git a/patches/0046-route-c-game-framework.patch b/patches/0046-route-c-game-framework.patchindex 13b396bc..fde22461 100644--- a/patches/0046-route-c-game-framework.patch+++ b/patches/0046-route-c-game-framework.patch@@ -121,7 +121,7 @@ index 0000000..b354e25+}+#endifdiff --git a/dm/ios/Sources/main.m b/dm/ios/Sources/main.m-index 7e4d49a..58fa969 100644+index 487a711..7a44642 100644--- a/dm/ios/Sources/main.m+++ b/dm/ios/Sources/main.m@@ -18,6 +18,14 @@@@ -139,7 +139,7 @@ index 7e4d49a..58fa969 100644extern char **environ;-@@ -221,6 +229,14 @@ static int boot_env(void) {+@@ -230,6 +238,14 @@ static int boot_env(void) {// First line of the log: the fork's patches this build carries (Info.plist DMForkPatches), so a report says whether it comes from a build beyond upstream's supportNSString *fork_patches = [NSBundle.mainBundle objectForInfoDictionaryKey:@"DMForkPatches"];fprintf(stderr, "fork patches: %s\n", [fork_patches isKindOfClass:NSString.class] && fork_patches.length ? fork_patches.UTF8String : "none");@@ -154,7 +154,7 @@ index 7e4d49a..58fa969 100644// Environment switch files (for on-device diagnostics: a sideloaded app cannot be given environment variables from outside): one KEY=VALUE per line, # starts a comment; Documents/env.txt takes precedence over dm/env.txt in the bundle (put there by build_ipa.sh's DM_ENV_FILE)NSMutableArray<NSString *> *from_file = [NSMutableArray array], *from_launch = [NSMutableArray array];for (char **e = environ; *e; e++) { // set at launch (Xcode, devicectl): before the env files, and the launcher keeps them-@@ -269,14 +285,20 @@ static int boot_env(void) {+@@ -272,14 +288,20 @@ static int boot_env(void) {BOOL per_game = [romfs hasPrefix:gdir]; // messaging nil is NO here: no data means the shared layoutif (!set_data_env(romfs, NO)) { if (!romfs) romfs_identity_report(doc); // a slim build says why its romfs.img was not usedfprintf(stderr, "boot: no game data yet (Documents/romfs.img, Documents/romfs or <App>/romfs); the launcher asks for it\n"); }diff --git a/patches/0047-route-c-framework-build.patch b/patches/0047-route-c-framework-build.patchindex 289aff79..620a7396 100644--- a/patches/0047-route-c-framework-build.patch+++ b/patches/0047-route-c-framework-build.patch@@ -31,7 +31,7 @@ Issue: LNPANDY/NX2Apple#144create mode 100644 dm/ios/tools/gen_manifest.pydiff --git a/dm/ios/tools/build_ipa.sh b/dm/ios/tools/build_ipa.sh-index a95b210..47e4eac 100755+index e91a7ae..e310b47 100755--- a/dm/ios/tools/build_ipa.sh+++ b/dm/ios/tools/build_ipa.sh@@ -7,6 +7,9 @@@@ -64,7 +64,7 @@ index a95b210..47e4eac 100755cd "$IOS" || die "cd $IOS"DM_SCHEME_NAME="$(echo "$DM_DISPLAY_NAME" | tr '/:' '__') ($GAME)" # the scheme file is named after it-@@ -124,6 +131,33 @@ if [ -f "$ICON" ]; then+@@ -128,6 +135,33 @@ if [ -f "$ICON" ]; thenecho "DM_APPICON = AppIcon" >> Gen/dm.xcconfigt "app icon: $ICON"else t "no app icon ($ICON not found): the home-screen icon stays blank"; fi@@ -98,7 +98,7 @@ index a95b210..47e4eac 100755# A prepared Xcode project is signed in Xcode, so it asks for the Increased Memory Limit capability the bigger games need (see the README); DM_ENTITLEMENTS=another plist, or empty for none.# The unsigned IPA carries the same request in its executable's ad-hoc signature below; the install tool replaces that signature.if [ "$PREPARE_XCODE" = YES ] && [ -n "${DM_ENTITLEMENTS-default}" ]; then-@@ -135,7 +169,10 @@ if [ "$PREPARE_XCODE" = YES ] && [ -n "${DM_ENTITLEMENTS-default}" ]; then+@@ -139,7 +173,10 @@ if [ "$PREPARE_XCODE" = YES ] && [ -n "${DM_ENTITLEMENTS-default}" ]; thenfi# DM_COPY_ROMFS=NO also for the prepared project: its Copy game resources phase (stage_resources.sh) then leaves the game files out and writes the image's identity; Gen/dm.xcconfig is made again by every run[ "${DM_COPY_ROMFS:-YES}" != NO ] || [ "$PREPARE_XCODE" != YES ] || echo "DM_COPY_ROMFS = NO" >> Gen/dm.xcconfig@@ -110,7 +110,7 @@ index a95b210..47e4eac 100755# DMCommit / DMChain: the checkout that built the app (+dirty with uncommitted changes to tracked files) and the shader chain it carries, which the host logs at start (main.c)COMMIT=$(git -C "$DM" rev-parse --short=12 HEAD 2> /dev/null) && { [ -z "$(git -C "$DM" status --porcelain --untracked-files=no 2> /dev/null)" ] || COMMIT=$COMMIT+dirty/usr/libexec/PlistBuddy -c "Add :DMCommit string $COMMIT" Gen/Info.plist > /dev/null || die "DMCommit"; t "source: $COMMIT"; }-@@ -166,6 +203,18 @@ APP=$DD/Build/Products/Release-iphoneos/DmIOS.app+@@ -170,6 +207,18 @@ APP=$DD/Build/Products/Release-iphoneos/DmIOS.app# the app sets DM_AOC_DIR at launch, the host reports them as owned and mounts them from it) and the RomFSrm -rf "$APP/msl" "$O/Payload" # Payload/: what the copy-and-zip packing left behind, as was out.ipa (and its index) unless it is the IPA packed here, which a repeat pack reuses[ "$O/out.ipa" -ef "$OUT_IPA" ] || rm -f "$O/out.ipa"; [ "$O/out.ipa.idx" -ef "$OUT_IPA.idx" ] || rm -f "$O/out.ipa.idx"@@ -282,10 +282,10 @@ index 0000000..ec2c33b+if __name__ == '__main__':+ main()diff --git a/scripts/build_ipa_from_nsp.py b/scripts/build_ipa_from_nsp.py-index ffcee75..58233ee 100755+index 2085bfd..123f357 100755--- a/scripts/build_ipa_from_nsp.py+++ b/scripts/build_ipa_from_nsp.py-@@ -2219,6 +2219,7 @@ def parse_args(argv):+@@ -2300,6 +2300,7 @@ def parse_args(argv):ap.add_argument('--romfs', choices=('bundle', 'separate'), help='bundle = the game files go into the IPA (default: the ROMFS setting, bundle); separate = they stay out of the IPA and the Xcode app: the build is small and fast, and the RomFS image ''is copied to the phone once per game version with the scripts/push_romfs.sh command printed at the end (the app refuses an image of another version)')ap.add_argument('--prepare-xcode', action='store_true', help='prepare a per-game Xcode project and add it to the shared workspace instead of packing an IPA (requires keeping extracted files)')@@ -293,7 +293,7 @@ index ffcee75..58233ee 100755ap.add_argument('--platform', choices=('ios', 'mac', 'mac-app'), help='ios = the IPA (or the Xcode project); mac = for development: build only what running the game on this Mac needs (the Mac shaders and the Mac host, ''no iOS shaders, Xcode project or IPA), keep the extracted files and print the command that runs the game; mac-app = what mac builds, then a self-contained, double-clickable ''Mac app of the game (default: <game name>.app in the NSP folder, -o names another) (default: the PLATFORM setting, ios)')-@@ -2319,6 +2320,7 @@ def main(args=None):+@@ -2400,6 +2401,7 @@ def main(args=None):mac_pack = platform == 'mac-app'if args.mac_sign and not mac_pack: raise BuildError('--mac-sign signs the Mac app: it needs --platform mac-app')if mac and prepare_xcode: raise BuildError(f'--prepare-xcode makes an iPhone project: it cannot be combined with --platform {platform}')@@ -301,7 +301,7 @@ index ffcee75..58233ee 100755if mac and not apple_silicon(): raise BuildError(f'--platform {platform} runs the game in the Mac host, which runs the game\'s own arm64 code natively: it needs a Mac with Apple silicon, and this Mac has an Intel processor')check_native_python()keep = KEEP_EXTRACTED if args.keep_extracted is None else args.keep_extracted-@@ -2584,6 +2586,7 @@ def main(args=None):+@@ -2675,6 +2677,7 @@ def main(args=None):say('preparing the Xcode project' if prepare_xcode else f'building the IPA → {out_ipa}')ipa_env = dict(env, GAME=g.id, W=str(work / 'ipa'), PATCHED=str(patched), ROMFS=str(rfs.source(game)), MSL_IOS=str(ios), GFXAPI=gfx, FONT_PY=py, DM_DISPLAY_NAME=app_name, DM_BUNDLE_ID=bundle_id, AOC=str(aoc or ''), DM_XCODE_DERIVED_DATA=str(work / 'xcode-derived-data'), DM_TEAM_ID=team_id, DM_LANG=lang)if prepare_xcode: ipa_env['DM_XCODE_PROJECT_DIR'] = str(project.parent)diff --git a/patches/0049-dm-framework-env-switch-row.patch b/patches/0049-dm-framework-env-switch-row.patchindex bc2043c3..1217d06e 100644--- a/patches/0049-dm-framework-env-switch-row.patch+++ b/patches/0049-dm-framework-env-switch-row.patch@@ -16,7 +16,7 @@ Issue: LNPANDY/NX2Apple#1441 file changed, 8 insertions(+)diff --git a/docs/env_switches.tsv b/docs/env_switches.tsv-index 5ce83dd..7f026a7 100644+index b14a397..234f438 100644--- a/docs/env_switches.tsv+++ b/docs/env_switches.tsv@@ -35,9 +35,12 @@ DM_FD_LOG diagnostic `=<seconds>` logs, every that many seconds, the number and@@ -32,15 +32,15 @@ index 5ce83dd..7f026a7 100644DM_FS diagnostic When set, logs file opens, paths not found or not mounted, and a read summary every 64 MiB or 1000 readsDM_FSLOG diagnostic `=<file>` writes one TSV line per ReadFile: seconds since boot, guest path, offset, length and guest buffer addressDM_FSLOG_HASH diagnostic With `DM_FSLOG`, adds a column with the FNV-1a 64 hash of the bytes read-@@ -61,6 +64,7 @@ DM_GPU_CAPTURE_KEEP diagnostic Before each GPU capture, prunes the capture folde- DM_GUEST_SPAWN_TEST diagnostic `=1` runs a self-test before `nnMain`: a host-started guest thread does SDK malloc / free and locks an `nn::os` mutex, and the result is logged; `=2` also keeps a resident thread+@@ -64,6 +67,7 @@ DM_HID_MAP switch `=<map>` such as `A=1,B=2,X=4,Y=5`: which HID button usage pre+ DM_HID_PADS switch `0` stops reading raw HID gamepads that GameController does not list, such as an 8BitDo in its own mode (`pad_hid_mac.h`); Mac onlyDM_HITCH_DUMP diagnostic `=<ms>[:<s>]`: when no frame has been presented for that long (from s seconds on), logs every guest thread once per stall: wait, last SVC, pc, lr, frames and registersDM_HLECOUNT diagnostic `=<file>` (`%d` = process ID) writes at exit a TSV of how many times the guest called each HLE function, zero counts included+DM_HUD_PER_LAYER switch `1`: the shell app sets it at start together with `MTL_HUD_ENABLED`, and the game view then turns Apple's Metal HUD off on its layer unless `DM_METAL_HUD` is `1`DM_ICON path `=<image>` gives `build_ipa.sh` another app icon (default the `icon.jpg` beside the RomFS)DM_IMPORTS diagnostic When set, logs each import the loader binds to a host function and each forced takeoverDM_KBD switch `=<text>`: the system keyboard returns that text as OK without showing an input box; unset with no window, it returns cancel-@@ -275,6 +279,10 @@ DM_SF_TRACE diagnostic `=1` logs every request on the game's own HIPC client ses+@@ -280,6 +284,10 @@ DM_SF_TRACE diagnostic `=1` logs every request on the game's own HIPC client sesDM_SHAKE_G switch `=<G>`: on iOS, the acceleration beyond gravity above which a flick of the phone shakes the controller's six-axis sensor (default 1.5)DM_SHARED_FONT path Font file served for every shared-font type except the Nintendo extension (default `$DM_FONT_DIR/standard.ttf`, then macOS's Arial Unicode)DM_SHARED_FONT_EXT path Font file served for shared-font type 5, the Nintendo extension with the button icons (default `$DM_FONT_DIR/nintendo_ext.ttf`, made by `make_ext_font.py`)diff --git a/patches/0050-route-c-shell.patch b/patches/0050-route-c-shell.patchindex 7c4620cd..b670dcd2 100644--- a/patches/0050-route-c-shell.patch+++ b/patches/0050-route-c-shell.patch@@ -139,7 +139,7 @@ index 0000000..40f6f04+void dm_shell_present_game(void);diff --git a/dm/ios/Shell/ShellMain.m b/dm/ios/Shell/ShellMain.mnew file mode 100644-index 0000000..2f86093+index 0000000..08d6cf5--- /dev/null+++ b/dm/ios/Shell/ShellMain.m@@ -0,0 +1,173 @@@@ -151,7 +151,7 @@ index 0000000..2f86093+// dm_main on the big-stack thread through front_ios_boot() below.+// One game per process: dm_profile() and dm_host_preload_start() run once, so returning to the library is a relaunch of the app.+// This file provides the symbols front_ios.m takes from main.m and Launcher.swift in the one-game app (front_ios_boot,-+// front_ios_boot_ok, front_ios_boot_message, front_ios_device_message, dm_locate_game_data, dm_show_launcher): the shell compiles front_ios.m unchanged.++// front_ios_boot_ok, front_ios_boot_message, front_ios_device_check, dm_locate_game_data, dm_show_launcher): the shell compiles front_ios.m unchanged.+#import <UIKit/UIKit.h>+#include <dlfcn.h>+#include <pthread.h>@@ -252,7 +252,7 @@ index 0000000..2f86093+}+int front_ios_boot_ok(void) { return g_boot_ok; }+const char *front_ios_boot_message(void) { return NULL; }-+const char *front_ios_device_message(void) { return NULL; } // main.m says why the GPU cannot run the games (no BC textures, seedds#704), the shell does its own device handling: NULL = supported++const char *front_ios_device_check(void) { return NULL; } // main.m checks the GPU for the games (no BC textures, seedds#704) when Play is pressed, the shell does its own device handling: NULL = supported+// The shell found the data before Play (DataLocator, EngineLaunchPlan): DM_ROMFS is set and the game view only checks it is still there+int dm_locate_game_data(void) {+ const char *r = getenv("DM_ROMFS"); struct stat st;@@ -317,10 +317,10 @@ index 0000000..2f86093+ @autoreleasepool { return UIApplicationMain(argc, argv, nil, NSStringFromClass(App.class)); }+}diff --git a/dm/ios/Sources/front_ios.m b/dm/ios/Sources/front_ios.m-index d45f2e3..04a0f51 100644+index c560abb..57b08e9 100644--- a/dm/ios/Sources/front_ios.m+++ b/dm/ios/Sources/front_ios.m-@@ -109,6 +109,7 @@ - (void)startGame {+@@ -113,6 +113,7 @@ - (void)startGame {[self.view addSubview:self.game];g_layer = (CAMetalLayer *)self.game.layer;if (getenv("DM_METAL_HUD") && atoi(getenv("DM_METAL_HUD"))) { g_layer.developerHUDProperties = @{@"mode": @"default"}; LOG("front end: Metal performance HUD on (DM_METAL_HUD)"); } // Apple's HUD over the game: frame rate, frame and GPU time, memory@@ -627,7 +627,7 @@ index 0000000..042513f+if __name__ == '__main__':+ unittest.main()diff --git a/dm/ios/tools/build_ipa.sh b/dm/ios/tools/build_ipa.sh-index 47e4eac..b089a94 100755+index e310b47..dae55ee 100755--- a/dm/ios/tools/build_ipa.sh+++ b/dm/ios/tools/build_ipa.sh@@ -10,6 +10,9 @@@@ -653,7 +653,7 @@ index 47e4eac..b089a94 100755OUT_IPA=${1:-$(dirname "$W")/$(gp ipa)}; O=$W/build/ios/pkg; DD=$O/ddXCODE_DD=${DM_XCODE_DERIVED_DATA:-$W/build/ios/xcode-dd}MODS=$(gp modules); MARKER=$(gp romfs_marker)-@@ -142,7 +151,9 @@ else t "no app icon ($ICON not found): the home-screen icon stays blank"; fi+@@ -146,7 +155,9 @@ else t "no app icon ($ICON not found): the home-screen icon stays blank"; fiif [ "$FRAMEWORK" = 1 ]; thenrm -rf Gen/framework && mkdir -p Gen/framework/dm || die "mkdir Gen/framework"cp -R Gen/dm/. Gen/framework/dm/ || die "copy the framework tables"@@ -664,7 +664,7 @@ index 47e4eac..b089a94 100755python3 "$DM/games/game.py" profile "$GAME" Gen/framework/profile.tsv > /dev/null || die "game profile"# The manifest names the game data this framework was built for: the RomFS image's identity (dm/host/romfs_identity.h), as the# pack step's romfs.id does. That step's default is repeated here because the manifest is a build resource and has to exist now.-@@ -154,7 +165,7 @@ if [ "$FRAMEWORK" = 1 ]; then+@@ -158,7 +169,7 @@ if [ "$FRAMEWORK" = 1 ]; thenNRO_TABLE=$PATCHED/nro.tsv; [ -f "$NRO_TABLE" ] || NRO_TABLE= # the NRO modules gen_embed.py packs: nro_count in the manifestpython3 tools/gen_manifest.py Gen/framework/game.manifest.json --game "$GAME" --name "$DM_DISPLAY_NAME" \--display-version "$DM_APP_VERSION" --package-version "${PKG:-}" --modules "$MODS" ${NRO_TABLE:+--nro-table "$NRO_TABLE"} \@@ -673,7 +673,7 @@ index 47e4eac..b089a94 100755printf 'OTHER_LDFLAGS = $(inherited) %s\n' "$F" > Gen/framework.xcconfig || die "framework link flags"t "framework: Gen/framework (modules $MODS, profile.tsv, game.manifest.json)"fi-@@ -188,6 +199,30 @@ if [ "$PREPARE_XCODE" = YES ]; then+@@ -192,6 +203,30 @@ if [ "$PREPARE_XCODE" = YES ]; thenexit 0fidiff --git a/patches/0051-nsp-shell-framework.patch b/patches/0051-nsp-shell-framework.patchindex e1fb8f92..1523459a 100644--- a/patches/0051-nsp-shell-framework.patch+++ b/patches/0051-nsp-shell-framework.patch@@ -15,10 +15,10 @@ Issue: LNPANDY/NX2Apple#1441 file changed, 21 insertions(+), 2 deletions(-)diff --git a/scripts/build_ipa_from_nsp.py b/scripts/build_ipa_from_nsp.py-index 58233ee..a287425 100755+index 123f357..e740af7 100755--- a/scripts/build_ipa_from_nsp.py+++ b/scripts/build_ipa_from_nsp.py-@@ -2220,6 +2220,9 @@ def parse_args(argv):+@@ -2301,6 +2301,9 @@ def parse_args(argv):'is copied to the phone once per game version with the scripts/push_romfs.sh command printed at the end (the app refuses an image of another version)')ap.add_argument('--prepare-xcode', action='store_true', help='prepare a per-game Xcode project and add it to the shared workspace instead of packing an IPA (requires keeping extracted files)')ap.add_argument('--framework', action='store_true', help='the game\'s modules go into DmIOS.app/Frameworks/DmGame.framework, which the app dlopens at launch (route C, docs/launcher-c-plan.md M1), instead of the executable; the IPA is otherwise the usual one')@@ -28,7 +28,7 @@ index 58233ee..a287425 100755ap.add_argument('--platform', choices=('ios', 'mac', 'mac-app'), help='ios = the IPA (or the Xcode project); mac = for development: build only what running the game on this Mac needs (the Mac shaders and the Mac host, ''no iOS shaders, Xcode project or IPA), keep the extracted files and print the command that runs the game; mac-app = what mac builds, then a self-contained, double-clickable ''Mac app of the game (default: <game name>.app in the NSP folder, -o names another) (default: the PLATFORM setting, ios)')-@@ -2321,6 +2324,10 @@ def main(args=None):+@@ -2402,6 +2405,10 @@ def main(args=None):if args.mac_sign and not mac_pack: raise BuildError('--mac-sign signs the Mac app: it needs --platform mac-app')if mac and prepare_xcode: raise BuildError(f'--prepare-xcode makes an iPhone project: it cannot be combined with --platform {platform}')if mac and args.framework: raise BuildError(f'--framework builds the iPhone app\'s game framework: it cannot be combined with --platform {platform}')@@ -39,7 +39,7 @@ index 58233ee..a287425 100755if mac and not apple_silicon(): raise BuildError(f'--platform {platform} runs the game in the Mac host, which runs the game\'s own arm64 code natively: it needs a Mac with Apple silicon, and this Mac has an Intel processor')check_native_python()keep = KEEP_EXTRACTED if args.keep_extracted is None else args.keep_extracted-@@ -2582,8 +2589,8 @@ def main(args=None):+@@ -2673,8 +2680,8 @@ def main(args=None):report_profile_status(g, reg, pkg_ver, derived, provisional, 'Mac build', patched)return@@ -50,7 +50,7 @@ index 58233ee..a287425 100755ipa_env = dict(env, GAME=g.id, W=str(work / 'ipa'), PATCHED=str(patched), ROMFS=str(rfs.source(game)), MSL_IOS=str(ios), GFXAPI=gfx, FONT_PY=py, DM_DISPLAY_NAME=app_name, DM_BUNDLE_ID=bundle_id, AOC=str(aoc or ''), DM_XCODE_DERIVED_DATA=str(work / 'xcode-derived-data'), DM_TEAM_ID=team_id, DM_LANG=lang)if prepare_xcode: ipa_env['DM_XCODE_PROJECT_DIR'] = str(project.parent)if args.framework: ipa_env['DM_FRAMEWORK'] = '1'; say('route C: the game\'s modules go into DmIOS.app/Frameworks/DmGame.framework (DM_FRAMEWORK=1)')-@@ -2601,6 +2608,18 @@ def main(args=None):+@@ -2692,6 +2699,18 @@ def main(args=None):ipa_env['DM_PSO_GPUS'] = gpusif gfx == 'nvn': say(f'pipeline archive: {"none, the device builds the bases on its first start if it takes the Metal 4 path (--gpu g18p builds one)" if gpus == "none" else gpus + " (made on this Mac with metal-tt; --gpu none leaves it out)"}')if show_fps: say('frame-rate counter: on (DM_SHOW_FPS=0 in the app\'s Documents/env.txt turns it off)')diff --git a/patches/0052-front-progress-hook.patch b/patches/0052-front-progress-hook.patchindex 735e3cf1..301e1bc0 100644--- a/patches/0052-front-progress-hook.patch+++ b/patches/0052-front-progress-hook.patch@@ -18,10 +18,10 @@ Issue: LNPANDY/NX2Apple#1443 files changed, 10 insertions(+)diff --git a/dm/host/front.h b/dm/host/front.h-index 9cbc4a4..9a51d7e 100644+index cd517ba..7bd234b 100644--- a/dm/host/front.h+++ b/dm/host/front.h-@@ -22,6 +22,10 @@ void front_screen_match(int fps);+@@ -24,6 +24,10 @@ void front_screen_match(int fps);// title and done of total shown over the game's view (a dark screen, the title, a bar and a count), updated on each call; title NULL hides it. Any thread; the front end switches to its main// thread and does not block. Nothing is shown without a windowvoid front_progress(const char *title, long done, long total);@@ -33,10 +33,10 @@ index 9cbc4a4..9a51d7e 100644// Text input box (for the software keyboard swkbd): the main thread shows a native input box and the calling thread blocks until the user confirms / cancels.// All text is UTF-8; max_chars is the maximum character count (0 = unlimited, only a hint for the front end; truncation is done uniformly by the caller hle_swkbd.c in UTF-16 units).diff --git a/dm/host/front_mac.m b/dm/host/front_mac.m-index 99d217d..4964915 100644+index e3b5211..369936d 100644--- a/dm/host/front_mac.m+++ b/dm/host/front_mac.m-@@ -1249,9 +1249,12 @@ void front_run(void (*guest)(void)) {+@@ -1329,9 +1329,12 @@ void front_run(void (*guest)(void)) {NSTextField *t = [NSTextField labelWithString:@""]; t.frame = r; t.alignment = NSTextAlignmentCenter; t.textColor = c;t.font = [NSFont monospacedDigitSystemFontOfSize:size weight:w]; return t;}@@ -50,10 +50,10 @@ index 99d217d..4964915 100644if (!tt) { [g_prog removeFromSuperview]; g_prog = nil; return; }if (!g_prog) {diff --git a/dm/ios/Sources/front_ios.m b/dm/ios/Sources/front_ios.m-index 0469c90..d45f2e3 100644+index df1983d..c560abb 100644--- a/dm/ios/Sources/front_ios.m+++ b/dm/ios/Sources/front_ios.m-@@ -225,9 +225,12 @@ static void front_ios_power_watch(void) {+@@ -229,9 +229,12 @@ static void front_ios_power_watch(void) {// Progress screen of the prepare step (front.h front_progress): a dark view over the game's view and the pad, the title, a bar and a count, centered; UIKit views, so it draws while the game's thread waitsstatic UIView *g_prog; static UILabel *g_prog_count; static UIProgressView *g_prog_bar; static UILabel *g_prog_title;diff --git a/patches/0053-runtime-profile-every-site.patch b/patches/0053-runtime-profile-every-site.patchindex 9ed94031..10e6b761 100644--- a/patches/0053-runtime-profile-every-site.patch+++ b/patches/0053-runtime-profile-every-site.patch@@ -17,37 +17,37 @@ Upstream-Status: fork-only (completes 0001 runtime-profile, design note seedds/nReason: the route C shell runs several games on one host binary, so no host site may keep the compiled game's values. It builds on the runtime profile of 0001 and goes upstream with itIssue: LNPANDY/NX2Apple#144---- dm/games/game.py | 7 +-- dm/gfx/nvn/hle_nvn.c | 39 ++++++------ dm/gfx/nvn/nvn_capture.h | 2 +-- dm/gfx/nvn/nvn_capture.inc | 2 +-- dm/gfx/nvn/nvn_mtl.m | 25 +++----- dm/gfx/nvn/nvn_rec.h | 2 +-- dm/gfx/tests/Makefile | 8 +--- dm/gfx/tests/t_host_stubs.c | 2 +- dm/host/front_mac.m | 8 +--- dm/host/hle_cheats.c | 14 ++--- dm/host/hle_fs.c | 4 +-- dm/host/hle_oe.c | 4 +-- dm/host/hle_profile.c | 35 +++++++++-- dm/host/hle_profile.h | 13 +++-- dm/host/hle_sdk16.c | 17 ++---- dm/host/hle_svc.c | 4 +-- dm/host/hle_thread.c | 2 +-- dm/host/hle_uecvar.c | 4 +-- dm/host/main.c | 14 ++--- dm/host/tests/Makefile | 13 +++-- dm/host/tests/t_profile_runtime.c | 100 ++++++++++++++++++++++++++++- dm/tools/tests/test_game_profile.py | 54 +++++++++++++++- 22 files changed, 291 insertions(+), 82 deletions(-)+ dm/games/game.py | 7 +-+ dm/gfx/nvn/hle_nvn.c | 37 ++++----+ dm/gfx/nvn/nvn_capture.h | 2 +-+ dm/gfx/nvn/nvn_capture.inc | 2 +-+ dm/gfx/nvn/nvn_mtl.m | 25 ++---+ dm/gfx/nvn/nvn_rec.h | 2 +-+ dm/gfx/tests/Makefile | 8 +-+ dm/gfx/tests/t_host_stubs.c | 2 ++ dm/host/front_mac.m | 8 +-+ dm/host/hle_cheats.c | 14 ++-+ dm/host/hle_fs.c | 4 +-+ dm/host/hle_oe.c | 4 +-+ dm/host/hle_profile.c | 35 ++++++-+ dm/host/hle_profile.h | 13 ++-+ dm/host/hle_sdk16.c | 17 ++--+ dm/host/hle_svc.c | 4 +-+ dm/host/hle_thread.c | 2 +-+ dm/host/hle_uecvar.c | 4 +-+ dm/host/main.c | 14 +--+ dm/host/tests/Makefile | 13 ++-+ dm/host/tests/t_profile_runtime.c | 100 +++++++++++++++++++++ dm/tools/tests/test_game_profile_runtime.py | 54 ++++++++++++ 22 files changed, 290 insertions(+), 81 deletions(-)create mode 100644 dm/host/tests/t_profile_runtime.c- create mode 100644 dm/tools/tests/test_game_profile.py+ create mode 100644 dm/tools/tests/test_game_profile_runtime.pydiff --git a/dm/games/game.py b/dm/games/game.py-index a4f228a..0c58fc5 100644+index 2456df0..d5f89a3 100644--- a/dm/games/game.py+++ b/dm/games/game.py-@@ -214,7 +214,8 @@ if __name__ == '__main__':+@@ -217,7 +217,8 @@ if __name__ == '__main__':('shared_font', 'SHARED_FONT_TTF'), ('pad_layout', 'PAD_LAYOUT'), ('op_mode', 'OPMODE'), ('perf_mode', 'PERF_BOOST'),('feedback_snap', 'FEEDBACK_SNAP'), ('tex_flush_upload', 'TEX_FLUSH_UPLOAD'), ('render_cond', 'RENDER_COND'),('tex_dirty_upload', 'TEX_DIRTY_UPLOAD'), ('tex_dyn_slots', 'TEX_DYN_SLOTS'), ('gpu_timestamps', 'GPU_TS_SEGMENT'),@@ -57,7 +57,7 @@ index a4f228a..0c58fc5 100644def val(macro): # the header's C spelling → the file's plain spellingv = M.get('DM_GAME_' + macro)if v is None: return None-@@ -230,7 +231,9 @@ if __name__ == '__main__':+@@ -233,7 +234,9 @@ if __name__ == '__main__':v = val(macro)if v is not None: L.append(f'{key}\t{v}')api = [val('NVN_API_MAJOR'), val('NVN_API_MINOR')]@@ -69,25 +69,29 @@ index a4f228a..0c58fc5 100644L.append(f'display_version\t{b}\t{d}')text = '\n'.join(L) + '\n'diff --git a/dm/gfx/nvn/hle_nvn.c b/dm/gfx/nvn/hle_nvn.c-index 2dd6644..2e114ef 100644+index a8b29fc..347dc77 100644--- a/dm/gfx/nvn/hle_nvn.c+++ b/dm/gfx/nvn/hle_nvn.c-@@ -153,11 +153,9 @@ static const int g_devinfo[] = {- __attribute__((weak)) int dm_sdk_major(void) { return 0; } // loader.c; graphics unit tests have no loader+@@ -180,16 +180,14 @@ __attribute__((weak)) int dm_sdk_major(void) { return 0; } // loader.c; graphi+ __attribute__((weak)) int dm_sdk_ounce(void) { return 0; }__attribute__((weak)) int dm_glslc_gpu_code(int *major, int *minor) { *major = *minor = 0; return 0; } // hle_glslc.c: the game's own GLSLC's GPU code versionstatic void nvn_api(int api[2]) {-#ifdef DM_GAME_NVN_API_MAJOR- api[0] = DM_GAME_NVN_API_MAJOR; api[1] = DM_GAME_NVN_API_MINOR; LOG("[nvn] device API %d.%d (game profile device_api)", api[0], api[1]);-#else-- int m = dm_sdk_major(); api[0] = DM_SDK_OLD(m) ? 53 : g_devinfo[0]; api[1] = DM_SDK_OLD(m) ? 313 : g_devinfo[1]; LOG("[nvn] device API %d.%d (SDK %d)", api[0], api[1], m);--#endif+ const struct dm_profile *P = dm_profile();-+ if (P->nvn_api_major) { api[0] = P->nvn_api_major; api[1] = P->nvn_api_minor; LOG("[nvn] device API %d.%d (game profile device_api)", api[0], api[1]); }-+ else { int m = dm_sdk_major(); api[0] = DM_SDK_OLD(m) ? 53 : g_devinfo[0]; api[1] = DM_SDK_OLD(m) ? 313 : g_devinfo[1]; LOG("[nvn] device API %d.%d (SDK %d)", api[0], api[1], m); }++ if (P->nvn_api_major) { api[0] = P->nvn_api_major; api[1] = P->nvn_api_minor; LOG("[nvn] device API %d.%d (game profile device_api)", api[0], api[1]); return; }+ // The Switch 2's NVN2 is API 231: Donkey Kong Bananza (SDK 20.5.19 Ounce) requires major == 231 and minor >= 30 (main+0x5c61a4) and creates its graphics system only then.+ // 30 is that floor, not a value measured on hardware+ int m = dm_sdk_major();+ if (dm_sdk_ounce()) { api[0] = 231; api[1] = 30; }+ else { api[0] = DM_SDK_OLD(m) ? 53 : g_devinfo[0]; api[1] = DM_SDK_OLD(m) ? 313 : g_devinfo[1]; }+ LOG("[nvn] device API %d.%d (SDK %d%s)", api[0], api[1], m, dm_sdk_ounce() ? ", Switch 2" : "");+-#endif}NVN(nvnDeviceGetInteger, void, const NVNdevice *d, NVNdeviceInfo what, int *out) {(void)d;-@@ -333,16 +331,16 @@ typedef struct { const uint8_t *mem; uint64_t size; tex_t t; uint64_t stamp; con+@@ -369,16 +367,16 @@ typedef struct { const uint8_t *mem; uint64_t size; tex_t t; uint64_t stamp; constatic flush_tex *g_ft; static size_t g_nft, g_cft; static pthread_mutex_t g_ft_mu = PTHREAD_MUTEX_INITIALIZER;static void ft_add(const tex_t *t) {// Buffer textures are views onto the pool buffer the GPU reads directly (tex_mtl in nvn_mtl.m); an upload would push Age of Calamity's 1,048,576-texel R32F one through tex_desc, past Metal's 2D limit@@ -107,7 +111,7 @@ index 2dd6644..2e114ef 100644pthread_mutex_lock(&g_ft_mu);for (size_t i = 0; i < g_nft; i++) if (g_ft[i].t.serial == serial) { g_ft[i] = g_ft[--g_nft]; break; }pthread_mutex_unlock(&g_ft_mu);-@@ -351,7 +349,7 @@ static void ft_del(uint64_t serial) {+@@ -387,7 +385,7 @@ static void ft_del(uint64_t serial) {// natively; its 121-layer ASTC terrain material arrays, 42 MB each). They stayed GPU-only textures with content 0, which ASTC decodes as the error colour, and the cave came out magenta.// ft_add write-protects a registered texture's pages, and on its first resolution (tex_mtl, submit thread) a write since then makes it CPU-written like a flushed oneint nvn_ft_written(const tex_t *t) {@@ -116,7 +120,7 @@ index 2dd6644..2e114ef 100644int r = 0; pthread_mutex_lock(&g_ft_mu);for (size_t i = 0; i < g_nft; i++) if (g_ft[i].t.serial == t->serial) {if (nvn_dirty_since_span(g_ft[i].span, g_ft[i].mem, g_ft[i].size, g_ft[i].stamp)) { r = 1; g_ft[i] = g_ft[--g_nft]; }-@@ -361,7 +359,7 @@ int nvn_ft_written(const tex_t *t) {+@@ -397,7 +395,7 @@ int nvn_ft_written(const tex_t *t) {return r;}int nvn_ft_tracked(uint64_t serial) { // registered and not resolved yet: its storage holds whatever the CPU has written (nvn_tex_mirror_b2t / nvn_tex_mirror_t2t)@@ -125,7 +129,7 @@ index 2dd6644..2e114ef 100644int r = 0; pthread_mutex_lock(&g_ft_mu);for (size_t i = 0; i < g_nft; i++) if (g_ft[i].t.serial == serial) { r = 1; break; }pthread_mutex_unlock(&g_ft_mu);-@@ -376,7 +374,7 @@ int nvn_ft_tracked(uint64_t serial) { // registered and not resolved yet: its+@@ -412,7 +410,7 @@ int nvn_ft_tracked(uint64_t serial) { // registered and not resolved yet: its// Checking every texture at every submission cost TOTK 0.4 ms of submit CPU per frame on the Mac; this way a texture is picked up a few submissions later at mostenum { FT_POLL_BYTES = 128 << 20 };void nvn_ft_poll(void) {@@ -134,7 +138,7 @@ index 2dd6644..2e114ef 100644static uint64_t gen; static size_t cur, left;static tex_t *hit; static size_t chit; size_t nhit = 0;uint64_t now = nvn_dirty_now(), scanned = 0;-@@ -394,7 +392,7 @@ void nvn_ft_poll(void) {+@@ -430,7 +428,7 @@ void nvn_ft_poll(void) {for (size_t i = 0; i < nhit; i++) if (!mtl_tex_gpu_owned(hit[i].serial)) mtl_tex_cpu_written(&hit[i]); // outside g_ft_mu: the ownership check takes the replay's serial table lock}static void ft_flush(const uint8_t *a, uint64_t n) {@@ -143,28 +147,31 @@ index 2dd6644..2e114ef 100644pthread_mutex_lock(&g_ft_mu);for (size_t i = 0; i < g_nft;)if (g_ft[i].mem < a + n && a < g_ft[i].mem + g_ft[i].size) { mtl_tex_cpu_written(&g_ft[i].t); g_ft[i] = g_ft[--g_nft]; } else i++;-@@ -618,8 +616,9 @@ static int keys_hash(const NVNshaderData *sd, int mapped, uint8_t out[8]) {+@@ -664,11 +662,12 @@ static int keys_hash(const NVNshaderData *sd, int mapped, uint8_t out[8]) {uint8_t md[CC_SHA256_DIGEST_LENGTH]; CC_SHA256_CTX hc; CC_SHA256_Init(&hc);// Profile key shader_key_skip: bytes of the control section hashed as zeros (shader_split.py key_ctl). Batman: Arkham Knight's engine shares one control section among shaders whose// sections differ only in GLSLC's compile information (+0x778..+0x791, +0x7d0..+0x7e7): it hands a program the section of an earlier shader with the same rest, so the bytes there name another shader-- if (DM_GAME_SHADER_KEY_SKIP_LEN && DM_GAME_SHADER_KEY_SKIP_OFF + DM_GAME_SHADER_KEY_SKIP_LEN <= nctl) {-- uint8_t ctl[0x880]; memcpy(ctl, sd->control, nctl); memset(ctl + DM_GAME_SHADER_KEY_SKIP_OFF, 0, DM_GAME_SHADER_KEY_SKIP_LEN);+ const struct dm_profile *P = dm_prof();-+ if (P->shader_skip_len && P->shader_skip_off + P->shader_skip_len <= nctl) {+ if (nvn2_ctl(sd->control)) {+ uint8_t ctl[NVN2_KEY_CTL]; memcpy(ctl, sd->control, NVN2_KEY_CTL); memset(ctl + 0x30, 0, 4);+ CC_SHA256_Update(&hc, ctl, NVN2_KEY_CTL);+- } else if (DM_GAME_SHADER_KEY_SKIP_LEN && DM_GAME_SHADER_KEY_SKIP_OFF + DM_GAME_SHADER_KEY_SKIP_LEN <= nctl) {+- uint8_t ctl[0x880]; memcpy(ctl, sd->control, nctl); memset(ctl + DM_GAME_SHADER_KEY_SKIP_OFF, 0, DM_GAME_SHADER_KEY_SKIP_LEN);++ } else if (P->shader_skip_len && P->shader_skip_off + P->shader_skip_len <= nctl) {+ uint8_t ctl[0x880]; memcpy(ctl, sd->control, nctl); memset(ctl + P->shader_skip_off, 0, P->shader_skip_len);CC_SHA256_Update(&hc, ctl, nctl);} else CC_SHA256_Update(&hc, sd->control, nctl);if (code) CC_SHA256_Update(&hc, (const void *)(uintptr_t)sd->data, ncode);-@@ -1649,7 +1648,7 @@ static int g_present_cap = -1;+@@ -1721,7 +1720,7 @@ static int g_present_cap = -1;static int fps_present_cap(void) {if (dm_fps_state) return fps_step_cap();if (g_present_cap < 0) {- const char *e=getenv("DM_FPS_TARGET");int t=e?atoi(e):DM_GAME_FPS_TARGET;+ const char *e=getenv("DM_FPS_TARGET");int t=e?atoi(e):dm_prof()->fps_target;g_present_cap=t==30||t==60?t:0;- }- return g_present_cap;-@@ -1669,7 +1668,7 @@ static void present_cfg(const win_t *o) {+ if (g_present_cap && !dm_fps_lock_engine()) {+ LOG("[nvn] present cap %d fps (%s) not applied: this main has neither a frame step nor an engine frame limit the host writes, so the game's own present interval stays", g_present_cap, e ? "DM_FPS_TARGET" : "game profile fps_target");+@@ -1745,7 +1744,7 @@ static void present_cfg(const win_t *o) {// with a fixed hard floor of 60 fps; the logic stays at 25 ticks, and the client's frame-counted UI logic is unaffected -// with the same save and the same input, the UI message streams of the two modes match message by message. Proof (before character select): r9 game / display 60 ×3 / display 120 ×2, 6 groups in total, uicmp consistent// (the save indicator is exempted as a timing race), and the timing differences of key messages are within game mode's own noise band; proof after entering a run is still missing, pending action script coverage@@ -173,7 +180,7 @@ index 2dd6644..2e114ef 100644LOG("[nvn] present tick %d Hz, interval mode %s (%s; present interval set by the game %d; %s)", g_hz, g_display_mode ? "display (one frame per tick, a cut)" : "game (original semantics)",m ? "DM_PRESENT_INTERVAL" : "game profile present_interval", o->interval, scr > 0 ? "window, fixed 60 Hz" : "no window, fixed 60 Hz");}-@@ -1733,7 +1732,7 @@ static int fstep_cpu_slowed(uint64_t presents) {+@@ -1809,7 +1808,7 @@ static int fstep_cpu_slowed(uint64_t presents) {static int fstep_hold(void) {static int h = -1;if (h < 0) {@@ -182,7 +189,7 @@ index 2dd6644..2e114ef 100644if (!h) LOG("[nvn] frame step: frames are not held longer than the cap's vsyncs (%s)", e ? "DM_FPS_HOLD" : "game profile fps_hold");}return h;-@@ -2043,7 +2042,7 @@ static uint8_t *vpool_reserve(pool_t *o) { // → the reserved range, or NULL+@@ -2119,7 +2118,7 @@ static uint8_t *vpool_reserve(pool_t *o) { // → the reserved range, or NULLpthread_mutex_lock(&g_vp_mu);if (g_nvp == g_cvp && !(g_vp = realloc(g_vp, (g_cvp = g_cvp ? 2 * g_cvp : 64) * sizeof *g_vp))) die("sparse pool table allocation failed");g_vp[g_nvp++] = v; o->vp = v;@@ -191,7 +198,7 @@ index 2dd6644..2e114ef 100644pthread_mutex_unlock(&g_vp_mu);if (o->vmode == 2) LOG("[nvn] virtual pool %p (%#llx bytes, flags %#x): sparse, own address range %p+%#llx, physical pages are remapped into it", (const void *)o, (unsigned long long)o->size, o->flags, a, (unsigned long long)len);return a;-@@ -2468,11 +2467,11 @@ NVN(nvnCommandBufferClearBuffer, void, NVNcommandBuffer *c, NVNbufferAddress a,+@@ -2578,11 +2577,11 @@ NVN(nvnCommandBufferClearBuffer, void, NVNcommandBuffer *c, NVNbufferAddress a,// State the replay layer does not have yet: logged once (conditional rendering is treated as "always draw")// Render enable (profile render_cond, see OP_RENDER_COND in nvn_mtl.m): recorded and evaluated at replay; without the key everything draws, as beforeNVN(nvnCommandBufferSetRenderEnable, void, NVNcommandBuffer *c, uint32_t en) {@@ -232,7 +239,7 @@ index 3d64318..04f308a 100644for (char **e = *_NSGetEnviron(); *e; e++) if (!strncmp(*e, "DM_", 3) && strncmp(*e, "DM_NVN_CAPTURE=", 15)) KV("env\t%s\n", *e);#undef KVdiff --git a/dm/gfx/nvn/nvn_mtl.m b/dm/gfx/nvn/nvn_mtl.m-index a8b3f32..4ccb061 100644+index d6aa07b..be4a638 100644--- a/dm/gfx/nvn/nvn_mtl.m+++ b/dm/gfx/nvn/nvn_mtl.m@@ -402,7 +402,7 @@ void mtl_init(void) {@@ -244,7 +251,7 @@ index a8b3f32..4ccb061 100644if (g_bc_cpu) MLOG("BC textures: this GPU has no BC support, decoding them on the CPU (profile tex_bc_cpu)");g_q = [g_dev newCommandQueue];// A device without Metal 4 (the paravirtualized GPU of a virtual Mac, such as GitHub's macos-26 runner: no residency set, no MTL4CommandQueue) cannot run the NVN layer. The GL and-@@ -1296,7 +1296,7 @@ static void post(post_op o) {+@@ -1326,7 +1326,7 @@ static void post(post_op o) {// so a game that waits for the fence reads one submission's reports together; a segment whose feedback has not arrived by then takes the last segment's times#define SEG_CLK_N 1024struct seg_clk { _Atomic int refs; _Atomic uint64_t t[SEG_CLK_N][2]; }; // per submission (g_sclk, allocated at its first cut): guest ns of each cut segment's GPU start / end (0 = no feedback yet)@@ -253,7 +260,7 @@ index a8b3f32..4ccb061 100644static void seg_clk_put(seg_clk *c) { if (c && atomic_fetch_sub(&c->refs, 1) == 1) free(c); }static uint64_t gpu_s_guest_ns(double s) { // a feedback GPU time (seconds on the mach absolute time base) on the guest clock; 0 when unknownstatic mach_timebase_info_data_t tb; if (!tb.denom) mach_timebase_info(&tb);-@@ -1481,7 +1481,7 @@ static void post_run(post_rec *r, uint64_t c0, uint64_t c1) {+@@ -1514,7 +1514,7 @@ static void post_run(post_rec *r, uint64_t c0, uint64_t c1) {free(l); uint64_t rec[2] = {sum, gpu_ticks()}; memcpy((void *)ops[i].addr, rec, sizeof rec);}else if (ops[i].kind == 4) mirror_rb_land(ops[i].vis);@@ -262,7 +269,7 @@ index a8b3f32..4ccb061 100644}free(ops); seg_clk_put(sc); r->ops = NULL; r->sc = NULL;atomic_store(&r->claimed, 1);-@@ -2678,7 +2678,7 @@ static void sparse_view(NvPkg *pk, const tex_t *t) {+@@ -2712,7 +2712,7 @@ static void sparse_view(NvPkg *pk, const tex_t *t) {}}id have = tex_get(t->serial);@@ -271,8 +278,8 @@ index a8b3f32..4ccb061 100644if (!packaged && !have && on_sub_thread() && tex_cpu_content(t)) { mtl_tex_cpu_written(t); packaged = 1; } // storage the CPU wrote before its first use (tex_cpu_content)if (packaged) {NvPkg *pk = [have isKindOfClass:[NvPkg class]] ? have : nil; // resolved as GPU-only before the CPU wrote it: dropped and rebuilt as packaged-@@ -3673,7 +3673,7 @@ static int clear_rect_zero(int i) {- static void shmap_load(void) {+@@ -3729,7 +3729,7 @@ static int clear_rect_zero(int i) {+ static void shmap_read(void) {if (g_shmap) return;const char *e = getenv("DM_NVN_SHMAP");- NSString *path = e ? @(e) : exe_rel("../games/" DM_GAME_ID "/shader_map.tsv"); // default: the current game profile folder (Mac: dm/games/<id>; on iOS main.m sets DM_NVN_SHMAP)@@ -280,7 +287,7 @@ index a8b3f32..4ccb061 100644NSString *txt = [NSString stringWithContentsOfFile:path encoding:NSUTF8StringEncoding error:nil];if (!txt) MDIE("cannot read the shader map %s (DM_NVN_SHMAP can name another)", path.UTF8String);g_shmap = [NSMutableDictionary dictionary];-@@ -3695,7 +3695,7 @@ static void shmap_load(void) {+@@ -3751,7 +3751,7 @@ static void shmap_read(void) {if (c.count == 2 && [c[0] isEqual:@"game"]) st_game = c[1]; else if (c.count == 2 && [c[0] isEqual:@"inputs"]) st_inputs = c[1];}if (!st_inputs) MLOG("[RED] shader library %s has no stamp (inputs.tsv): no full dmsh_build.py run made it as it is, so c1_full.tsv and cb_extent.tsv are not taken", g_msl_dir.UTF8String);@@ -289,7 +296,7 @@ index a8b3f32..4ccb061 100644else MLOG("shader library stamp: game %s, inputs %s", st_game.UTF8String, st_inputs.UTF8String);NSString *cp = [[path stringByDeletingLastPathComponent] stringByAppendingPathComponent:@"c1_full.tsv"]; // Same directory as the mapping table (Mac: dm/games/<id>; iOS: dm/ inside the App, copied along by build_ipa.sh)NSString *ct = cp ? [NSString stringWithContentsOfFile:cp encoding:NSUTF8StringEncoding error:nil] : nil;-@@ -3944,7 +3944,7 @@ @implementation FnDev @end+@@ -4000,7 +4000,7 @@ @implementation FnDev @endif (stage == 0 && [j[@"layer_from"] isKindOfClass:[NSDictionary class]]) { o->lay_loc = [j[@"layer_from"][@"loc"] intValue]; o->lay_comp = [[j[@"layer_from"][@"comp"] description] UTF8String][0]; }char err[160];if (nvn_refl_from_json(j, &o->rf, err, sizeof err)) { MLOG("[RED] shader %s reflection conversion failed: %s", pc.UTF8String, err); return nil; }@@ -298,7 +305,7 @@ index a8b3f32..4ccb061 100644// (rf.c1 is freed by dealloc when o goes: freeing it here too was a double free, which aborted FINAL FANTASY RESONANCE at its first such shader)MLOG("[RED] shader %s reflection conversion failed: a texture handle the translator could not trace to one slot (profile key tex_dyn_slots off)", pc.UTF8String); return nil; }if (rt_range_on()) o->range_ro=rt_range_bindings_ro(j);-@@ -5248,7 +5248,7 @@ static void vconv_fill(int f, uint64_t src, uint32_t stride, uint64_t nv, float+@@ -5308,7 +5308,7 @@ static void vconv_fill(int f, uint64_t src, uint32_t stride, uint64_t nv, floattypedef struct { uint32_t mn, mx; uint64_t stamp, seen, lo, n; const void *span; int gpuw; } ir_ent; // gpuw: a GPU write was queued on the indices: never trusted againstatic nvn_hmap g_ir = {.klen = sizeof(ir_key)};static uint64_t g_vc_rgn[VC_RGN / 64], g_vc_stat, g_vc_conv, g_vc_whole, g_vc_checks, g_vc_bad; // g_vc_rgn: 1 MB regions holding a kept index range (hashed); g_vc_conv / g_vc_whole: vertices converted / in the bound ranges@@ -307,7 +314,7 @@ index a8b3f32..4ccb061 100644static int vc_check(void) { static int v = -1; if (v < 0) { const char *e = getenv("DM_NVN_VCONV_CHECK"); v = e && *e && atoi(e); } return v; }static inline uint32_t vc_rgn(uint64_t r) { return (uint32_t)((r * 0x9E3779B97F4A7C15ull) >> 48) & (VC_RGN - 1); }static void vc_rgn_mark(uint64_t lo, uint64_t n) { for (uint64_t r = lo >> 20; r <= (lo + n - 1) >> 20; r++) { uint32_t b = vc_rgn(r); g_vc_rgn[b >> 6] |= 1ull << (b & 63); } }-@@ -5689,7 +5689,7 @@ static int pso4_on(void) {+@@ -5749,7 +5749,7 @@ static int pso4_on(void) {if (v < 0) {const char *e = getenv("DM_PSO_MTL4");#if TARGET_OS_IPHONE@@ -316,7 +323,7 @@ index a8b3f32..4ccb061 100644if (!v) MLOG("render pipelines through the MTLDevice (iOS: DM_PSO_MTL4=1 or the profile key pso_mtl4 on turns on the Metal 4 bases, the pipeline archive and the hybrid pipelines)");#elsev = !(e && !strcmp(e, "0"));-@@ -10020,7 +10020,7 @@ void mtl_read_texels(const tex_t *t, unsigned level, unsigned layer0, const NVNc+@@ -10299,7 +10299,7 @@ void mtl_read_texels(const tex_t *t, unsigned level, unsigned layer0, const NVNc// textures from the CPU, reads them back with ReadTexels on its own thread before any draw uses them, and copies the blocks into its 5120x5120 roughness atlas. Read from the// never-uploaded host texture they were zeros, the atlas stayed empty, and the opening cave's stone blocks got roughness 0 and no torch lightint nvn_ft_written(const tex_t *);@@ -325,7 +332,7 @@ index a8b3f32..4ccb061 100644// A sparse pool's texture is read through a copy gathered from its page table, unmapped pages as 0, as pkg_upload_ uploads it: where nothing is mapped its address range is// inaccessible (reading the storage directly stopped the host with SIGBUS)const uint8_t *mem = t->mem; uint8_t *part = NULL;-@@ -10723,7 +10723,7 @@ void mtl_exec(const uint8_t *p) {+@@ -11002,7 +11002,7 @@ void mtl_exec(const uint8_t *p) {PD("Y signal_event cmd=%p dst=%p mode=%u value=%u", p, val, m, v); mtl_sub_event(val, m, v); break; }case OP_REPORT_COUNTER: { uint64_t t, ad; memcpy(&t, a, 8); memcpy(&ad, (const uint8_t *)a + 8, 8); g_cnt_report[t & 31]++;PD("Q report type=%llu cmd=%p dst=%#llx", (unsigned long long)t, p, (unsigned long long)ad);@@ -334,7 +341,7 @@ index a8b3f32..4ccb061 100644if (t == NVN_COUNTER_TYPE_SAMPLES_PASSED) { post((post_op){3, NULL, 0, 0, ad, (uint32_t)t, vis_snapshot()}); g_vis_cur = -1; }else mtl_sub_counter(ad, (uint32_t)t);break; }-@@ -11773,9 +11773,10 @@ uint64_t mtl_present_ext(uint64_t serial, double period, void *ev, uint64_t ev_v+@@ -12063,9 +12063,10 @@ uint64_t mtl_present_ext(uint64_t serial, double period, void *ev, uint64_t ev_vint mtl_snap_on(void) {static int v = -1; if (v >= 0) return v;const char *e = getenv("DM_PRESENT_SNAP");@@ -360,7 +367,7 @@ index c584ab2..a4c591e 100644if (g_rec) MLOG("Metal encoding runs on its own thread (DM_NVN_ENC_THREAD=0 turns it off)");return g_rec;diff --git a/dm/gfx/tests/Makefile b/dm/gfx/tests/Makefile-index 8b9c607..f3c9649 100644+index ab23cde..b357ded 100644--- a/dm/gfx/tests/Makefile+++ b/dm/gfx/tests/Makefile@@ -47,10 +47,10 @@ t_transform_feedback: t_transform_feedback.m $(MTL_T_DEP)@@ -389,10 +396,10 @@ index 8f9b3f8..24d3c63 100644+// The runtime profile the NVN layer reads (dm_profile in hle_profile.c): no DM_PROFILE in a test, so these are the compiled game_profile.h values+#include "../../host/hle_profile.c"diff --git a/dm/host/front_mac.m b/dm/host/front_mac.m-index 4964915..0338444 100644+index 369936d..e3e9e11 100644--- a/dm/host/front_mac.m+++ b/dm/host/front_mac.m-@@ -728,7 +728,7 @@ - (BOOL)control:(NSControl *)c textView:(NSTextView *)tv doCommandBySelector:(SE+@@ -804,7 +804,7 @@ - (BOOL)control:(NSControl *)c textView:(NSTextView *)tv doCommandBySelector:(SE// the path came in. build: this build's ID (read from the engine on the main thread by the caller). Runs on a background// queue (findCheats:): it touches only the file system and Foundation, never AppKit or the cheats enginestatic NSArray<NSURL *> *found_cheat_files(NSString *build) {@@ -401,7 +408,7 @@ index 4964915..0338444 100644NSString *as = [NSHomeDirectory() stringByAppendingPathComponent:@"Library/Application Support"];NSMutableArray<NSString *> *dirs = [NSMutableArray array];NSFileManager *fm = NSFileManager.defaultManager;-@@ -816,7 +816,7 @@ - (BOOL)importFiles:(NSArray<NSURL *> *)urls {+@@ -892,7 +892,7 @@ - (BOOL)importFiles:(NSArray<NSURL *> *)urls {const char *dirc = dm_cheats_dir_path();if (!dirc || !*dirc || strlen(dm_cheats_build()) != 16) { NSBeep(); return NO; } // no folder, or no build ID to name a file byNSString *dir = engine_str(dirc), *build = engine_str(dm_cheats_build());@@ -410,7 +417,7 @@ index 4964915..0338444 100644NSFileManager *fm = NSFileManager.defaultManager;[fm createDirectoryAtPath:dir withIntermediateDirectories:YES attributes:nil error:nil];BOOL any = NO;-@@ -1113,7 +1113,7 @@ void front_run(void (*guest)(void)) {+@@ -1189,7 +1189,7 @@ void front_run(void (*guest)(void)) {NSWindow *win = [[NSWindow alloc] initWithContentRect:rstyleMask:NSWindowStyleMaskTitled | NSWindowStyleMaskClosable | NSWindowStyleMaskResizablebacking:NSBackingStoreBuffered defer:NO];@@ -419,7 +426,7 @@ index 4964915..0338444 100644// Fullscreen: without FullScreenPrimary the green button only zooms the window. The present path already scales// the game picture to fit the drawable with black bars around it, so fullscreen keeps the game's aspect ratio.win.collectionBehavior = NSWindowCollectionBehaviorFullScreenPrimary;-@@ -1151,7 +1151,7 @@ void front_run(void (*guest)(void)) {+@@ -1229,7 +1229,7 @@ void front_run(void (*guest)(void)) {// Main menu: AppKit runs ⌘ shortcuts only through menu items, so ⌘Q quits and ⌃⌘F toggles fullscreen from here (AppKit shows the item as Globe-F and keeps ⌃⌘F as a hidden twin)NSMenu *bar = [NSMenu new], *app = [NSMenu new], *wm = [[NSMenu alloc] initWithTitle:@"Window"];[[bar addItemWithTitle:@"" action:nil keyEquivalent:@""] setSubmenu:app];@@ -483,10 +490,10 @@ index 0e8ef70..5908a8d 100644// match itself is case-insensitive (name_is_build lower-cases both sides)const char *bid = dm_main_build();diff --git a/dm/host/hle_fs.c b/dm/host/hle_fs.c-index f4fe806..0f64dc1 100644+index ab8a182..8d0f361 100644--- a/dm/host/hle_fs.c+++ b/dm/host/hle_fs.c-@@ -601,7 +601,7 @@ HLE_FORCE("_ZN2nn2fs13MountSaveDataEPKcRKNS_7account3UidE", "fsp-srv; save data+@@ -603,7 +603,7 @@ HLE_FORCE("_ZN2nn2fs13MountSaveDataEPKcRKNS_7account3UidE", "fsp-srv; save dataconst char *d = getenv("DM_SAVE");if (!d) die("DM_SAVE is not set: point it at a writable copy of a save directory");char dd[1024]; strlcpy(dd, d, sizeof dd); size_t L = strlen(dd); while (L > 1 && dd[L - 1] == '/') dd[--L] = 0; // strip trailing slashes (.work / .new are appended at the same level)@@ -495,7 +502,7 @@ index f4fe806..0f64dc1 100644return mount_ex(name, dd, 0, 1);}// Device save data: one save for the console instead of one per user. Animal Crossing: New Horizons keeps its island there (3.0.3's main mounts no account save data at all); the host-@@ -614,7 +614,7 @@ HLE_FORCE("_ZN2nn2fs19MountDeviceSaveDataEPKc", "fsp-srv; device save data → t+@@ -616,7 +616,7 @@ HLE_FORCE("_ZN2nn2fs19MountDeviceSaveDataEPKc", "fsp-srv; device save data → tconst char *d = getenv("DM_SAVE");if (!d) die("DM_SAVE is not set: point it at a writable copy of a save directory");char dd[1024]; strlcpy(dd, d, sizeof dd); size_t L = strlen(dd); while (L > 1 && dd[L - 1] == '/') dd[--L] = 0;@@ -505,7 +512,7 @@ index f4fe806..0f64dc1 100644return mount_ex(name, dd, 0, 1);}diff --git a/dm/host/hle_oe.c b/dm/host/hle_oe.c-index 71a90bc..0750f48 100644+index d2ed004..1e97a64 100644--- a/dm/host/hle_oe.c+++ b/dm/host/hle_oe.c@@ -8,7 +8,7 @@@@ -646,7 +653,7 @@ index a2febeb..5afd846 100644+ return p;+} // one line per differing value (called after loading)diff --git a/dm/host/hle_sdk16.c b/dm/host/hle_sdk16.c-index 20d28b3..38dff5a 100644+index d4aa0fc..d298257 100644--- a/dm/host/hle_sdk16.c+++ b/dm/host/hle_sdk16.c@@ -14,10 +14,10 @@@@ -683,10 +690,10 @@ index 20d28b3..38dff5a 100644return (size_t)skip;}diff --git a/dm/host/hle_svc.c b/dm/host/hle_svc.c-index 5e7eb0e..b02ed7e 100644+index ff2e3a3..e5c0e2e 100644--- a/dm/host/hle_svc.c+++ b/dm/host/hle_svc.c-@@ -366,11 +366,11 @@ static uint64_t alias_room(void) {+@@ -368,11 +368,11 @@ static uint64_t alias_room(void) {static void stdalloc_init(uint64_t *r, int param) {(void)param;if (r[1]) return; // a heap over memory the game passes in: no address region@@ -701,7 +708,7 @@ index 5e7eb0e..b02ed7e 100644}// ---- Unreal's engine region ----diff --git a/dm/host/hle_thread.c b/dm/host/hle_thread.c-index eb40a83..8701e3b 100644+index 88fed5f..a818672 100644--- a/dm/host/hle_thread.c+++ b/dm/host/hle_thread.c@@ -478,7 +478,7 @@ static void hitch_init(void) {@@ -766,19 +773,19 @@ index 341493a..42aa7a3 100644dm_cheats_init(); // the Atmosphère cheat files for this build (hle_cheats.c): picked by first 16 hex digits of main's build ID, which the loader knows nowdm_sdk_major(); // logs the SDK version, which SDK-dependent behaviour follows (loader.c)diff --git a/dm/host/tests/Makefile b/dm/host/tests/Makefile-index 97d104c..574472a 100644+index 61529d6..858ee4d 100644--- a/dm/host/tests/Makefile+++ b/dm/host/tests/Makefile@@ -12,7 +12,7 @@ QUIET = $(if $(findstring -fsanitize,$(SAN)),,2>/dev/null)GINC = $(if $(strip $(GAME)),-I../gen/$(GAME) -I../../games/$(GAME),$(error GAME is not set: make GAME=<base game title ID>: $(shell python3 ../../games/game.py list | awk -F'\t' '{printf "%s (%s) ", $$1, $$3}')))$(B)/t_fs $(B)/t_fs_case $(B)/t_fs_commit_list $(B)/t_fs_commit_list_tsan: ../romfs_image.hGAME_H = ../gen/$(GAME)/game_profile.h--run: $(B)/t_language $(B)/t_motion $(B)/t_heap_size $(B)/t_touch $(B)/t_gesture $(B)/t_oe $(B)/t_fs $(B)/t_fs_commit_list $(B)/t_thread_leak $(B)/t_fs_case $(B)/t_audio $(B)/t_audio_spsc $(B)/t_swkbd $(B)/t_altstack $(B)/t_condvar $(B)/t_condvar_old $(B)/t_pollwait $(B)/t_pctl $(B)/t_time $(B)/t_shared_font $(B)/t_vorbis $(B)/t_vorbis_divides $(B)/t_hid $(B)/t_haptics $(B)/t_haptics_apple $(B)/t_cheats $(B)/t_input_map $(B)/t_launcher_contract-+run: $(B)/t_language $(B)/t_motion $(B)/t_heap_size $(B)/t_touch $(B)/t_gesture $(B)/t_oe $(B)/t_fs $(B)/t_fs_commit_list $(B)/t_thread_leak $(B)/t_fs_case $(B)/t_audio $(B)/t_audio_spsc $(B)/t_swkbd $(B)/t_altstack $(B)/t_condvar $(B)/t_condvar_old $(B)/t_pollwait $(B)/t_pctl $(B)/t_time $(B)/t_shared_font $(B)/t_vorbis $(B)/t_vorbis_divides $(B)/t_hid $(B)/t_haptics $(B)/t_haptics_apple $(B)/t_cheats $(B)/t_profile_runtime $(B)/t_input_map $(B)/t_launcher_contract+-run: $(B)/t_language $(B)/t_motion $(B)/t_heap_size $(B)/t_touch $(B)/t_gesture $(B)/t_oe $(B)/t_fs $(B)/t_fs_commit_list $(B)/t_thread_leak $(B)/t_fs_case $(B)/t_audio $(B)/t_audio_spsc $(B)/t_swkbd $(B)/t_altstack $(B)/t_condvar $(B)/t_condvar_old $(B)/t_pollwait $(B)/t_pctl $(B)/t_time $(B)/t_shared_font $(B)/t_vorbis $(B)/t_vorbis_divides $(B)/t_hid $(B)/t_haptics $(B)/t_haptics_apple $(B)/t_cheats $(B)/t_pad_hid $(B)/t_input_map $(B)/t_launcher_contract++run: $(B)/t_language $(B)/t_motion $(B)/t_heap_size $(B)/t_touch $(B)/t_gesture $(B)/t_oe $(B)/t_fs $(B)/t_fs_commit_list $(B)/t_thread_leak $(B)/t_fs_case $(B)/t_audio $(B)/t_audio_spsc $(B)/t_swkbd $(B)/t_altstack $(B)/t_condvar $(B)/t_condvar_old $(B)/t_pollwait $(B)/t_pctl $(B)/t_time $(B)/t_shared_font $(B)/t_vorbis $(B)/t_vorbis_divides $(B)/t_hid $(B)/t_haptics $(B)/t_haptics_apple $(B)/t_cheats $(B)/t_pad_hid $(B)/t_profile_runtime $(B)/t_input_map $(B)/t_launcher_contract$(B)/t_language$(B)/t_heap_size$(B)/t_touch-@@ -41,6 +41,7 @@ run: $(B)/t_language $(B)/t_motion $(B)/t_heap_size $(B)/t_touch $(B)/t_gesture+@@ -42,6 +42,7 @@ run: $(B)/t_language $(B)/t_motion $(B)/t_heap_size $(B)/t_touch $(B)/t_gesture$(B)/t_pctl$(B)/t_time$(B)/t_shared_font@@ -786,7 +793,7 @@ index 97d104c..574472a 100644$(B)/t_system_event$(B)/t_vorbis$(B)/t_vorbis_divides-@@ -92,7 +93,7 @@ nro: $(B)/t_nro+@@ -96,7 +97,7 @@ nro: $(B)/t_nro$(B)/t_nro# the cheat engine (hle_cheats.c, compiled into the test with stubs for the loader, the heap and the keys)$(B)/t_cheats: t_cheats.c ../hle_cheats.c ../dm.h ../dm_input.h $(GAME_H) | $(B)@@ -795,7 +802,7 @@ index 97d104c..574472a 100644.PHONY: cheatscheats: $(B)/t_cheatsTMPDIR="$(abspath $(B))" $(B)/t_cheats-@@ -147,7 +148,7 @@ $(B)/t_fpslock: t_fpslock.c ../hle_fpslock.c ../hle.h ../dm.h $(GAME_H) | $(B)+@@ -161,7 +162,7 @@ $(B)/t_fpslock: t_fpslock.c ../hle_fpslock.c ../hle.h ../dm.h $(GAME_H) | $(B)$(CLANG) -O1 -g -Wno-unused-function $(GINC) -o $@ t_fpslock.c ../hle_profile.crun: $(B)/t_uecvar$(B)/t_uecvar: t_uecvar.c ../hle_uecvar.c ../hle.h ../dm.h $(GAME_H) | $(B)@@ -804,7 +811,7 @@ index 97d104c..574472a 100644$(B)/t_swkbd: t_swkbd.c ../hle_swkbd.c ../hle.h ../dm.h $(GAME_H) | $(B)$(CLANG) -O1 -Wno-unused-function -I.. $(GINC) -o $@ t_swkbd.c ../hle_swkbd.crun: $(B)/t_bigstack-@@ -312,3 +313,9 @@ coverage:+@@ -339,3 +340,9 @@ coverage:rm -rf $(B)/cov/profLLVM_PROFILE_FILE="$(call cov_profile,$(B)/cov)" $(MAKE) -i B=$(B)/cov SAN="$(COV_FLAGS)" run@$(call cov_export,$(B)/cov)@@ -920,11 +927,11 @@ index 0000000..c4b4194+ printf(bad ? "[RED] %d profile case(s) failed\n" : "runtime profile OK\n", bad);+ return bad ? 1 : 0;+}-diff --git a/dm/tools/tests/test_game_profile.py b/dm/tools/tests/test_game_profile.py+diff --git a/dm/tools/tests/test_game_profile_runtime.py b/dm/tools/tests/test_game_profile_runtime.pynew file mode 100644index 0000000..46e8f89--- /dev/null-+++ b/dm/tools/tests/test_game_profile.py++++ b/dm/tools/tests/test_game_profile_runtime.py@@ -0,0 +1,54 @@+"""game.py profile: the runtime profile file the host reads from DM_PROFILE (dm/host/hle_profile.c set_kv) carries every key the host reads, with the "none" spellings+for a key the game leaves out (the host keeps the compiled game's value for a key the file lacks, so a second game's file must say it has none). No game files needed."""diff --git a/patches/0054-front-mac-start-with-the-pointer-hidden-when-the.patch b/patches/0054-front-mac-start-with-the-pointer-hidden-when-the.patchindex 7deb283a..aecc9157 100644--- a/patches/0054-front-mac-start-with-the-pointer-hidden-when-the.patch+++ b/patches/0054-front-mac-start-with-the-pointer-hidden-when-the.patch@@ -9,17 +9,16 @@ The launcher's console hides the pointer after a few idle seconds. The game is aUpstream-Status: forwarded seedds/nxnative#839Reason: The launcher console hides the pointer, the game it starts shows it again for its first idle secondsIssue: LNPANDY/NX2Apple#368----dm/host/front_mac.m | 9 +++++++--docs/env_switches.tsv | 1 +2 files changed, 8 insertions(+), 2 deletions(-)diff --git a/dm/host/front_mac.m b/dm/host/front_mac.m-index 0338444..2e31039 100644+index e3e9e11..525765e 100644--- a/dm/host/front_mac.m+++ b/dm/host/front_mac.m-@@ -1198,14 +1198,19 @@ void front_run(void (*guest)(void)) {+@@ -1276,14 +1276,19 @@ void front_run(void (*guest)(void)) {const char *ch = getenv("DM_CURSOR_HIDE"); double idle = ch && *ch ? atof(ch) : 3.0;if (idle > 0) {win.acceptsMouseMovedEvents = YES;@@ -42,14 +41,14 @@ index 0338444..2e31039 100644}for (NSNotificationName nm in @[GCControllerDidConnectNotification, GCControllerDidDisconnectNotification])diff --git a/docs/env_switches.tsv b/docs/env_switches.tsv-index 7f026a7..1785974 100644+index 234f438..112ec8a 100644--- a/docs/env_switches.tsv+++ b/docs/env_switches.tsv-@@ -21,6 +21,7 @@ DM_COPY_GAME_RESOURCES switch `NO` skips the Xcode build phase that copies the g+@@ -20,6 +20,7 @@ DM_CHEATS_WINDOW switch `1` opens the Mac Cheats panel beside the game from the+ DM_COPY_GAME_RESOURCES switch `NO` skips the Xcode build phase that copies the game's resources into the app (`stage_resources.sh`, on by default); `build_ipa.sh` sets it for its unsigned build, which packs them itselfDM_COPY_ROMFS switch `NO` keeps the game files out of the app, in the Xcode build phase (`stage_resources.sh`) and in the unsigned IPA of `build_ipa.sh` (on by default): `main.m` takes the validated `Documents/romfs.img` copied by `scripts/push_romfs.sh`, then a `Documents/romfs` folder; the build writes the image's identity as `romfs.id` into the app, and `main.m` uses only a matching image (`--romfs separate` of the NSP script sets this)DM_CTL diagnostic `=<file>` (Mac): the host polls the file every 100 ms and runs each appended line: button presses, `shot`, `passdump`, `texdump`, `env KEY=VALUE`, `peek`, `memdump`, `drag` and more+DM_CURSOR_HIDDEN player `=1` (Mac) starts the game with the pointer already hidden, as the launcher sets it when its console had hidden the pointer, so it does not show up for a moment between the two windows. The usual rule of `DM_CURSOR_HIDE` takes over once the pointer is over the game windowDM_CURSOR_HIDE player `=<seconds>` hides the Mac pointer after that many seconds without movement over the game window (3 by default) and shows it again on the next movement, click or scroll; `0` keeps itDM_DBG diagnostic When set, prints the guest's `svcOutputDebugString` text to stderr as `[guest]` linesDM_DBG_AU_FRAMES diagnostic `=<frames>` asks the Mac's Core Audio output for that many frames per callback instead of about 5 ms (1024 reproduces the iOS default that caused crackling)- DM_DETCLOCK switch `=<step ns>`: from the first present on, the guest clock advances a fixed step per present instead of following the wall clock, and the random source becomes a fixed-seed stream (replay and test runs)diff --git a/patches/0055-ios-shell-declare-en-and-zh-hans-in-cfbundleloca.patch b/patches/0055-ios-shell-declare-en-and-zh-hans-in-cfbundleloca.patchindex e740bdd5..50a8b28e 100644--- a/patches/0055-ios-shell-declare-en-and-zh-hans-in-cfbundleloca.patch+++ b/patches/0055-ios-shell-declare-en-and-zh-hans-in-cfbundleloca.patch@@ -6,7 +6,6 @@ Subject: [PATCH] ios shell: declare en and zh-Hans in CFBundleLocalizationsUpstream-Status: fork-onlyReason: Without CFBundleLocalizations iOS never offers zh-Hans to the shell's package bundles, so a device set to Chinese shows English. The shell follows the system language.Issue: LNPANDY/NX2Apple#418----dm/ios/project-shell.yml | 1 +1 file changed, 1 insertion(+)diff --git a/patches/series b/patches/seriesindex 16e1a39a..fa77602e 100644--- a/patches/series+++ b/patches/series@@ -20,7 +20,6 @@0033-lint-c-test-without-workflow.patch0034-metal-a-newer-compiler-of-the-recorded-generatio.patch0037-totk-1.4.2-frame-step-sites.patch-0040-nsp-derived-profile-without-frame-step.patch0041-shared-fonts-a-compact-stand-in-for-a-font-engin.patch0042-ios-launcher-present-the-document-picker-once-pe.patch0045-route-c-loader-image-header.patch