[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-113418":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":14,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":16,"stars7d":17,"stars30d":18,"stars90d":15,"forks30d":15,"starsTrendScore":19,"compositeScore":20,"rankGlobal":9,"rankLanguage":9,"license":21,"archived":22,"fork":22,"defaultBranch":23,"hasWiki":22,"hasPages":22,"topics":24,"createdAt":9,"pushedAt":31,"updatedAt":32,"readmeContent":33,"aiSummary":34,"trendingCount":15,"starSnapshotCount":15,"syncStatus":35,"lastSyncTime":36,"discoverSource":37},113418,"HookLink","dsi-hub\u002FHookLink","dsi-hub","The Legend of Zelda: Ocarina of Time (Switch 2 Edition) on iPhone, built on your Mac from your own copy of the game",null,"Swift",156,18,1,9,0,3,38,48,14,73.64,"MIT License",false,"main",[25,26,27,28,29,30],"ios","iphone","macos","nxnative","ocarina-of-time","static-recompilation","2026-11-23 01:55:41","2026-11-22 21:22:45","\u003Cp align=\"center\">\u003Cimg src=\"docs\u002Ficon.png\" width=\"128\" alt=\"HookLink icon\">\u003C\u002Fp>\n\n\u003Ch1 align=\"center\">HookLink\u003C\u002Fh1>\n\n\u003Cp align=\"center\">\u003Cb>The Legend of Zelda: Ocarina of Time (Nintendo Switch 2 Edition) on your iPhone, natively, built on your Mac from your own copy of the game.\u003C\u002Fb>\u003C\u002Fp>\n\n\u003Cp align=\"center\">\n\u003Ca href=\"#project-status\">Status\u003C\u002Fa> · \u003Ca href=\"#how-to-build\">How to build\u003C\u002Fa> · \u003Ca href=\"#installing-and-copying-the-game\">Install\u003C\u002Fa> · \u003Ca href=\"#updating\">Updating\u003C\u002Fa> · \u003Ca href=\"#what-hookLink-tunes-for-the-iphone\">What it tunes\u003C\u002Fa> · \u003Ca href=\"#if-something-goes-wrong\">Problems\u003C\u002Fa> · \u003Ca href=\"#want-to-help\">Help\u003C\u002Fa> · \u003Ca href=\"#credits\">Credits\u003C\u002Fa> · \u003Ca href=\"#license\">License\u003C\u002Fa>\n\u003C\u002Fp>\n\nDiscord: https:\u002F\u002Fdiscord.gg\u002FbSrN5kEScg\n\nHookLink is a Mac app that turns your own dump of Ocarina of Time into an iPhone app. It runs [nxnative](https:\u002F\u002Fgithub.com\u002Fseedds\u002Fnxnative), which translates the game's code and its graphics to Apple's Metal, with changes made and tested for this one game on the iPhone: faster pipeline loading, memory fixes, real-time game speed below 60 fps, and a resolution tuned for the phone. No emulator is involved.\n\n> [!IMPORTANT]\n> This repository does not contain the game, keys or a built app, and it does not explain how to get them. You need your own copy. Everything HookLink makes (the IPA, the game files on your phone, the shader caches and your saves) comes from your game and stays on your Mac and your phone. **Never share those files.**\n\n## Project status\n\n**Experimental.** Tested on one iPhone (iPhone 18 Pro Max, iOS 27.2), built on one Mac.\n\n| What | Status |\n|---|---|\n| Kokiri Forest, Hyrule Field, Castle Town | ✅ Plays |\n| Sound, touch controls, controllers, saves | ✅ Works |\n| Frame rate | ✅ 60 fps is the default again (1.8.5). 30 fps + frame generation looks like 60 and runs cooler. ⚠️ Busy areas can still dip |\n| Stutter the first time you enter an area | ⚠️ Happens once; the next start prepares that area |\n| First start after installing | ⚠️ Long \"Preparing shaders\" screen, a few minutes, once |\n| iPhone 17 family (A19) | ✅ Runs on a 17 Pro (tested by a player): 30 fps + frame generation recommended |\n| iPhone 16 Pro \u002F 16 Pro Max (A18 Pro) | ❓ Not tested yet; 8 GB of memory, so the game may close in busy areas |\n| Mac (This Mac) | ❓ New in 1.8 and not tested yet |\n| Older iPhones | ❌ Not supported (memory and graphics) |\n\n## How to build\n\n### With the HookLink app (the easy way)\n\n1. Download **HookLink.zip** from the [Releases](..\u002F..\u002Freleases) page and unzip it.\n2. Open **HookLink.app**. The first time, macOS says it can't check it for malware (it isn't from the App Store or notarized): open **System Settings → Privacy & Security**, scroll down, click **Open Anyway**, then open HookLink again.\n3. Follow the steps in the window:\n   1. **Check your Mac**: HookLink finds what's missing and installs most of it for you.\n   2. **Choose your game**: drop your `.nup` file in.\n   3. **Choose device**: your iPhone model, or **This Mac** to build a Mac app (new, not tested yet).\n   4. **Build**: a few hours the first time. You can keep using your Mac.\n   5. **Install** the IPA with your sideloading tool.\n   6. **Copy game files**: plug in your iPhone and click one button (or use Finder, if the cable copy keeps stopping).\n   7. **Play.**\n\n### How long it takes\n\n| Step | First time | Later builds |\n|---|---|---|\n| Check your Mac and install tools | 5–20 min (plus Xcode's own download, if you need it) | Seconds |\n| Build, step 1–3 (unpack, rewrite, split shaders) | ~10 min | ~5 min |\n| Build, step 4 (iOS shaders) | ~1 h 10 min. Part of it shows no percentage for 10+ minutes while it checks the shader cache: that's normal | Minutes, unless an update changes the shaders |\n| Build, step 5 (app and GPU pipeline archive) | ~45 min | Minutes |\n| Build, step 6 (pack the IPA) | ~5 min | ~5 min |\n| Copy game files to the phone | 10–25 min | Not needed again |\n| First start of the game (\"Preparing shaders\") | A few minutes, once | Seconds |\n\n### What you need\n\n- A Mac with Apple silicon, macOS 26.6 or later.\n- [Xcode 27.2](https:\u002F\u002Fdeveloper.apple.com\u002Fdownload\u002Fall\u002F?q=Xcode%2027.2), opened once, with the iOS platform (Xcode → Settings → Components).\n- [Homebrew](https:\u002F\u002Fbrew.sh).\n- About **80 GB free** while building. The build folder keeps about 70 GB afterwards so later builds are fast; see [Disk space](#disk-space).\n- Your game: program `0400486024DEC000`, update `v131072`, as a `.nup`. Other versions don't work.\n- An iPhone 18 Pro \u002F Pro Max (tested), an iPhone 17 model (played by a tester) or an iPhone 16 Pro \u002F Pro Max (untested), with **Developer Mode** on, and a cable. Or build for your Mac instead (untested).\n- A sideloading tool such as iLoader, Sideloadly or AltStore.\n\n### From the command line\n\nHookLink runs nxnative's packing script with its own settings. With nxnative (HookLink's branch) checked out:\n\n```bash\nDM_ENTITLEMENTS=\"$PWD\u002F..\u002FHookLink\u002FResources\u002Fpresets\u002Fentitlements.plist\" \\\npython3 -I scripts\u002Fbuild_ipa_from_nsp.py \"\u002Fpath\u002Fto\u002Fyour-game.nup\" \\\n  --platform ios --romfs separate --allow-damaged --gpu g19p \\\n  --env-file ..\u002FHookLink\u002FResources\u002Fpresets\u002Fiphone.env \\\n  -o ~\u002FHookLink\u002FHookLink-OcarinaOfTime.ipa\n```\n\nUse `--gpu g18p` for an iPhone 17 model.\n\n## Installing and copying the game\n\nThe IPA holds the app, its shaders and its GPU pipeline archive (about 5 GB). The game's own files (about 24 GB) are copied to the phone separately, once:\n\n1. Install the IPA with your sideloading tool. Turn on **Increased Memory Limit** if it offers it.\n2. Don't open the game yet.\n3. In HookLink, **Copy game files**: set **Auto-Lock → Never** on the phone, plug it in, unlock it, tap **Trust**, then click the button. HookLink copies the game files and the iPhone resolution file made from your game, then checks them.\n4. Open the game.\n\n**If the cable copy keeps stopping**, click **Copy with Finder instead**. HookLink shows the file in Finder; drag it onto the game in your iPhone's **Files** tab in Finder, wait for Finder to finish, then click **Finder is done: check and finish**. HookLink checks the game files arrived whole and does the rest.\n\n## Your saves\n\nYour saves live only on your iPhone, inside the game. HookLink can keep copies on your Mac:\n\n- **Play → Back up my saves** copies them to `Documents\u002FHookLink Save Backups\u002F\u003Cdate>` on the Mac.\n- HookLink also backs them up **by itself before copying game files** to the phone.\n- **Play → Restore a backup…** puts a backup back on the phone (close the game first). What's on the phone is backed up first, and every file is checked after copying.\n\n**Never delete the game from your phone to reinstall it:** that deletes its saves. Install the new version over the old one instead, and back up first to be safe.\n\n## Updating\n\nHookLink checks for updates every time you open it (and from **HookLink → Check for Updates…**):\n\n- **A game update** (performance and fixes): click **Update and rebuild**, then build again. Small updates rebuild in minutes; updates that change the shaders take a few hours. Install the new IPA over the old one: your saves, game files and resolution file stay on the phone, so there's nothing to copy again.\n- **A new HookLink version**: download it from the Releases page and replace the old app.\n\n## What HookLink tunes for the iPhone\n\n- **Pipelines:** a draw waiting for its pipeline no longer repeats failed archive searches every frame. Each pipeline the game asks for is listed for the next start, which builds them all behind the loading screen.\n- **First starts:** the app ships with a list of the pipelines recorded while playing Kokiri Forest, Hyrule Field, Castle Town and Hyrule Castle, so those areas are prepared before the game starts instead of stuttering. Players' shared lists extend it with every update.\n- **GPU:** nxnative's latest work for this game: occlusion tests that let hidden grass be skipped, faster mesh-shader loads (the foliage), no 2 ms GPU wait each frame, faster shader math, and the mist without dark specks.\n- **Mesh shaders:** the foliage, shadow and enemy shaders are prepared before the game starts and saved, instead of freezing the game the first time each one is drawn.\n- **Frame pacing:** the thread that sends each frame to the GPU always runs in iOS's top class, so the busy areas run on the fast cores.\n- **Memory:** freed render targets' memory is reused for the next one, and textures of scenes you've left are retired when memory runs short (fixes the freeze after the talk with Saria). The game gets 8 GB of address space on the phone, which it needs from the Master Sword on (fixes the white screen there).\n- **Game speed:** the game moves at real speed even when a frame runs long, without dropping to 30 fps.\n- **Resolution:** the handheld dynamic resolution ranges from 1080×608 down to 640×360 on the phone, made from your own game files.\n- **Controls:** a glass look on every on-screen layout, and a Mobile layout with a floating stick, glass buttons and a D-pad (inspired by cheemu21's kid-with-sword; from the [kid-with-sword fork](https:\u002F\u002Fgithub.com\u002Fednofedulo\u002Fkid-with-sword-remake-detached-20261108) of nxnative).\n- **Wide view (experimental):** an optional launcher setting that fills an iPhone screen with a wider 3D view. The HUD and menus are still stretched, and it runs slower (from nxnative pull request 1460 by vladbondarenko97).\n- **Settings:** thread priorities, no 30 fps hold, no 30 fps thermal cap.\n\n## Disk space\n\nHookLink keeps its build folder (the folder you chose, about 70 GB) so later builds take minutes instead of hours.\n\n| Safe to delete | Don't delete (costs a long rebuild) |\n|---|---|\n| Old IPAs you no longer need | `build\u002Fshader` (the shader cache: over an hour to rebuild) |\n| `copy-to-phone` (only a link to your game files, no extra space) | `build\u002Fipa` (holds the GPU pipeline archive: about 45 minutes to rebuild) |\n| | `build\u002Fextract` (your game, unpacked) |\n\nTo remove HookLink completely, delete the app, the build folder, and `~\u002FLibrary\u002FApplication Support\u002FHookLink`.\n\n## If something goes wrong\n\n| Problem | What to do |\n|---|---|\n| HookLink says the game isn't supported | Check it's the Switch 2 Edition with update v131072, as a `.nup` |\n| The build seems stuck | Look at the progress card's timer and its last line: some steps go quiet for 10+ minutes. Stopped for over an hour? Click **Show details** |\n| The game file copy stops part way | Set Auto-Lock to Never and keep the phone unlocked; if it still stops, use **Copy with Finder instead** |\n| The build stops | Click **Show details** and look at the last lines. Free disk space and Xcode 27.2 are the usual causes |\n| \"No iPhone found\" | Use a cable, unlock the phone, tap Trust, turn on Developer Mode |\n| \"The game is not installed on this iPhone\" | Install the IPA first, then click **Find my iPhone** again |\n| The game closes at start | Copy the game files again from HookLink; make sure Increased Memory Limit is on |\n| Stutter the first time somewhere | Normal: the next start prepares that area |\n| The first session after installing runs slowly | Close the game fully (swipe it away) and open it again: the next start runs at full speed |\n| \"The build needs Xcode 27.2's Metal compiler\" | Install Xcode 27.2 and select it (`sudo xcode-select -s \u002FApplications\u002FXcode.app`), then build again |\n\nStill stuck? Click **Get game log** on HookLink's last step, then [open an issue](..\u002F..\u002Fissues) or ask on [Discord](https:\u002F\u002Fdiscord.gg\u002FbSrN5kEScg) with your iPhone model, iOS version, where you were in the game and what happened. A screenshot or video helps. **Never attach game files.**\n\n## Want to help?\n\n- **Test on another iPhone**, especially an iPhone 17 model, and report how it runs.\n- **Play further** than anyone has, and report what breaks.\n- **Share your pipeline list**: in HookLink, **Play → Share my pipeline list**. Lists from different players are merged into the next update, so everyone's game prepares more of the world ahead of time and stutters less.\n- **Send a fix**: see [CONTRIBUTING.md](CONTRIBUTING.md).\n\n## Credits\n\n- **[nxnative](https:\u002F\u002Fgithub.com\u002Fseedds\u002Fnxnative)** by seedds and its contributors: the engine HookLink runs, which translates the game to native code and Metal.\n- **[PromethOps](https:\u002F\u002Fgithub.com\u002FPromethOps)**: [nxnative PR #1455](https:\u002F\u002Fgithub.com\u002Fseedds\u002Fnxnative\u002Fpull\u002F1455), unused textures are retired when GPU memory runs short (the freeze after the talk with Saria).\n- **[LeonardoBai12](https:\u002F\u002Fgithub.com\u002FLeonardoBai12)**: [nxnative PR #1543](https:\u002F\u002Fgithub.com\u002Fseedds\u002Fnxnative\u002Fpull\u002F1543), the game keeps real speed below 60 fps.\n- **[vladbondarenko97](https:\u002F\u002Fgithub.com\u002Fvladbondarenko97)**: [nxnative PR #1460](https:\u002F\u002Fgithub.com\u002Fseedds\u002Fnxnative\u002Fpull\u002F1460), the code locations behind Wide view.\n- **[oliverames](https:\u002F\u002Fgithub.com\u002Foliverames)**: tested the engine on an iPhone Duo, and found and fixed the game running fast below 60 fps ([issue #1](https:\u002F\u002Fgithub.com\u002Fdsi-hub\u002FHookLink\u002Fissues\u002F1)).\n- **gunvalk**: found that the game's frame step ignores the frame's time (zortos293\u002FLichii PR #216), the basis of the real-speed fix.\n- **[cheemu21](https:\u002F\u002Fgithub.com\u002Fcheemu21)**, creator of kid-with-sword ([kid-with-sword-remake](https:\u002F\u002Fgithub.com\u002Fcheemu21\u002Fkid-with-sword-remake)): inspired HookLink's touch controls, the glass look and the Mobile layout; the steady 30 fps mode and frame generation in 1.8 come from that fork, and so does the 8 GB memory layout that also fixes the Master Sword.\n- **The fork's other contributors**, whose work is in those pieces: ednofedulo, ChiefSZ13 (the game's profile and bring-up), Pedro Nascimento (lunks), Xipzer, nanotchec, Adrian Smith, Romen Adama Caetano Ramírez, Travis (travislikestocode), uncraftablexd, mmkzer0, Nimesh Ambepitiya, MetaIX, TheGoldfish11, David Padron-Harris, zatteogit, tut, and the author of the oot2 branch.\n- **[Tyuv97G](https:\u002F\u002Fgithub.com\u002FTyuv97G)**: tested the engine on an iPhone 17 Pro and found the slowdown that the 30 fps steady mode answers ([issue #3](https:\u002F\u002Fgithub.com\u002Fdsi-hub\u002FHookLink\u002Fissues\u002F3)).\n- **[cshess](https:\u002F\u002Fgithub.com\u002Fcshess)**: offered iPhone Duo testing and reported the third-party signer problem ([issue #1](https:\u002F\u002Fgithub.com\u002Fdsi-hub\u002FHookLink\u002Fissues\u002F1)).\n- **[HookShot](https:\u002F\u002Fgithub.com\u002FNotRexed\u002FHookshot)** by NotRexed: inspired HookLink's name and the idea of frame generation.\n\n## License\n\nHookLink is free software under the [MIT License](LICENSE). It builds on nxnative, also MIT; its notice is kept in [NOTICE.md](NOTICE.md).\n\nHookLink is an unofficial fan project, not affiliated with or endorsed by Nintendo. The Legend of Zelda and Ocarina of Time are trademarks of Nintendo.\n","HookLink 是一个 macOS 应用，用于将用户本地持有的《塞尔达传说：时之笛》Nintendo Switch 版游戏文件（.nup）静态重编译为可在 iPhone 上原生运行的 iOS 应用（IPA）。项目基于 nxnative 框架，通过 Metal 图形后端实现指令与渲染层转换，不依赖模拟器；支持针对 iPhone 屏幕和性能优化的分辨率适配、内存管理改进、帧率控制（30\u002F60 fps 可选）及触控输入。适用于拥有合法游戏备份、熟悉本地开发流程、追求原生性能体验的 iOS 游戏移植爱好者。",2,"2026-11-24 04:45:49","CREATED_QUERY"]