Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,086 changes: 1,086 additions & 0 deletions .agent/HANDOFF.md

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,2 +1,11 @@
* text=auto
*.sh text eol=lf

# These working-tree files are hashed by the source restorer.
src/core/overlays/** text eol=lf
src/runtime/NxInfinity.Runtime/** text eol=lf
build/source-baseline/*.py text eol=lf
build/source-baseline/*.json text eol=lf

# Preserve the byte-identical release source manifest used as provenance evidence.
build/source-baseline/NX-BUILD-SOURCES.json -text
184 changes: 184 additions & 0 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,193 @@ jobs:
timeout-minutes: 15
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262
with:
persist-credentials: false
- uses: actions/setup-dotnet@67a3573c9a986a3f9c594539f4ab511d57bb3ce9
with:
dotnet-version: '10.0.402'
- run: dotnet build src/NxInfinity.slnx -c Release
- run: dotnet run --project src/tests/NxInfinity.Runtime.ContractTests -c Release --no-build
- run: dotnet run --project src/tests/NxInfinity.Runtime.Services.Tests -c Release --no-build

source-baseline:
runs-on: ubuntu-24.04
timeout-minutes: 60
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262
with:
persist-credentials: false
- uses: actions/setup-dotnet@67a3573c9a986a3f9c594539f4ab511d57bb3ce9
env:
DOTNET_INSTALL_DIR: ${{ runner.temp }}/dotnet
with:
dotnet-version: |
9.0.100
10.0.402
- name: Show installed .NET SDKs
run: dotnet --list-sdks
- name: Test build tools
shell: bash
run: |
set -euo pipefail
git --version
version=$(git --version | sed -n 's/^git version \([0-9][0-9.]*\).*/\1/p')
printf '%s\n%s\n' 2.45 "$version" | sort --version-sort --check=quiet ||
{ echo "::error::git 2.45 or later is required"; exit 1; }
NXI_TEST_SCRATCH="$RUNNER_TEMP" python3 -B build/source-baseline/test_tools.py
NXI_TEST_SCRATCH="$RUNNER_TEMP" python3 -B build/linux/test_tools.py
- name: Restore pinned core source
shell: bash
run: |
set -euo pipefail
mapfile -t kenji_revisions < <(
python3 build/source-baseline/restore.py --print-kenji-revisions
)
test "${#kenji_revisions[@]}" -eq 12
git init --quiet "$RUNNER_TEMP/kenji"
git -C "$RUNNER_TEMP/kenji" remote add origin https://starforgejo.dev/projects/Kenji-NX.git
git -C "$RUNNER_TEMP/kenji" fetch --no-tags --depth=1 origin "${kenji_revisions[@]}"
git -C "$RUNNER_TEMP/kenji" checkout --detach "${kenji_revisions[0]}"
git clone --filter=blob:none --no-checkout https://github.com/ChanseyIsTheBest/ryujinx.git "$RUNNER_TEMP/later-ryujinx"
git -C "$RUNNER_TEMP/later-ryujinx" checkout --detach 20888e6d1f96bcf1a59f415c745c684e38529503
python3 build/source-baseline/restore.py \
--kenji-repo "$RUNNER_TEMP/kenji" \
--later-repo "$RUNNER_TEMP/later-ryujinx" \
--output "$RUNNER_TEMP/nx-v1-source"
- name: Build restored core
shell: bash
run: |
set -euo pipefail
cd "$RUNNER_TEMP/nx-v1-source"
dotnet build src/Ryujinx.HLE/Ryujinx.HLE.csproj -c Release
dotnet build src/Ryujinx.Graphics.Vulkan/Ryujinx.Graphics.Vulkan.csproj -c Release
dotnet build src/Ryujinx.Audio.Backends.OpenAL/Ryujinx.Audio.Backends.OpenAL.csproj -c Release
- name: Build and smoke core host
shell: bash
run: |
set -euo pipefail
cd "$GITHUB_WORKSPACE/src"
dotnet publish core/NxInfinity.Core/NxInfinity.Core.csproj -c Release \
-p:CoreSourceRoot="$RUNNER_TEMP/nx-v1-source" \
-o "$RUNNER_TEMP/nx-core-host"
cd "$GITHUB_WORKSPACE"
python3 build/source-baseline/smoke_worker.py \
--dotnet "$(command -v dotnet)" \
--worker "$RUNNER_TEMP/nx-core-host/NxInfinity.Core.dll"
- name: Build native Linux archives
shell: bash
run: |
set -euo pipefail
epoch=$(git show -s --format=%ct HEAD)
pinned_dotnet="$DOTNET_ROOT/dotnet"
export NUGET_PACKAGES="$RUNNER_TEMP/nuget-packages"
git init --quiet "$RUNNER_TEMP/ffmpeg-source"
git -C "$RUNNER_TEMP/ffmpeg-source" remote add origin https://github.com/FFmpeg/FFmpeg.git
git -C "$RUNNER_TEMP/ffmpeg-source" fetch --no-tags --depth=1 origin \
39cac587c4f78f7c26e0f0e5da664943d4e9fade \
e16ff06adb9acd647c0c33aa3c27438e1009b822
git -C "$RUNNER_TEMP/ffmpeg-source" cat-file -e \
'39cac587c4f78f7c26e0f0e5da664943d4e9fade^{commit}'
git -C "$RUNNER_TEMP/ffmpeg-source" cat-file -e \
'e16ff06adb9acd647c0c33aa3c27438e1009b822^{commit}'
python3 -B build/linux/fetch_notice_sources.py \
--output "$RUNNER_TEMP/linux-notices"
for rid in linux-x64 linux-arm64; do
python3 -B build/linux/package.py \
--rid "$rid" \
--core-source "$RUNNER_TEMP/nx-v1-source" \
--core-dotnet "$pinned_dotnet" \
--dotnet "$pinned_dotnet" \
--work "$RUNNER_TEMP/$rid-work" \
--output "$RUNNER_TEMP/linux-archives" \
--notice-sources "$RUNNER_TEMP/linux-notices" \
--ffmpeg-source "$RUNNER_TEMP/ffmpeg-source" \
--epoch "$epoch"
python3 -B build/linux/verify.py \
--archive "$RUNNER_TEMP/linux-archives/NX-Infinity-1.0.0-$rid.tar.gz" \
--rid "$rid"
(
cd "$RUNNER_TEMP/linux-archives"
sha256sum -c "NX-Infinity-1.0.0-$rid.tar.gz.sha256"
)
done
- name: Audit native Linux dependencies
shell: bash
run: |
set -euo pipefail
for rid in linux-x64 linux-arm64; do
root="$RUNNER_TEMP/$rid-work/NX-Infinity-1.0.0-$rid"
trace_providers=0
while IFS= read -r -d '' file; do
if readelf -h "$file" >/dev/null 2>&1; then
dynamic=$(readelf -d "$file")
if [[ "$rid" == linux-x64 && "$dynamic" == *"(NEEDED)"* ]]; then
dependencies=$(LD_LIBRARY_PATH="$root/cores/nxi:$root" ldd "$file")
missing=$(awk '/=> not found/{print $1}' <<<"$dependencies" | sort -u)
if [[ "$(basename "$file")" == "libcoreclrtraceptprovider.so" ]]; then
((trace_providers += 1))
[[ "$dynamic" == *"Shared library: [liblttng-ust.so.0]"* ]]
[[ -z "$missing" || "$missing" == "liblttng-ust.so.0" ]]
else
[[ -z "$missing" ]]
fi
fi
fi
done < <(find "$root" -type f -print0)
if [[ "$rid" == linux-x64 ]]; then
[[ "$trace_providers" -eq 2 ]]
fi
done
- name: Smoke native Linux launcher and worker
shell: bash
run: |
set -euo pipefail
command -v xvfb-run
install_parent="$RUNNER_TEMP/linux-install"
archive="$RUNNER_TEMP/linux-archives/NX-Infinity-1.0.0-linux-x64.tar.gz"
mkdir -p "$install_parent" "$RUNNER_TEMP/home"
tar -xzf "$archive" -C "$install_parent"
root="$install_parent/NX-Infinity-1.0.0-linux-x64"
export HOME="$RUNNER_TEMP/home"
export XDG_DATA_HOME="$RUNNER_TEMP/nx-user-data"
marker="$XDG_DATA_HOME/NX Infinity/update-preservation.marker"
mkdir -p "$(dirname "$marker")"
printf '%s\n' 'preserve-across-install-replacement' >"$marker"
before=$(sha256sum "$marker" | cut -d' ' -f1)
python3 -B build/linux/smoke_frontend.py \
--launcher "$root/nx-infinity" \
--xvfb-run "$(command -v xvfb-run)" \
--data-root "$RUNNER_TEMP/linux-probe-data-before" \
--report "$RUNNER_TEMP/linux-smoke-report-before.json"
python3 -B build/linux/smoke_default_data.py \
--launcher "$root/nx-infinity" \
--xvfb-run "$(command -v xvfb-run)" \
--expected-data-root "$XDG_DATA_HOME/NX Infinity" \
--marker "$marker" \
--phase before-replacement \
--report "$RUNNER_TEMP/linux-default-data-before.json"
mv "$root" "$install_parent/previous-install"
tar -xzf "$archive" -C "$install_parent"
python3 -B build/linux/smoke_default_data.py \
--launcher "$root/nx-infinity" \
--xvfb-run "$(command -v xvfb-run)" \
--expected-data-root "$XDG_DATA_HOME/NX Infinity" \
--marker "$marker" \
--phase after-replacement \
--report "$RUNNER_TEMP/linux-default-data-after.json"
after=$(sha256sum "$marker" | cut -d' ' -f1)
test "$before" = "$after"
python3 -B build/linux/smoke_frontend.py \
--launcher "$root/nx-infinity" \
--xvfb-run "$(command -v xvfb-run)" \
--data-root "$RUNNER_TEMP/linux-probe-data-after" \
--report "$RUNNER_TEMP/linux-smoke-report-after.json"
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02
with:
name: nx-infinity-native-linux
path: |
${{ runner.temp }}/linux-archives/*.tar.gz
${{ runner.temp }}/linux-archives/*.sha256
${{ runner.temp }}/linux-smoke-report-*.json
${{ runner.temp }}/linux-default-data-*.json
if-no-files-found: error
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@ artifacts/
*.keys
*.xci
*.nsp
__pycache__/
*.py[cod]
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# changelog

## Unreleased

- Restored the public launcher and core-host source and added a hash-checked process for reconstructing the v1 core from pinned Ryujinx and Kenji-NX inputs.
- Added CI coverage for core reconstruction, core builds, host publishing and the protocol hello handshake.
- Added deterministic self-contained `linux-x64` and `linux-arm64` archives with native launcher/core apphosts, complete integrity manifests, license/source notices, checksum files and desktop integration.
- Added Linux archive, ELF/dependency and CPU-only Xvfb launcher/worker gates. Packages remain unqualified for gameplay, audio, controllers, saves and physical ARM64 hardware.
- Native Linux packages omit the translation and OCR features, which need the bundled translation runtime, and the online avatar catalog; local avatar import remains.

## Stable Release v1 — 1.0.0 — 26 October 2026

- Backgrounds now use separate HD landscape metadata from Nintendo. Covers stay on game tiles. Missing artwork uses the theme, and downloaded backgrounds work offline.
Expand Down
2 changes: 2 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@ Keep games, keys, firmware and personal saves out of reports.
For code changes, keep the fix focused, include the checks you ran and leave the original credits in place.

Run `dotnet build src/NxInfinity.slnx -c Release` with .NET SDK 10.0.402. The included contract and service checks run with `dotnet run --project src/tests/NxInfinity.Runtime.ContractTests -c Release` and `dotnet run --project src/tests/NxInfinity.Runtime.Services.Tests -c Release`.

Changes to the emulator core must use the pinned inputs and verification process in [the source baseline instructions](build/source-baseline/README.md). Do not commit a generated restored tree or replace an exact source file with decompiled output.
11 changes: 10 additions & 1 deletion LICENSING.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
# licenses

Original NX Infinity code uses the [MIT license](LICENSE), unless a file says otherwise. Ryujinx and Kenji-NX retain their [MIT copyright and license](licenses/Ryujinx-MIT.txt), and Dune retains its [original notice](licenses/Dune-MIT.txt).
Original NX Infinity code uses the [MIT license](LICENSE), unless a file says otherwise. Ryujinx retains its [MIT copyright and license](licenses/Ryujinx-Team-MIT.txt), Kenji-NX retains its [MIT copyright and license](licenses/Ryujinx-MIT.txt), and Dune retains its [original notice](licenses/Dune-MIT.txt).

Dependencies have their own licenses. The download includes their notices alongside the application. The separate TOTK Dynamic FPS module uses GPL-2.0; its corresponding source and build files are in [third_party/totk-dfps](third_party/totk-dfps/).

Native Linux archives include the complete modified TOTK module source, a
complete managed-package notice inventory, and a machine-readable native
dependency inventory with exact package and per-RID asset hashes. FFmpeg is
distributed as replaceable shared libraries with the exact corresponding-source
archive and build configuration for each RID; the binaries report
LGPL-2.1-or-later while their NuGet metadata says LGPL-2.1-only, and both
observations are retained. OpenAL Soft is not bundled; the application loads the
system `libopenal.so.1`.

See [component notices](THIRD-PARTY-NOTICES.md) for the retained credits. Games, firmware and keys are supplied by the user.
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ my take on a Switch emulator. an entirely remade Switch themed UI, with Desktop

NX Infinity is a fork of the Ryujinx core through Kenji-NX, with extensive repairs and performance improvements. huge credit to the Ryujinx and Kenji-NX teams for the foundation this is built on.

**[Windows download](https://github.com/coye2/NX-Infinity/releases/latest)** · **[Linux / Proton](docs/linux.md)** · **[What's changed](CHANGELOG.md)**
**[Windows download](https://github.com/coye2/NX-Infinity/releases/latest)** · **[Native Linux](docs/linux.md)** · **[What's changed](CHANGELOG.md)**

## get started

Download the Windows ZIP, extract it into a new folder and open **NX Infinity.exe**. keep the folders together. add your games, keys and firmware through setup, then you're ready to go.

Linux users: download the Proton ZIP, extract it and run **Install-NX-Infinity.sh**. setup adds NX Infinity to your app menu and keeps your saves when you update.
Linux users: native self-contained x64 and ARM64 archives are produced by CI. See the [Linux guide](docs/linux.md) for artifact availability, system libraries, checksums and the Proton fallback.

## what's here

Expand All @@ -26,7 +26,11 @@ Linux users: download the Proton ZIP, extract it and run **Install-NX-Infinity.s
- Controller reconnect, smoother HOME navigation and a controller touchscreen pointer.
- Themes, avatars, save tools, updates, mods and local translation options.

MP4 still has some stutter. Linux gameplay and 3D All-Stars touch controls need more testing. [Test notes](docs/testing.md) have the details.
MP4 still has some stutter. Native Linux gameplay, audio/controllers, physical ARM64 hardware and 3D All-Stars touch controls need more testing. [Test notes](docs/testing.md) have the details.

## build from source

The launcher and core host source are included. The emulator core is restored from pinned public Ryujinx and Kenji-NX inputs, with every exact file checked against the v1 release source manifest. [Source baseline instructions](build/source-baseline/README.md) document the reconstruction; [native Linux instructions](build/linux/README.md) build and verify x64/ARM64 archives.

## the people behind it

Expand Down
12 changes: 8 additions & 4 deletions THIRD-PARTY-NOTICES.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,15 @@

| Component | Credit and license |
| --- | --- |
| Ryujinx / Kenji-NX | [Original MIT notice](licenses/Ryujinx-MIT.txt) and [component notices](licenses/Ryujinx-third-party.md) |
| Ryujinx / Kenji-NX | [Ryujinx MIT notice](licenses/Ryujinx-Team-MIT.txt), [Kenji-NX MIT notice](licenses/Ryujinx-MIT.txt), and [component notices](licenses/Ryujinx-third-party.md) |
| Dune by sakasakiking | [MIT notice](licenses/Dune-MIT.txt) |
| Avalonia, SkiaSharp, HarfBuzzSharp, Inter and .NET | Original notices in the download's licenses folder |
| SDL, OpenAL Soft, FFmpeg and Shaderc | Original component notices included in the download; OpenAL and FFmpeg retain their LGPL terms |
| Managed NuGet dependencies | Every package in both `.deps.json` graphs is covered by the generated package metadata, copyright attribution, declared license text, and available package notice files under the download's `licenses/packages` folder |
| Concentus | Native Linux archives retain the BSD-3-Clause notice from the SHA-256-pinned `Concentus` 2.2.2 package |
| SDL and GLFW | Exact native/package hashes, package metadata and Zlib notices are retained. SDL x64 embeds a source revision; the ARM64 binary reports its revision as unavailable, which the inventory records rather than guessing |
| FFmpeg | Exact package/native hashes, per-RID build configurations and source commits, LGPL-2.1-or-later text, and deterministic archives of the complete per-RID corresponding source are retained. The NuGet package metadata says LGPL-2.1-only; the binaries identify themselves as LGPL-2.1-or-later, and the inventory records that discrepancy |
| Shaderc | Exact package/native hashes, v2024.3 source/DEPS pins, package metadata, Apache-2.0 text, and pinned glslang, SPIR-V, LLVM, libc++, and libc++abi notices are retained |
| OpenAL Soft | Native Linux uses the system `libopenal.so.1` shared library under LGPL-2.0-or-later rather than redistributing another binary |
| TOTK Dynamic FPS | [GPL-2.0 license](third_party/totk-dfps/LICENSE), [source and changes](third_party/totk-dfps/NX-NOTICE.md) |
| Local translation and OCR dependencies | Notices included with the optional translation runtime |
| Local translation and OCR dependencies | Notices included with an optional translation runtime; native Linux archives do not bundle that runtime or download OCR models |

The NX Infinity license does not replace these component licenses.
Loading