[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-110120":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":15,"stars7d":16,"stars30d":17,"stars90d":15,"forks30d":15,"starsTrendScore":18,"compositeScore":19,"rankGlobal":9,"rankLanguage":9,"license":20,"archived":21,"fork":21,"defaultBranch":22,"hasWiki":23,"hasPages":21,"topics":24,"createdAt":9,"pushedAt":25,"updatedAt":26,"readmeContent":27,"aiSummary":28,"trendingCount":15,"starSnapshotCount":15,"syncStatus":13,"lastSyncTime":29,"discoverSource":30},110120,"SwitchRECOMP","SwitchRECOMP-Dev\u002FSwitchRECOMP","SwitchRECOMP-Dev","Static recompiler for Nintendo Switch games. Translates the game's ARM64 code to C once and compiles it to a native Windows or Linux program, with an OpenGL renderer and an optional Vulkan one. No games, keys or firmware included.",null,"C",214,18,2,4,0,8,67,1,54.54,"GNU Affero General Public License v3.0",false,"main",true,[],"2026-11-08 15:29:31","2026-11-23 02:56:47","# SwitchRecomp\n\nStatic recompiler for Nintendo Switch games, by MZ Labs. The game code (ExeFS) is translated from ARM64 to C once\nand compiled into a native module. A C runtime emulates the Horizon OS services and the Maxwell GPU, with an OpenGL\nrenderer and an optional Vulkan renderer on Windows. The game data (RomFS) is read as it is.\n\nThis repository has the source only. No games, keys or firmware are included, and none are downloaded.\n\nPlayer manual (recompiling a game, controls, `.ini` options): `README.txt`.\nCode layout, logs, F5 traces and code style: `DEVELOPER_GUIDE.md`.\nChanges: `CHANGELOG_v190.txt`.\n\n## Layout\n\n| Path | Contents |\n| --- | --- |\n| `switchrecomp.py`, `a64.py`, `codegen.py`, `nxloader.py`, `brt.py`, `tools_sym.py` | The recompiler (Python 3) |\n| `runtime\u002F` | The runtime (C): kernel, IPC, services, GPU, audio, video, window backends |\n| `runtime\u002Fsnxvk\u002F` | The optional Vulkan renderer (GPL-3.0, see `runtime\u002Fsnxvk\u002FREADME.txt`) |\n| `tool\u002F` | The GUI (`SwitchRecomp.exe`), `Install.bat` \u002F `Install.sh` helpers, `get_deps.py` |\n| `tests\u002F` | Unit and regression tests (`REGRESSION.md`) |\n\n## Building\n\n### Requirements (Linux, Debian\u002FUbuntu names)\n\n```sh\nsudo apt install build-essential python3 libsdl2-dev libx11-dev libgl-dev libegl-dev \\\n    mingw-w64 gcc-mingw-w64-x86-64-win32\n```\n\nThe Windows builds are cross-compiled with the win32 thread model variant of `x86_64-w64-mingw32-gcc`.\n\n### Runtimes\n\nFrom the repository root:\n\n```sh\npython3 switchrecomp.py --build-runtime --target win64 --backend win32    --cc x86_64-w64-mingw32-gcc\npython3 switchrecomp.py --build-runtime --target win64 --backend headless --cc x86_64-w64-mingw32-gcc\npython3 switchrecomp.py --build-runtime --target linux --backend x11      --cc gcc\npython3 switchrecomp.py --build-runtime --target linux --backend headless --cc gcc\n```\n\nThe results go to `bin\u002F`.\n\n### GUI\n\n```sh\ntool\u002Fbuild_tool.sh SwitchRecomp.exe        # Windows, cross-built\ntool\u002Fbuild_tool_linux.sh SwitchRecomp.bin  # Linux\n```\n\nThe Windows GUI links SDL2 2.30.9, SDL2_ttf 2.22.0 and SDL2_image 2.8.2 statically. It expects their mingw devel\npackages unpacked in `tool\u002Fdeps\u002F` (`SDL2-devel-2.30.9-mingw`, `SDL2_ttf-devel-2.22.0-mingw`,\n`SDL2_image-devel-2.8.2-mingw`, from the libsdl-org GitHub releases), or in the folder named by `SDLW`.\n\n### Optional libraries\n\nThe runtime builds without any of these. Each one adds a feature when its static library is in place:\n\n| File | Adds | Source |\n| --- | --- | --- |\n| `runtime\u002Foh264\u002Fwin\u002Flibdecoder.a`, `libcommon.a` (or `\u003Cos>\u002Flibopenh264.a`) | H.264 game videos | OpenH264 (BSD-2), headers in `runtime\u002Foh264\u002Finclude` |\n| `runtime\u002Fopus\u002F\u003Cos>\u002Flibopus.a` | Opus audio | libopus (BSD-3), headers in `runtime\u002Fopus\u002Finclude` |\n| `runtime\u002Fvp9\u002F\u003Cos>\u002Flibvpx.a` | VP9 WebM movies | libvpx 1.14.0, build steps in `runtime\u002Fvp9\u002Fwin\u002FREADME.md` and `runtime\u002Fvp9\u002Flin\u002FREADME.md` |\n| `runtime\u002Fspvc\u002F\u003Cos>\u002Flibspvc.a` | LSFG frame generation | SPIRV-Cross (Apache-2.0), headers in `runtime\u002Fspvc` |\n| `runtime\u002Fsnxvk\u002Flibsnxvk.a` | Vulkan renderer (Windows) | `runtime\u002Fsnxvk\u002Fsrc`, built by `runtime\u002Fsnxvk\u002Fbuild_lib.py` |\n\n`\u003Cos>` is `win` or `lin`. `SWR_NO_SNXVK=1` builds the Windows runtime without the Vulkan renderer even when the\nlibrary is there.\n\n## Recompiling a game\n\n```sh\npython3 switchrecomp.py \u002Fpath\u002Fto\u002Fgame -o MyGame\n```\n\n`\u002Fpath\u002Fto\u002Fgame` holds the `exefs\u002F` and `romfs\u002F` folders extracted from a legally owned copy. `README.txt` has the\nfull steps and the options.\n\n## License\n\nSwitchRecomp is under the GNU AGPL v3 (`LICENSE.txt`) with the additional terms in `NOTICE.txt`: copies, forks and\nderived works keep the credit to \"SwitchRecomp by MZ Labs\" and the startup screen. The Vulkan renderer in\n`runtime\u002Fsnxvk` is GPL-3.0-or-later, and a runtime built with it is a GPL-3.0 work. Third-party components keep\ntheir own licenses, listed at the end of `README.txt`.\n","SwitchRECOMP 是一个针对任天堂 Switch 游戏的静态重编译器，将游戏 ARM64 二进制代码一次性翻译为 C 源码，并编译为可在 Windows 或 Linux 原生运行的可执行程序。核心功能包括 Horizon OS 系统服务模拟、Maxwell 架构 GPU 模拟、OpenGL 渲染器（支持可选 Vulkan 后端），以及对 RomFS 游戏数据的直接读取。项目采用 Python 实现重编译流程，C 编写运行时，不依赖动态翻译或模拟器循环，强调确定性与可调试性。适用于逆向研究、游戏兼容性分析、教学演示及轻量级本地化运行验证等场景。","2026-11-24 04:38:10","CREATED_QUERY"]