[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-107995":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":33,"updatedAt":34,"readmeContent":35,"aiSummary":36,"trendingCount":15,"starSnapshotCount":15,"syncStatus":13,"lastSyncTime":37,"discoverSource":38},107995,"smo-recomp","Coz-0\u002Fsmo-recomp","Coz-0","Static recompilation of Super Mario Odyssey (Switch, 1.4.1) to native Windows x64. No game data included; bring your own dump.",null,"C",104,13,2,4,0,8,48,1,52.24,"GNU General Public License v3.0",false,"main",true,[25,26,27,28,29,30,31,32],"aarch64","decompilation-tools","nintendo-switch","preservation","recompilation","static-recompilation","super-mario-odyssey","vulkan","2026-10-28 14:40:14","2026-11-23 10:13:36","# smo-recomp\n\nA native Windows x64 version of *Super Mario Odyssey* (1.4.1), made by **static recompilation** of the Nintendo\nSwitch game, with its own runtime and a Vulkan renderer.\n\nIt is **not an emulator**: there is no CPU interpreter and no JIT, and no console firmware runs. The game's AArch64\nmachine code is translated to C ahead of time and compiled for the PC; the system libraries, graphics API, audio,\nvideo, input and file system the game uses are re-implemented by this project's runtime.\n\n> **This repository contains no game code, no game assets, no keys and no firmware.**\n> You need your own copy of the game, dumped from your own console. The build reads the dump's decrypted files: no\n> keys and no firmware are needed. Everything derived from the game is generated on your PC, under `build\u002F`, and never\n> leaves it.\n\n## Status\n\nEarly, not finished. Everything below was measured on the development PC (Windows 11, NVIDIA RTX 4090); where\nsomething was not checked, it says so.\n\n| Area | State |\n|---|---|\n| Start | boot, title screen, file select, Resume: play begins (a scripted start reaches the game's play state at frame 3,564 with the warm shader cache) |\n| Cap Kingdom | `tests\u002Frun_cap_kingdom.py` plays from an empty save to Mario's first capture in Top-Hat Tower and checks 13 checkpoints against the game's own state: 13 of 13 (42,558 frames), 0 host exceptions, 0 Vulkan call failures, 0 operations not implemented |\n| Every stage and scenario | `tests\u002Fstress_stages.py` started every stage the game plays as a stage scene (176) and every scenario of every kingdom (100), each from a save made to start there, played for a few seconds at 4x speed: 276 runs, 2.1 million frames, 0 Vulkan call failures, 0 operations not implemented, 0 freezes, 0 audio drops. Cutscenes, the Labo VR stages and the world map have scenes of their own and were not started this way; Luigi's Balloon World and the Koopa races are started by their characters and cannot be started from a save |\n| Played by hand | from Cap Kingdom to Cascade Kingdom's first checkpoint, with an Xbox One controller¹; that save continues on 1.4.1 |\n| Shaders | every stage in the game's shader files translates and compiles (Maxwell machine code → GLSL → SPIR-V), checked offline by `tests\u002Fcheck_all_shaders.py`: 27,888 of 27,888 distinct stages (7,381 vertex, 20,436 fragment, 3 geometry, 68 compute). The translator's structured control flow equals its reference form on the GPU: 1,519 of 1,519 stages over 6.2 million invocations¹ |\n| Picture | the texture layout equals the one Nintendo's tools stored for all 20,203 textures of the RomFS (`tests\u002Fbntx_layout_check.py`). 0 frames with a single-frame flash in captures of every frame while the camera pans in Cascade Kingdom¹. The Ruined Kingdom's lightning (a geometry stage) draws: each bolt brightens about 3,000 pixels before the game draws its clouds over it¹ |\n| Graphics memory | 1.4 GB at the end of the Cap Kingdom run, 2.0 GB in the Cookatiel rematch: textures the game gives up are freed once nothing names them |\n| Audio | the game's own audio renderer runs (lifted from its system library) and plays through the Windows audio device (6 → 2 channel downmix, 48 kHz): 0 dropped samples, 0 underruns in the Cap Kingdom run |\n| Video | H.264 through Windows Media Foundation: the tutorial videos play with their picture |\n| Help | the pause menu's Action Guide opens inside the game window, scaled to it, from the manual in your dump (Microsoft Edge WebView2), and the game waits while it is open, as on the console; checked with scripted input in a 2560 × 1440 window: open, the Controls page with its pictures, back, Bonus, Choose Mode (the game's Options, then the page again), close. Without WebView2 it opens in your web browser |\n| amiibo | F1, or both stick buttons on a pad, opens a menu drawn like the game's pause menu from its own layout textures, fonts and texts: 102 amiibo, in the game's language. The one chosen is held to a virtual NFC reader; checked in Cascade Kingdom: the game reads Peach and runs her help. Mario, Bowser and Luigi checked as well¹ |\n| System calls | every system call the game made in the tested scenes is implemented (331 of 331 in the Cap Kingdom run); `SMO_IMPORT_SELFTEST=1` checks the ones written from the game's import list rather than met in play: 0 failures |\n| Controllers | keyboard, XInput, and any pad through SDL3 (hot-plug, 8 players, remapping file, rumble, motion): 51 of 51 automated checks with virtual devices; played with an Xbox One controller; other physical pads not tried |\n| Window and capture | a borderless window by default; F11 or a double-click switches to borderless fullscreen and back. The game keeps running at 60 frames a second while its window is not the active one or is minimised (`unfocused = pause` in `graphics.ini` stops it, as the console does). F12 or a pad's share button saves the frame to the save folder's `album` |\n| Save data | journalled like the console's (two-phase commit); the game's autosave and Resume work |\n| Speed | 60 fps, paced to a 60 Hz clock: at Cascade Kingdom's first checkpoint 59.8-60.0 fps in each of 20 windows of 300 frames (1% lows 49.4-56.0); the Cap Kingdom run averages 59.4 fps once play begins, lowest 49.5 while the tower stage loads. Development PC only |\n| Online | not available: the network services answer as a console without a network |\n| Not tried yet | what the 1.4.1 update adds: Balloon World, the new Snapshot Mode filters, the Labo VR mode |\n\n¹ measured on the base game (1.0.0), before this project moved to 1.4.1; not measured again since.\n\n## How it works\n\n1. **Import.** `scripts\u002Fsetup.py` reads your decrypted dump in place and converts the program's modules to ELF.\n2. **Function list.** Every function of the executable, with boundaries from its own unwind tables and symbols (54,214\n   in `main`).\n3. **Lifting.** `tools\u002Flifter\u002Frecomp.py` turns each AArch64 function into a C function; clang compiles them into a game\n   DLL. A differential test runs sampled instructions both lifted and in the Unicorn emulator: 23,194 of 23,194 equal.\n4. **Runtime.** `runtime\u002F` stands in for the console: threads with the console's three-core scheduling, files and\n   journalled saves, NVN graphics on Vulkan with a Maxwell shader translator, the audio renderer, controllers, movies,\n   Help and the offline system services.\n\n[`docs\u002Farchitecture.md`](docs\u002Farchitecture.md) explains each part.\n\n## Requirements\n\n- Windows 10\u002F11 x64 and a Vulkan 1.3 GPU (developed on NVIDIA; `VK_EXT_graphics_pipeline_library`,\n  `VK_EXT_extended_dynamic_state3`, `VK_EXT_vertex_input_dynamic_state` and `VK_EXT_depth_clip_control` are used).\n- Your own *Super Mario Odyssey* dump at version 1.4.1: the program with the update, the RomFS with the update applied\n  and the update's control data. [`docs\u002Fbuilding.md`](docs\u002Fbuilding.md) lists what to dump and how to lay it out.\n- [LLVM\u002Fclang 9.0.0](https:\u002F\u002Freleases.llvm.org\u002F), Visual Studio 2019 Build Tools (16.11) with Windows SDK 10.0.19041,\n  the [Vulkan SDK](https:\u002F\u002Fvulkan.lunarg.com\u002F) 1.4, [SDL3](https:\u002F\u002Fgithub.com\u002Flibsdl-org\u002FSDL) 3.4.18, the\n  [WebView2 SDK](https:\u002F\u002Fwww.nuget.org\u002Fpackages\u002FMicrosoft.Web.WebView2), Python 3.13.\n\n## Quick start\n\n```bat\npy -3.13 -m venv .venv\n.venv\\Scripts\\python -m pip install lz4 capstone unicorn numpy Pillow\n.venv\\Scripts\\python scripts\\setup.py --dump \"\u003Cfolder of your dump>\"\n.venv\\Scripts\\python scripts\\run.py play --exe smo_native.exe --seconds 0\n```\n\nThe first build takes a while (lifting and compiling the game); later runs of `setup.py` only redo what changed.\n[`docs\u002Fbuilding.md`](docs\u002Fbuilding.md) has the details, settings and troubleshooting.\n\n## Repository layout\n\n```\nruntime\u002F          the host runtime, by subsystem: core, libc, os, fs, gfx, audio, input, services, game\nscripts\u002F          setup.py (from your dump to a build) and run.py (start the game, play an input sequence)\ntools\u002Ftarget.py   where the build's files go\ntools\u002Fextract\u002F    the import of your dump (NSO to ELF, version checks) and the function lists\ntools\u002Flifter\u002F     the AArch64 to C lifter, the SDK lifter, the differential test and the build steps\ntools\u002Fdev\u002F        lookups for debugging: disassembly, callers, archives, stage placement, save warps, profiles\ntests\u002F            scripted Cap Kingdom run, stage stress test, every shader stage offline, translator equivalence,\n                  texture layout, fast paths\ndocs\u002F             building, architecture, debugging, scripted runs\n```\n\n## Plans\n\n- Speed on slower CPUs and GPUs, and shorter stalls the first time a kingdom is visited (its textures and shaders are\n  made then).\n- Scripted runs further through the game: the rest of Cap Kingdom, then kingdom by kingdom.\n- Checks on real hardware for the few shader instructions translated from documentation only (`SHFL`, `AL2P`, indexed\n  `IPA`).\n- Other physical controllers (PlayStation, Switch Pro) and other GPUs (AMD, Intel).\n- What the 1.4.1 update adds: Balloon World, the Snapshot Mode filters, the Labo VR mode.\n\n## Contributing\n\nTesters with other GPUs and controllers, and people who know the game's internals, are welcome. Read\n[CONTRIBUTING.md](CONTRIBUTING.md) first: nothing derived from the game goes into the repository, sources must be\nclean, and every claim is measured.\n\n## Related work\n\n- [ssbu-recomp](https:\u002F\u002Fgithub.com\u002FDenkishi\u002Fssbu-recomp): the static recompilation of *Super Smash Bros. Ultimate* whose\n  design, lifter and runtime this project started from (GPL-3.0).\n- [OdysseyDecomp](https:\u002F\u002Fgithub.com\u002FMonsterDruide1\u002FOdysseyDecomp): the decompilation project of *Super Mario Odyssey*,\n  read as a reference only; none of its code is included.\n- yuzu\u002Fsuyu and Ryujinx: documentation and sources consulted for console behaviour, cited where used.\n\n## Legal\n\nThis project is not affiliated with, endorsed or sponsored by Nintendo. *Super Mario Odyssey* and *Nintendo Switch*\nare trademarks of Nintendo and are named only to say what the software works with. The repository contains only\noriginal source code and documentation (GPL-3.0-or-later, see [LICENSE](LICENSE)): no game code, binaries, assets,\nconsole keys or firmware, and it does not help anyone obtain them. Function names and addresses in comments identify\nlocations in the game's own executable, for interoperability; they are not game code. You must own the game and dump\nit yourself.\n\n## Credits\n\n- [ssbu-recomp](https:\u002F\u002Fgithub.com\u002FDenkishi\u002Fssbu-recomp) by Denkishi: the design and runtime this project builds on.\n- [Unicorn](https:\u002F\u002Fwww.unicorn-engine.org\u002F) and [Capstone](https:\u002F\u002Fwww.capstone-engine.org\u002F): reference CPU emulation\n  and disassembly.\n- [SDL3](https:\u002F\u002Fgithub.com\u002Flibsdl-org\u002FSDL), [glslang\u002Fshaderc](https:\u002F\u002Fgithub.com\u002FKhronosGroup\u002Fglslang), the Vulkan\n  SDK.\n","这是一个将《超级马力欧：奥德赛》（Switch版1.4.1）静态重编译为原生Windows x64可执行程序的开源项目。它不依赖模拟器或JIT，而是将游戏原始AArch64机器码离线翻译为C代码，再经编译生成本地二进制，并配套实现自研运行时（含Vulkan渲染、音频、输入、文件系统等）。项目不含任何游戏资产或密钥，需用户自行提供合法游戏镜像。适用于游戏保存、逆向研究与跨平台运行验证等技术场景，当前处于早期开发阶段，已通过多项自动化测试验证核心功能稳定性。","2026-11-24 04:33:14","CREATED_QUERY"]