[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-109691":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":16,"stars7d":16,"stars30d":16,"stars90d":16,"forks30d":16,"starsTrendScore":16,"compositeScore":17,"rankGlobal":10,"rankLanguage":10,"license":18,"archived":19,"fork":19,"defaultBranch":20,"hasWiki":21,"hasPages":19,"topics":22,"createdAt":10,"pushedAt":10,"updatedAt":23,"readmeContent":24,"aiSummary":25,"trendingCount":16,"starSnapshotCount":16,"syncStatus":26,"lastSyncTime":27,"discoverSource":28},109691,"Hookshot","NotRexed\u002FHookshot","NotRexed","A Native Recompilation Of The Legend Of Zelda: Ocarina Of Time Nintendo Switch 2 Remake","",null,"C++",9081,832,104,132,0,64.76,"Other",false,"main",true,[],"2026-11-24 04:01:28","\u003Ch1 align=\"center\">\n  \u003Cbr>\n  \u003Ca>\n  \u003Cimg src=\"assets\u002Fhookshot.png\" alt=\"Hookshot\" width=\"200\">\n\u003C\u002Fa>\n\n  \u003Cbr>\n  \u003Cb>Hookshot\u003C\u002Fb>\n  \u003Cbr>\n\u003C\u002Fh1>\n\n\u003Ch4 align=\"center\">The Legend of Zelda: Ocarina of Time (Nintendo Switch 2) running natively on Windows & Linux, with no emulator.\n\u003C\u002Fh4>\n\n\n\u003Cp align=\"center\">\n  \u003Ca href=\"#project-status\">Status\u003C\u002Fa> |\n  \u003Ca href=\"#install-and-play\">Install and play\u003C\u002Fa> |\n  \u003Ca href=\"#in-game-menu\">In-game menu\u003C\u002Fa> |\n  \u003Ca href=\"#if-something-goes-wrong\">Problems\u003C\u002Fa> |\n  \u003Ca href=\"#build-from-source\">Build from source\u003C\u002Fa> |\n  \u003Ca href=\"#how-it-works\">How it works\u003C\u002Fa> |\n  \u003Ca href=\"#want-to-help\">Want to help?\u003C\u002Fa> |\n  \u003Ca href=\"#credits\">Credits\u003C\u002Fa> |\n  \u003Ca href=\"#license\">License\u003C\u002Fa>\n\u003C\u002Fp>\n\nHookshot is a static recompilation. The game's code is translated to C and compiled into a Windows or Linux program,\nthe console's system software is reimplemented, and the Switch 2 graphics are rebuilt on Vulkan. All of this happens\n**on your PC, from your own copy of the game**.\n\u003Cbr>\n\n> [!WARNING]\n> Some users report the file in releases to be a Trojan - it is not. Feel free to run it through any antivirus software\n\n\nDiscord: https:\u002F\u002Fdiscord.gg\u002FDVQQJphbBf\n\u003Cbr>\n\n> [!IMPORTANT]\n> This repository **does not contain the game, keys or an executable**, and it does not explain how to get them. You\n> need your own copy. Everything the build creates (`hookshot.exe`, the generated code, the shader caches and your\n> saves) comes from your game and stays on your PC. Never share those files.\n\n## Project status\n\nExperimental. Most testing so far has been around the start of the game. Players have reported on many PCs since:\nthe table says what works and what does not yet.\n\n| What | Status |\n|---|---|\n| Kokiri Forest: reaching gameplay and walking around | ✅ Works |\n| Sound, controller, keyboard and saves | ✅ Works |\n| In-game menu, frame generation and upscaling | ✅ Works |\n| Flicker (the picture flashing too bright while moving) | ✅ Fixed in v2.0.2 ([#645](https:\u002F\u002Fgithub.com\u002FNotRexed\u002FHookshot\u002Fpull\u002F645)) |\n| Ground fog vanishing when looking down | ✅ Fixed in v2.0.2 ([#638](https:\u002F\u002Fgithub.com\u002FNotRexed\u002FHookshot\u002Fpull\u002F638)) |\n| Models with missing pieces (doors, fences, parts of trees) | ✅ Fixed where tested, more play needed |\n| Stutter when entering new areas | ⚠️ Still happens the first time you visit a place. The next visits are smooth |\n| Performance | ⚠️ Depends on the PC: some reach a steady 60 fps, others stay below it, more so in Hyrule Field |\n| Hyrule Field, Castle Town, Kakariko and the dungeons | ⚠️ Players got there, with open bugs: striped shadows in Hyrule Field ([#468](https:\u002F\u002Fgithub.com\u002FNotRexed\u002FHookshot\u002Fissues\u002F468)), some crashes ([#317](https:\u002F\u002Fgithub.com\u002FNotRexed\u002FHookshot\u002Fissues\u002F317), [#648](https:\u002F\u002Fgithub.com\u002FNotRexed\u002FHookshot\u002Fissues\u002F648)) |\n| Ultrawide | ⚠️ The 3D keeps its shape, but the HUD is stretched and the picture is softer |\n| NVIDIA cards | ✅ Works. The most tested |\n| AMD cards | ⚠️ Some tested: reports from the RX 6600, RX 7800 XT and RX 7900 XTX. Known issue: the game loses the GPU in the Deku Tree on the RX 6600 ([#708](https:\u002F\u002Fgithub.com\u002FNotRexed\u002FHookshot\u002Fissues\u002F708), [#614](https:\u002F\u002Fgithub.com\u002FNotRexed\u002FHookshot\u002Fissues\u002F614)) |\n| Intel cards | ❓ Few reports, many of them black screens or crashes ([#17](https:\u002F\u002Fgithub.com\u002FNotRexed\u002FHookshot\u002Fissues\u002F17)) |\n| Cards without mesh shaders (such as AMD RX 5000 and older) | ❌ Not supported: parts of the picture are missing. A fallback was tried and taken out again for now ([#640](https:\u002F\u002Fgithub.com\u002FNotRexed\u002FHookshot\u002Fissues\u002F640)) |\n| Linux | ✅ Works with the AppImage. Tested on several distributions (CachyOS, Fedora, Bazzite, SteamOS) and cards, with open problems on some AMD cards ([#604](https:\u002F\u002Fgithub.com\u002FNotRexed\u002FHookshot\u002Fissues\u002F604), [#528](https:\u002F\u002Fgithub.com\u002FNotRexed\u002FHookshot\u002Fissues\u002F528)) |\n\n## Install and play\n\nThe game does not come ready-made: Hookshot Builder builds it on your PC from your copy. You do this once. After that\nyou start the game from its launcher, which also updates it.\n\n### What you need\n\n- **Your copy of the game at the supported version:** program `0400486024DEC000`, update v131072, build `e0f3ccfa`.\n  Other versions do not work. A `.nup` file, or the `romfs` and `exefs` folders.\n- 64-bit Windows 10 or 11, or 64-bit Linux with glibc 2.35 or newer (Ubuntu 22.04, Debian 12, Fedora, Arch,\n  SteamOS ...) and a CPU with AVX2.\n- A graphics card with Vulkan 1.3 and mesh shaders, with an up-to-date driver: NVIDIA GeForce RTX 20 series or newer,\n  AMD Radeon RX 6000 series or newer, or Intel Arc. On Linux, Mesa or NVIDIA's driver. Cards without mesh shaders are\n  not supported.\n- 8 GB of video memory (VRAM) or more is recommended. Cards with less can use the in-game menu's lower Quality presets.\n- 16 GB of RAM or more. A run uses about 10 GB.\n- About 60 GB free while building.\n- An internet connection for the download. Nothing else to install: the builder brings its own compiler and tools.\n\n### On Windows\n\n1. Open the [latest release](https:\u002F\u002Fgithub.com\u002FNotRexed\u002FHookshot\u002Freleases\u002Flatest) and download `HookshotBuilder.exe`.\n2. Run it. It downloads the rest of Hookshot Builder (about 500 MB), checks it, and opens it.\n3. Pick your game. The builder looks for `.nup` files in your Downloads, Desktop and Documents folders and lists them\n   under **Found on this PC**. Not listed? Press **Browse…**, drop the file on the window, or choose\n   **romfs and exefs folders**. The builder checks that it is the right version.\n4. Under **Install the game to**, keep the folder (`Games\\Hookshot` in your user folder) or press **Change**. Choose\n   the **Game language**.\n5. Press **Build the game**. It takes about 10 to 45 minutes, depending on your CPU and memory. You can use your PC in\n   the meantime.\n6. When it says **Your game is ready**, press **Play**. The **Desktop shortcut** and **Start menu entry** boxes are\n   ticked: untick them if you don't want them.\n\nNext time, start the game from the Hookshot shortcut, or `hookshot.exe` in the game folder. That is the launcher: it\nhas **Play**, and **Update** when a newer release is out.\n\nThe first start prepares the game's shaders, which takes a while. Later starts are faster.\n\n### On Linux\n\n1. Open the [latest release](https:\u002F\u002Fgithub.com\u002FNotRexed\u002FHookshot\u002Freleases\u002Flatest) and download\n   `Hookshot-\u003Cversion>-x86_64.AppImage`. It is Hookshot Builder with everything it needs inside.\n2. Allow it to run as a program. In most file managers: right-click it, open **Properties**, and turn on\n   \"Allow executing file as program\" (the words differ between desktops). Or in a terminal:\n   `chmod +x Hookshot-*-x86_64.AppImage`.\n3. Double-click it. The Hookshot Builder window opens.\n4. Under **Game files**, choose **.nup file** or **romfs and exefs**, then press **Browse** to pick them. The builder\n   checks the version.\n5. Under **Save the game to**, keep `~\u002FGames\u002FHookshot` or choose another folder. Choose a **Language**.\n6. Press **Build**. It takes about 10 to 45 minutes, depending on your CPU and memory.\n7. When it says \"Your game is ready\", press **Play**.\n\nThe game is also added to your applications menu as \"Hookshot\". That entry, and `hookshot` in the game folder, open the\nlauncher: **Play**, and **Update** when a newer release is out. Keep the AppImage where it is: the launcher uses it to\nupdate.\n\n### Updating\n\nWhen a new release is out, the launcher says \"Update available\". Press **Update**: in `hookshot.exe` on Windows, or in\n`hookshot` (or the AppImage) on Linux. It downloads only the parts that changed and builds the game again in the same\nfolder, compiling only what changed. Your saves and settings are kept. What changed is on the\n[Releases page](https:\u002F\u002Fgithub.com\u002FNotRexed\u002FHookshot\u002Freleases).\n\n\u003Cdetails>\n\u003Csummary>What an update keeps and replaces, and updating from the command line\u003C\u002Fsummary>\n\nTo be safe, copy your saves somewhere first: the `user` folder in the game folder on Windows, or\n`~\u002F.local\u002Fshare\u002Fhookshot` on Linux.\n\n| Kept | Replaced |\n|---|---|\n| Your saves (`user`, or `~\u002F.local\u002Fshare\u002Fhookshot` on Linux) | The game in `bin` and its files |\n| `hookshot_options.ini`, the in-game menu's choices and your controls | `image.bin` and the shader list |\n| `hookshot_env.txt` | `language.txt`, written again with the game's language |\n| `mods` | |\n\nThe game files the first build read are kept in the game folder, so an update does not need your `.nup` again.\n\nFrom a clone: `git pull`, then `python -I nx2\u002Fmake_game.py --update \u003Cgame folder>`. The Linux AppImage does the same\nwith `--update \u003Cgame folder>`.\n\n\u003C\u002Fdetails>\n\n### Where the files go\n\n- The build reads your game and never changes it. It writes to the folder you choose and to the builder's own folder:\n  `%LOCALAPPDATA%\\HookshotBuilder` on Windows, `~\u002F.cache\u002Fhookshot-builder` on Linux.\n- The romfs is hard-linked instead of copied where the disk allows it.\n- The builder keeps its build files (about 4 GB) so that updates are quick. None of them are needed to play: on\n  Windows, **Free up space** on the \"Your game is ready\" page deletes them, and the build files folder can be moved\n  before a build (**Change**, **Default**).\n- Saves: the `user` folder in the game folder on Windows, `~\u002F.local\u002Fshare\u002Fhookshot` on Linux (a `user` folder from an\n  earlier Linux build is moved there once). `--user \u003Cfolder>` puts them somewhere else ([command line\n  arguments](#running-the-game-from-the-command-line)).\n- To uninstall, delete the game folder, the builder's folder and the shortcuts.\n\n### If something goes wrong\n\n| Problem | What to do |\n|---|---|\n| Where is the log? | `hookshot_log.txt` in the game folder holds the last run. The four runs before are `hookshot_log.1.txt` (the last) to `.4.txt`. Started from a terminal, the game prints there instead |\n| \"Hookshot supports build e0f3ccfa\" or \"This version isn't supported\" | Check that you chose the right game with its update installed |\n| The game opens and closes, or the log says \"device lost\" | Update your graphics driver. On AMD cards there are known crashes ([#708](https:\u002F\u002Fgithub.com\u002FNotRexed\u002FHookshot\u002Fissues\u002F708), [#614](https:\u002F\u002Fgithub.com\u002FNotRexed\u002FHookshot\u002Fissues\u002F614)) |\n| Parts of the picture are missing, or a message says your card has no mesh shader support | The card or its driver has no mesh shaders. Update the driver; older cards are not supported ([#640](https:\u002F\u002Fgithub.com\u002FNotRexed\u002FHookshot\u002Fissues\u002F640)) |\n| Linux: the game does not start or the picture is broken | The game needs a Vulkan 1.3 driver with mesh shaders. Check with `vulkaninfo \\| grep mesh`: it should list `VK_EXT_mesh_shader`. Update Mesa or the NVIDIA driver |\n| \"Your antivirus removed part of the build tools\" | A false alarm on unsigned programs. Restore the files from Windows Security's Protection history, or add `%LOCALAPPDATA%\\HookshotBuilder` to its exclusions, then press **Repair** |\n| Stutter the first time you see something | Normal for now: shaders are being prepared. It gets better when you pass through the same place again |\n| The game is in the wrong language | Change the code in `language.txt` in the game folder. The file lists them all |\n\nIf the problem continues, [report it](https:\u002F\u002Fgithub.com\u002FNotRexed\u002FHookshot\u002Fissues\u002Fnew\u002Fchoose) with the version, where\nyou were in the game, your graphics card, `hookshot_log.txt` and a screenshot or video. Never send game files.\n\n## In-game menu\n\nPress \u003Ckbd>Insert\u003C\u002Fkbd> (or \u003Ckbd>F1\u003C\u002Fkbd>) in game, or on a controller the Home button (or Select and Start together).\nThe same keys close it, and so does \u003Ckbd>Esc\u003C\u002Fkbd>. The menu has three tabs, Graphics, Gameplay and Controls:\n\u003Ckbd>Q\u003C\u002Fkbd> and \u003Ckbd>E\u003C\u002Fkbd> (or \u003Ckbd>Tab\u003C\u002Fkbd> and \u003Ckbd>Shift\u003C\u002Fkbd>+\u003Ckbd>Tab\u003C\u002Fkbd>) switch between them, LB and RB on\na controller. \u003Ckbd>Up\u003C\u002Fkbd> and \u003Ckbd>Down\u003C\u002Fkbd> choose a row, \u003Ckbd>Left\u003C\u002Fkbd> and \u003Ckbd>Right\u003C\u002Fkbd> change it\n(\u003Ckbd>Enter\u003C\u002Fkbd> changes it too). On a controller the D-pad chooses and changes, the bottom face button changes too,\nand the right one closes the menu. Your choices are saved in `hookshot_options.ini` in the game folder.\n\n| Tab | Option | Choices | Default |\n|---|---|---|---|\n| Graphics | Quality preset | Custom, Minimum (4GB), Low (6GB), Balanced (8GB), High (12GB), Ultra (16GB+) | Custom |\n| | Fullscreen | Off, On (the same as \u003Ckbd>F11\u003C\u002Fkbd>) | Off |\n| | GPU device | Auto, or each graphics card by name (after a restart) | Auto |\n| | Frame generation | Off, 2x to 8x | Off |\n| | Frame pacing | Off, On | Off |\n| | Resolution | Auto (the game's own dynamic resolution), 100%, 75%, 67%, 50% (each with its size) | Auto |\n| | Output resolution | 2048x1152, 2560x1440, 3840x2160 (after a restart) | 2048x1152 |\n| | Upscaling | Off, Catmull-Rom, Lanczos | Off |\n| | Sharpness | 0 to 100%, in steps of 10 | 0% |\n| | Handheld profile | Off, On (after a restart) | Off |\n| | Ultrawide | 16:9, Monitor's shape (after a restart) | 16:9 |\n| | Robust buffers | Auto, Off, On (after a restart) | Auto |\n| Gameplay | FPS counter | Off, On | Off |\n| | Game speed | Per frame, Real time | Real time |\n| | Text speed | Normal, 2x, 4x, Instant | Normal |\n| Controls | Controller in background | Off, On | Off |\n| | Mouse camera | As the stick, Native | As the stick |\n| | Mouse sensitivity | 0.10 to 5.00 | 1.00 |\n| | Invert mouse vertical | Off, On | Off |\n| | Invert camera X | Off, On | Off |\n| | Invert camera Y | Off, On | Off |\n| | Layout preset | Nintendo (Def), Xbox \u002F PC, Swap Face, Custom | Nintendo (Def) |\n| | Controls | Opens the Controls page | |\n\n- **Quality preset** sets Resolution, Upscaling, Sharpness, Frame generation, Frame pacing, Game speed, Handheld\n  profile and the video memory limits for a card with that much memory. Changing most other rows yourself sets it back\n  to Custom.\n- **GPU device** matters on a PC with more than one graphics card (a laptop's integrated and dedicated GPUs, or a\n  second card for Lossless Scaling). Auto prefers a dedicated one, and only cards with Vulkan 1.3 are listed.\n  `hookshot_log.txt` lists every card as `vk: device \u003Cn>`; `RX_VK_DEVICE=\u003Cn>` chooses one for a single run and wins\n  over the menu.\n- **Frame generation** makes extra frames between the game's own. It adds a little input delay, and fast motion can\n  show artifacts. **Frame pacing** shows frames at an even interval: less stutter, up to one frame of delay.\n- **Output resolution** is the size of the game's whole frame, HUD included, before it is scaled to your window.\n  Resolution is a share of it, and its row shows the size for the output you chose. Docked only. At 3840x2160 the game's\n  render targets get a bigger GPU pool, so a full-size 3D fits. `HOS_OUTPUT_RES=0\u002F1\u002F2` sets it for one run.\n- **Upscaling** and **Sharpness** also work when Frame generation is Off.\n- **Handheld profile** runs the game as if the console were undocked: lower resolution, lighter on the GPU.\n- **Robust buffers:** a read past a buffer's end is dropped instead of stopping the GPU. Auto is on, on every card; Off\n  can be faster on some NVIDIA cards.\n- **Game speed:** with Per frame, the game runs slower whenever it is below 60 fps. Real time keeps it at normal speed\n  down to 15 fps.\n- **FPS counter** shows in the top right corner. With frame generation on, it also shows the game's own rate.\n- **Controller in background:** On keeps the controller working while another window has the focus. The keyboard and\n  mouse still need the game's window.\n- **Mouse camera:** Native turns the camera with the mouse one to one, as in a PC game. As the stick uses the mouse in\n  place of the right stick. The \u003Ckbd>-\u003C\u002Fkbd> and \u003Ckbd>=\u003C\u002Fkbd> keys change the sensitivity in game too.\n- **Layout preset:** Nintendo has A on the right face button, Xbox \u002F PC and Swap Face put A on the bottom one. Changing\n  a button yourself sets it to Custom.\n\n### Controls\n\nUse a controller, or the keyboard and mouse. On the keyboard, \u003Ckbd>W\u003C\u002Fkbd> \u003Ckbd>A\u003C\u002Fkbd> \u003Ckbd>S\u003C\u002Fkbd> \u003Ckbd>D\u003C\u002Fkbd> move\nand the arrow keys (or \u003Ckbd>I\u003C\u002Fkbd> \u003Ckbd>J\u003C\u002Fkbd> \u003Ckbd>K\u003C\u002Fkbd> \u003Ckbd>L\u003C\u002Fkbd>) turn the camera.\n\nTo change which gamepad button or key presses a Switch button, or which keys move and turn the camera, open the\nControls tab's Controls page. Choose a row and a column (Gamepad or Keyboard), press \u003Ckbd>Enter\u003C\u002Fkbd> (or the bottom\nface button), then the new button or key. \u003Ckbd>Esc\u003C\u002Fkbd> cancels, \u003Ckbd>Delete\u003C\u002Fkbd> clears it, and Reset to defaults\nputs them all back. A gamepad button taken from another Switch button swaps with it. The page saves them in\n`hookshot_options.ini`.\n\n\u003Cdetails>\n\u003Csummary>Writing the controls in hookshot_options.ini yourself\u003C\u002Fsummary>\n\n```ini\npad_a=0\nkey_a=69,13\n```\n\n`pad_\u003Cbutton>` is a gamepad input by position: 0 bottom face button, 1 right, 2 left, 3 top, 4 Select or Back, 5 Home,\n6 Start, 7 and 8 the stick presses, 9 and 10 the shoulder buttons, 11 to 14 the D-pad (up, down, left, right), 15 and\n16 the triggers, -1 none. `key_\u003Cbutton>` is one or two\n[Windows key codes](https:\u002F\u002Flearn.microsoft.com\u002Fwindows\u002Fwin32\u002Finputdev\u002Fvirtual-key-codes) in decimal (69 is\n\u003Ckbd>E\u003C\u002Fkbd>, 13 \u003Ckbd>Enter\u003C\u002Fkbd>), 0 none; the mouse's buttons are 1 (left), 2 (right), 4 (middle), 5 and 6 (side\nbuttons), and count while the mouse is captured. The buttons are `a` `b` `x` `y` `l` `r` `zl` `zr` `plus` `minus` `ls`\n`rs` `left` `up` `right` `down`, and for keys only the left stick's and the camera's directions: `move_up`\n`move_down` `move_left` `move_right` `cam_up` `cam_down` `cam_left` `cam_right`. A button the file leaves out keeps\nits default.\n\n\u003C\u002Fdetails>\n\n## Mods\n\nPut mods in a `mods` folder in the game folder, beside `hookshot.exe` (or point `HOS_MODS` at another folder), in the\nlayout emulators use: `mods\u002F\u003Cname>\u002Fromfs\u002F...` holds files that replace or add to the game's own. Deeper layouts such as\n`mods\u002Fcontents\u002F\u003Ctitle id>\u002F\u003Cname>\u002Fromfs` work too. A folder whose name starts with `-` or `_` is off. When two mods\nhave the same file, the one whose folder name sorts last wins, so name them `01-...`, `02-...` to set the order.\n\nOnly RomFS mods are loaded. `exefs` patches (`.pchtxt`, `.ips`) are left out: Hookshot compiles the game's code ahead\nof time, so patching its instructions would need a rebuild. The log (`hookshot_log.txt`) names each mod and the files\nread from it.\n\n## Build from source\n\nFor developers, and for players who prefer the command line. The builder windows run the same script,\n`nx2\u002Fmake_game.py`. [CONTRIBUTING.md](CONTRIBUTING.md) has more.\n\n\u003Cdetails>\n\u003Csummary>Windows, from the command line\u003C\u002Fsummary>\n\n```powershell\npython -I nx2\u002Fmake_game.py --nup \"C:\\path\\your-game.nup\" --out \"C:\\Games\\Hookshot\" --language en-US\npython -I nx2\u002Fmake_game.py --romfs \"C:\\path\\romfs\" --exefs \"C:\\path\\exefs\" --out \"C:\\Games\\Hookshot\" --language en-US\n```\n\nAdd `--check` with your `.nup` or `--exefs` to only check the game's version. It builds nothing.\nAdd `--log \"C:\\path\\build.log\"` to also save the build's output to a file (UTF-8, replaced if it exists); it works\nwith `--check` and `--update` too, and on Linux.\n`HOOKSHOT_JOBS=\u003Cn>` (or `--jobs \u003Cn>`) limits how many files compile at once.\n\nYou need:\n\n- Python 3 from python.org (the Microsoft Store's Python installs packages where `python -I` does not look), with\n  `pip install lz4 numpy capstone \"unicorn>=2.1,\u003C2.2\" zstandard`.\n- [llvm-mingw](https:\u002F\u002Fgithub.com\u002Fmstorsjo\u002Fllvm-mingw) (the `ucrt-x86_64` build), unpacked as `llvm-mingw` in the\n  clone or with `HOOKSHOT_MINGW` set to its folder. Without it the build uses the clang from\n  [emsdk](https:\u002F\u002Fgithub.com\u002Femscripten-core\u002Femsdk) at `C:\\emsdk` with Visual Studio's C++ tools and the Windows SDK\n  (`HOOKSHOT_MSVC=1` forces that route).\n- What the builder's `tools` folder carries and a clone does not. Run `HookshotBuilder.exe` once: the folder is\n  `%LOCALAPPDATA%\\HookshotBuilder\\versions\\\u003Cversion>\\HookshotBuilder\\tools`. The builder sets the variables itself;\n  from the command line, set them before you run `make_game.py`:\n  - `tools\\cpm`: the Vulkan headers and FFmpeg. Set `RX_CPM` to this folder. Without it the build leaves out\n    `hookshot_vk.dll`, the Vulkan renderer, and says nothing.\n  - `tools\\wgpu-native`: set `WGPU_NATIVE` to this folder.\n  - `tools\\third_party`: the prebuilt files a clone lacks (`a64emit`, `lld-link`, `zbic` and SDL2). Copy its `.dll`,\n    `.exe`, `.lib` and `.sha1` files to the same places under `third_party\\`.\n  - `tools\\work`: copy it to `work\\`. It holds the hot-function list, the link order, the profile and the icon;\n    without them the game builds but runs slower.\n- Visual Studio 2022 with .NET 8, only if you want to change the builder itself.\n\n\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>Linux, the AppImage from the command line\u003C\u002Fsummary>\n\n```sh\n.\u002FHookshot-\u003Cversion>-x86_64.AppImage --cli --nup ~\u002Fyour-game.nup --out ~\u002FGames\u002FHookshot   # make_game.py's options\n.\u002FHookshot-\u003Cversion>-x86_64.AppImage --play                    # the game the builder built last, without the window\n.\u002FHookshot-\u003Cversion>-x86_64.AppImage --play ~\u002FGames\u002FHookshot   # the game in that folder\n.\u002FHookshot-\u003Cversion>-x86_64.AppImage --update ~\u002FGames\u002FHookshot # the new release, and that folder built again\n```\n\n`HOOKSHOT_JOBS=\u003Cn>` (or `--jobs \u003Cn>` with `--cli`) limits how many files compile at once.\n\nIn a game folder, `hookshot` is the launcher and the game itself is `bin\u002Fhookshot`. The builder's settings are in\n`~\u002F.config\u002Fhookshot\u002Fbuilder.ini`.\n\n\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>Linux, without the AppImage\u003C\u002Fsummary>\n\nYou need `clang` and `lld` (LLVM 23 or newer reads the play profile; an older one builds without it), Python 3 with\n`lz4`, `numpy`, `capstone`, `unicorn` and `zstandard`, FFmpeg's development files (with dav1d, for the movies) and\nSDL3 (SDL2 works too). Then run `python -I nx2\u002Fmake_game.py ...` as on Windows, with `RX_CPM` pointing at a folder with Vulkan-Headers,\nSPIRV-Headers and VulkanMemoryAllocator in CPM's layout.\n\n`scripts\u002Flinux\u002Fdeps.sh` fetches and builds all of these into `build-linux\u002Fdeps`, and `scripts\u002Flinux\u002Fappimage.sh` makes\nthe AppImage from them. A folder built from a source checkout has no launcher: `hookshot` there is the game.\n\n\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>The Windows game, built on Linux\u003C\u002Fsummary>\n\nUnpack llvm-mingw's Linux build (`ucrt-ubuntu-22.04-x86_64`), then run `make_game.py` with `RX_TARGET=windows` and\n`HOOKSHOT_MINGW` set to its folder. The objects go to `~\u002F.cache\u002Fhookshot-builder-windows`, apart from the Linux game's.\nThe game folder runs under Proton or on Windows.\n\n\u003C\u002Fdetails>\n\n### Running the game from the command line\n\nThe built game is `bin\\hookshot.exe` on Windows and `bin\u002Fhookshot` in a packaged Linux game folder. A build from a\nsource checkout has `hookshot.exe` or `hookshot` in its build folder, with no launcher beside it. The `hookshot.exe`\nor `hookshot` launcher in the game folder does not pass these arguments to the game, so start the game directly to\nuse them.\n\n| Argument | What it does |\n|---|---|\n| `image.bin` | The game image to run. Without it the game uses the `image.bin`, `romfs` and `user` in its folder |\n| `--romfs \u003Cfolder>` | The extracted RomFS folder |\n| `--user \u003Cfolder>` | Where the game keeps per-user data: saves, caches, temp files and `mouse_sens.txt`. Default: `user` in the game folder on Windows, `~\u002F.local\u002Fshare\u002Fhookshot` on Linux; with an explicit image path, `user` in the current folder |\n| `--trace` | Log every Horizon OS call (the same as `HOS_TRACE=1`) |\n| `--prepare-shaders` | Prepare the shaders and exit without starting the game (the build's last step) |\n\nFor example, keep saves somewhere else:\n\n```powershell\ncd \"C:\\Games\\Hookshot\"\n.\\bin\\hookshot.exe --user \"D:\\Hookshot data\"\n```\n\n```sh\ncd ~\u002FGames\u002FHookshot\n.\u002Fbin\u002Fhookshot --user \"$HOME\u002Fhookshot-data\"\n```\n\n`hookshot_env.txt` and the other test switches are documented below.\n\n\u003Cdetails>\n\u003Csummary>Switches for testing (hookshot_env.txt)\u003C\u002Fsummary>\n\nSwitches to test (`RX_VK_NOOPT=1` and the others) go in `hookshot_env.txt` in the game folder, one `NAME=VALUE` a\nline, on Windows and Linux. The running game reads it, not the builder. A test run can name another file with\n`HOS_ENV_FILE=\u003Cpath>`; the game then reads that one instead and leaves `hookshot_env.txt` alone.\n\nFor a first run on a 4 GB card such as a GTX 1650, `RX_VK_LOW_SPEC=1` starts with the Minimum (4GB) preset, with\nframe generation and upscaling off. It applies only when there is no `hookshot_options.ini` yet; after that, change\nthe settings in the in-game menu.\n\n`RX_VK_MOVIE_UPSCALE=linear` replaces the movies' neural upscale with the plain linear one. The default, `auto`, keeps\nthe networks and falls back only when a movie frame takes the GPU more than 40 ms. It does not change the gameplay\nupscaler, and movies can look softer. `RX_VK_NETWORK_KEEP=all` takes precedence and keeps the movie networks.\n\n\u003C\u002Fdetails>\n\n## How it works\n\n1. `nx2\u002Flift.py` translates the game's ARM64 code to C.\n2. `nx2\u002Fbuild.py` compiles that C together with `host\u002F`, which plays the part of the console's system.\n3. `host\u002Fnvn_native.c` records the game's NVN2 graphics calls, and `gpu\u002Fvk\u002F` replays them on Vulkan.\n4. Switch 2 Ampere shaders are lowered to Maxwell (`lower_to_maxwell.h`) and translated to SPIR-V by Eden's shader\n   recompiler.\n\nMore detail is in the [development guide](docs\u002Fdevelopment.md) and the [design notes](docs\u002Fdesign.md).\n\n## Want to help?\n\nTesting on other graphics cards and reporting the result already helps a lot, and so does playing further into the\ngame than anyone has yet.\n\nBigger ways to help:\n\n- **Linux testing.** The Linux build (`host\u002Fposix`) has been tested on several distributions and cards: reports from\n  others still help.\n- **Fixes in your own fork.** Fork the project, fix what you find and send the change back. Keep game files, keys and\n  anything generated from your game out of it.\n\n[CONTRIBUTING.md](CONTRIBUTING.md) has the setup, the test commands, the code conventions and what a good pull request\nlooks like.\n\n## Credits\n\nHookshot exists thanks to the work of many people:\n\n- **NotRexed**: Hookshot, BlueShell (Mario Kart World), Skybound (Tears of the Kingdom) and the a64-kit tools.\n- **[Eden](https:\u002F\u002Fgit.eden-emu.dev\u002Feden-emu\u002Feden)** and **Eglantine**: the shader recompiler and Switch 2 shader work.\n- **suyu**: the graphics decoders and the AArch64 translator.\n- **[seedds\u002Fnxnative](https:\u002F\u002Fgithub.com\u002Fseedds\u002Fnxnative)**: reference for how task and mesh shaders work.\n- **[EvilBoyce \u002F evilmfkr](https:\u002F\u002Fgithub.com\u002Fevilmfkr\u002FHookshot)** (EvilOOT): the GPU culling that brings back Kokiri's foliage\n  (trees, ferns, grass, falling leaves, fireflies), the ambient light probes, the pond's water, the game's own fog, the freeze\n  after Load (Horizon's mutex handoff) and the exposure flicker fix.\n- **[zortos293\u002FLichii](https:\u002F\u002Fgithub.com\u002Fzortos293\u002FLichii)**: reference for Ampere shader lowering, and its compare-exchange retry fix.\n- **[mstorsjo\u002Fllvm-mingw](https:\u002F\u002Fgithub.com\u002Fmstorsjo\u002Fllvm-mingw)**: the bundled Windows compiler (no Visual Studio needed).\n- **[kinnay\u002Fzbic](https:\u002F\u002Fgithub.com\u002Fkinnay\u002Fzbic)**, **Opus** and **SDL**: decompression, audio and controllers.\n- **[sostenesfreitas\u002Focarina-recomp](https:\u002F\u002Fgithub.com\u002Fsostenesfreitas\u002Focarina-recomp)**: this README's layout, and its notes\n  confirmed the mesh stage's control section.\n- **[MythosOfs\u002FOrchid](https:\u002F\u002Fgithub.com\u002FMythosOfs\u002FOrchid)**: the fog and exposure workaround for Ocarina of Time.\n- **Mesa (NAK)**: the reference for Ampere's instruction encoding.\n- Everyone who sent fixes: SkippySteve (Linux and the AppImage, and many more), monsterlag, klimovich008, hckrman101 (the\n  exposure flicker and fog fixes, build speed, CI), shayderrr, gab9281, Wpaif, nicholasgower, ZurielAtr, Joey-Magnus, Zorkats,\n  d3zessete, chrispository, vzeol, leonidasmark, Segmentree, ShyVortex, hiKareeem and i900gaming, among others.\n\n## License\n\nHookshot is free software under the [GNU General Public License, version 3 or later](LICENSE) (GPL-3.0-or-later).\nIt includes code from Eden, suyu and Orchid, which are under the GPL too. Third-party parts under other licenses that\nwork with the GPL (Sirit, the Vulkan Memory Allocator, SDL, Opus, stb, zbic and the a64-kit tools) keep their own notices\nin their folders.\n\nHookshot is an unofficial fan project, not affiliated with or endorsed by Nintendo. The Legend of Zelda and Ocarina of\nTime are trademarks of Nintendo.\n","Hookshot 是一个将《塞尔达传说：时之笛》Nintendo Switch 2 版本静态重编译为原生 Windows\u002FLinux 程序的开源项目，不依赖模拟器。它通过将游戏原始代码翻译为 C 语言、重实现主机系统软件，并基于 Vulkan 重建图形渲染管线，在本地 PC 上运行用户自有游戏镜像。核心特点包括零模拟开销、本地化构建（所有输出文件如 hookshot.exe、着色器缓存、存档均源自用户本地游戏）、支持键盘\u002F手柄\u002F音频\u002F动态分辨率与帧生成。适用于希望在 PC 上以高兼容性、低延迟方式运行该版本《时之笛》的玩家和技术爱好者，当前处于实验阶段，已覆盖初期区域并持续修复图形与稳定性问题。",2,"2026-11-13 04:37:28","CREATED_QUERY"]