# zortos293/lichii

> lichii is an experimental, open-source emulator for the Nintendo Switch and Switch 2, written in C++. It is meant for players who run games they have legally obtained. It runs a game's code in software on a desktop or Android device, emulating the console's hardware so the game can run without the original machine.

Source: https://github.com/zortos293/lichii
Indexed: commit dc386a2 on 2026-11-18 by Repowise. Facts come from the source and git history, not from the maintainer.

## Facts

- Language: C++
- Stars: 9,661 at index time
- License: GPL-3.0
- Code health: 7.5/10, Good
- Last commit: 2026-11-18
- Contributors: 192

## How it works

Input enters through the desktop front end or the Android app, where EmulationActivity.kt starts a game. The Android app's NativeLibrary object loads the native library and forwards calls over JNI to the C++ code. src/core does the core work: it opens the game's files, sets up the emulated machine and runs the guest CPUs until the title stops. Most of its files implement the kernel and service emulation that a game's system calls reach. src/audio_core emulates the audio stack, and the Vulkan renderer code under src/video_core, such as renderer_vulkan/vk_rasterizer.cpp, handles graphics. src/common holds the shared headers for basic types, assertions and logging that the rest of the emulator includes.

- src/android/app/src/main/java/io/github/zortos293/lichii/LichiiApplication.kt: entry point
- src/android/app/src/main/java/io/github/zortos293/lichii/activities/EmulationActivity.kt: entry point
- src/android/app/src/main/java/io/github/zortos293/lichii/features/DocumentProvider.kt: entry point
- src/android/app/src/main/java/io/github/zortos293/lichii/features/settings/ui/SettingsActivity.kt: entry point
- src/android/app/src/main/java/io/github/zortos293/lichii/features/settings/ui/SettingsFragment.kt: entry point
Modules: src, tools, externals, .ci. 4,271 files, 824,349 lines, 84,553 symbols.

## Code health

- Score: 7.5/10 (Good)
- Trend: 7.6 on 2026-11-07, 7.5 on 2026-11-18
- Rank: #99 of 4,000+ indexed repos
- Hotspots: src/core/hle/service/nx2_gsv.h, src/shader_recompiler/frontend/ampere/lower_to_maxwell.h, src/video_core/renderer_vulkan/vk_rasterizer.cpp, src/video_core/texture_cache/texture_cache.h, src/video_core/engines/kepler_compute.cpp
- Lowest file: src/video_core/texture_cache/texture_cache.h
- Dead code: 1,641 findings

## Maintenance

- Last commit 2026-11-18, 1,765 commits
- 192 contributors, bus factor 2

## Security

- Security findings are shown to signed-in users at https://repowise.dev/repo/zortos293/lichii/security

## More

- Page: https://repowise.dev/repo/zortos293/lichii
- Ask this codebase: https://repowise.dev/repo/zortos293/lichii/chat
- Docs: https://repowise.dev/repo/zortos293/lichii/docs
- MCP (signs in with Repowise on first use):
    claude mcp add --transport http repowise https://api.repowise.dev/mcp/zortos293/lichii
