# frizti/fritchii — AlpLab Radar Static Code Audit

- Ring: `trial`
- Category: `dev`
- Overall score: `3.0/5`
- Implementation check: `verified`
- Maturity: `early`
- Audited commit: `f66ea633db60` (read-only; nothing from the repository was executed)
- Reviewed at: 2026-11-30T12:43:25Z
- Repository: https://github.com/frizti/fritchii
- Radar entry: https://radar.alplab.co/#repo/frizti/fritchii
- License: `GPL-3.0`
- CI workflows: `.github/workflows`
- Tags: `emulator`, `switch2`, `yuzu-fork`, `vulkan`, `hle`, `shader-recompiler`

## Summary

Lichii: a fork of the Eden/yuzu-derived Eglantine Switch emulator, extended on an 'nx2' line to boot and partially run a handful of Nintendo Switch 2 titles (Ampere/NVN2 GPU, ARMv8.1+ CPU decode, nx2:gsv/gpu/vi2 HLE services)

## Implementation Check

root README.md is a 69-byte joke, but the fork's actual work is implemented in code: nx2 services (src/core/hle/service/nx2_gsv.h, 207KB), Ampere-to-Maxwell shader lowering (src/shader_recompiler/frontend/ampere/lower_to_maxwell.h, 255KB), GPU-thread split (src/video_core/gpu_split.cpp), FFmpeg Switch 2 video decode (src/video_core/host1x/nx2_video_decoder.cpp), MME JIT (src/video_core/macro_turing_jit.h)

## When to Use

Reach for it if you want to experiment with Switch 2-title emulation on a strong PC and tolerate per-game breakage, stubbed services and debug env knobs; not for casual Switch 1 use (use its upstreams) and never without your own keys/firmware/title dumps, which it requires and does not ship

## Sub-scores

| Dimension | Score |
|---|---|
| quality | 4.0/5 |
| usability | 2.5/5 |
| reliability | 3.0/5 |
| security | 3.5/5 |
| integration | 2.0/5 |

## Code Evidence

NX2_NOTES.md is a 150-row blocker log tying each fix to a named commit and measured run (fps, A/B timings); src/tests/CMakeLists.txt registers ~140 Catch2 test files, most of them ampere_* shader-lowering suites with instruction-level expectations; src/video_core/nx2.h implements sparse-region tracking, semaphore waiter latching and GPU-written page bits; .github/workflows/release-binaries.yml builds Linux/Windows/macOS/Android artifacts incl. PGO variants, and docs/VideoPlaybackUpstreamAudit.md records a 479-case ctest run

## Issues Found

README.md is a one-liner placeholder while docs still point users at the upstream clone (docs/Build.md: 'git clone .../Djihads80/Eglantine.git'); project identity is inconsistent across the tree (frizti/fritchii vs zortos293/Lichii in CMakeModules/GenerateSCMRev.cmake vs zortos293/eglantine in CONTRIBUTING.md vs Eden in docs/CODEOWNERS); a 15MB profiler data file (eglantine.profdata) is committed; dozens of getenv() debug knobs (e.g. src/video_core/gpu_split.cpp:91, src/video_core/engines/maxwell_3d.cpp:875) are read in hot paths; macOS binaries are not notarized (release-binaries.yml:703)

## Key Risks

Nothing was executed in this review: test-pass and fps claims come from the repo's own docs, not verification here. Switch 2 support is per-title and partial (many rows marked 'open'; crashes, unfinished loading screens). Heavy AI-subagent development model documented in AGENTS.md; correctness relies on per-game stubs (EDEN_NX2_AUTO_STUB answers unknown IPC with empty success, which can mask failures). Keys/firmware/ExeFS dumps are required user-supplied inputs

## Reviewed Files

- `README.md`
- `AGENTS.md`
- `CONTRIBUTING.md`
- `CMakeLists.txt`
- `hooks/pre-commit`
- `docs/README.md`
- `docs/Build.md`
- `docs/DesignOverview.md`
- `docs/CODEOWNERS`
- `docs/STARFOX_UPSCALE_STANDIN.md`
- `NX2_NOTES.md`
- `src/tests/CMakeLists.txt`
- `src/tests/video_core/ampere_lowering.cpp`
- `src/video_core/nx2.h`
- `src/video_core/host1x/nx2_video_decoder.cpp`
