[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-114557":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":25,"updatedAt":26,"readmeContent":27,"aiSummary":28,"trendingCount":15,"starSnapshotCount":15,"syncStatus":29,"lastSyncTime":30,"discoverSource":31},114557,"Lichii-rust","zortos293\u002FLichii-rust","zortos293","Rust based Switch 1 + 2 Emulator",null,"Rust",107,12,52,4,0,1,13,22,6,54.04,"GNU General Public License v3.0",false,"main",[],"2026-11-20 10:59:39","2026-11-22 20:57:20","# Lichii (Rust)\n\nLichii is an experimental Nintendo Switch 2 and Switch 1 emulator, rewritten in Rust from the C++ [Lichii](https:\u002F\u002Fgithub.com\u002Fzortos293\u002FLichii) codebase (itself derived from Eglantine, Eden, yuzu and Sudachi). Switch 2 titles are the priority; Switch 1 titles share the same pipeline. Rendering is Vulkan only.\n\nOnly use games, keys and firmware you have legally obtained. None are included.\n\n## Layout\n\n| Crate | Path | Owns |\n|---|---|---|\n| `lichii-common` | `crates\u002Fcommon` | Address types, Horizon result codes, settings model, logging, paths |\n| `lichii-memory` | `crates\u002Fmemory` | Guest physical memory, guest address spaces, exclusive monitor |\n| `lichii-cpu` | `crates\u002Fcpu` | A64 decoder, interpreter, JIT, `CpuCore` |\n| `lichii-crypto` | `crates\u002Fcrypto` | Key sets (`prod.keys`, `title.keys`), AES-CTR\u002FXTS, key derivation |\n| `lichii-fs` | `crates\u002Ffs` | VFS, NCA, PFS0\u002FNSP, HFS0\u002FXCI, RomFS, NACP, CNMT, save data |\n| `lichii-loader` | `crates\u002Floader` | NSO\u002FNRO\u002FNPDM, loose ExeFS, title metadata, program images |\n| `lichii-kernel` | `crates\u002Fkernel` | HLE Horizon kernel: processes, threads, scheduler, SVCs, IPC |\n| `lichii-services` | `crates\u002Fservices` | HLE system services (sm, fs, am, hid, vi, nvdrv, gsv, audio, ...) |\n| `lichii-gpu` | `crates\u002Fgpu` | GPFIFO, DMA pusher, engines (Maxwell\u002FAmpere), macros, GMMU, host1x |\n| `lichii-texture` | `crates\u002Ftexture` | Surface formats, block-linear tiling, ASTC\u002FBCn decoders |\n| `lichii-video` | `crates\u002Fvideo` | FFmpeg video decoding, NVDEC codec state, output image conversion |\n| `lichii-shader` | `crates\u002Fshader` | Maxwell\u002FAmpere SASS -> IR -> SPIR-V |\n| `lichii-vulkan` | `crates\u002Fvulkan` | Vulkan renderer, caches, pipelines, resolution scaling, presentation |\n| `lichii-audio` | `crates\u002Faudio` | Audio renderer HLE and host output |\n| `lichii-input` | `crates\u002Finput` | Host controllers and keyboard, mapping to npad state |\n| `lichii-core` | `crates\u002Fcore` | `System`: wires every subsystem together and boots a title |\n| `lichii` | `crates\u002Ffrontend` | Desktop app: window, game list, settings UI, frame view overlay |\n\n## Build\n\n```sh\ncargo build --release\ncargo test --workspace\n```\n\nYou need:\n\n- Rust 1.98 or newer (opus1 needs it). The workspace sets `rust-version`, so an older stable stops with a message that names the version; run `rustup update stable`.\n- CMake and a C compiler: SDL3 is built from source.\n- On Linux, the ALSA headers (`libasound2-dev` on Debian and Ubuntu).\n- On Windows, the Visual Studio C++ build tools and a CMake that has the Visual Studio generators, such as the one Visual Studio ships, the official installer or scoop. devkitPro's MSYS CMake has no Visual Studio generator, and SDL3 then fails with `Could not create named generator Visual Studio 17 2022`. If it is first on your `PATH`, point the build at another CMake with `CMAKE`, for example `$env:CMAKE = \"C:\u002FProgram Files\u002FCMake\u002Fbin\u002Fcmake.exe\"`.\n\n### Video (FFmpeg)\n\nGames play their movies through the console's video decoder, which Lichii emulates with FFmpeg's libavcodec. FFmpeg is loaded at runtime and is optional: without it Lichii logs one warning and movies play as black frames. Any FFmpeg 4 to 8 with shared libraries works.\n\n- Linux: install your distribution's FFmpeg libraries (`libavcodec60` on Ubuntu 24.04, `ffmpeg-libs` on Fedora).\n- Windows: put `avcodec-61.dll` and `avutil-59.dll` next to `lichii.exe`. The Release workflow's zip has them; to build them yourself, run `scripts\u002Fbuild-ffmpeg-windows.sh \u003Cdir>` on Linux or WSL with mingw-w64 and nasm. That build is LGPL-2.1-or-later (decoders only, no GPL or non-free parts) and writes its licence and source note beside the DLLs.\n- `LICHII_FFMPEG_DIR` points Lichii at another folder holding the libraries.\n\n### Frame dumps\n\nTo see what a title draws when a screen capture doesn't work (a window on a sleeping display captures as white, for example), set `LICHII_FRAME_DUMP_DIR` to a folder. Lichii then writes the presented guest frame there as a BMP every 2 seconds. `LICHII_FRAME_DUMP_EVERY` changes the period, and `LICHII_FRAME_DUMP_FROM` and `LICHII_FRAME_DUMP_TO` limit dumping to a window, all in seconds since the renderer started. Each dump writes the frame back to guest memory first, so dumping slows the frames it dumps. Without the variable, nothing is dumped.\n\n## License\n\nGPL-3.0-or-later, see [LICENSE](LICENSE). This project inherits the work of the Lichii, Eglantine, Eden, yuzu and Sudachi projects and their contributors.\n","Lichii-rust 是一个实验性的任天堂 Switch 1 和 Switch 2 双平台模拟器，基于 Rust 语言从 C++ 版本重写。核心功能包括 A64 CPU 解码与 JIT、Horizon 内核 HLE、Vulkan 专属图形渲染、NCA\u002FHFS0\u002FNSP 文件系统支持、AES 加密模块、FFmpeg 视频解码集成及完整服务框架（如 fs、hid、vi、audio 等）。项目采用模块化 crate 架构，强调内存安全与并行可维护性，仅支持 Vulkan 后端，优先适配 Switch 2 游戏。适用于具备合法固件、密钥和游戏镜像的本地开发测试、逆向研究及跨平台兼容性验证场景。",2,"2026-11-24 04:49:00","CREATED_QUERY"]