Skip to content
项目

关于

NxEmu is a free, open-source Nintendo Switch emulator for Windows, Linux and macOS, written in C++.

其他项目

这些数字如何统计

实测星标增长

24小时
+5
7天
+10
15天
+14
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

NxEmu

NxEmu is a free, open-source Nintendo Switch emulator for Windows, Linux and macOS, written in C++.

Installation

The latest stable releases are available here.

Building

git clone --recursive https://github.com/N3xoX1/nxemu.git

On Windows, install Visual Studio 2022 with Desktop development with C++ and the Vulkan SDK. Open the repository's nxemu.sln to use the maintained Visual Studio projects, or run src\script\build.cmd Release. These projects remain checked in and are maintained alongside CMake.

Alternatively, build the RmlUi frontend with CMake:

./src/script/build_windows.ps1 Release

On Linux, use sh src/script/build_linux.sh Release. On macOS with Xcode installed, use sh src/script/build_macos.sh Release. For Android, use sh src/script/build_android.sh Release with JDK 17, Android SDK 36 and NDK 30.0.16248370. Each script accepts a build directory after the configuration; the desktop scripts also accept extra CMake options.

To generate a separate Visual Studio 2022 solution manually, run:

cmake --preset windows-x64

Open build/windows-x64/nxemu.sln, or build it with cmake --build --preset windows-x64-release. Run the configure command again to regenerate this solution after changing CMake files. The generated projects stay in the build directory; they do not replace the checked-in solution. Changes to sources, dependencies or build options must be reflected in both maintained build systems.

GitHub Actions builds Windows x64, Linux x64, macOS arm64 and Android arm64 on pull requests and pushes to master. Desktop jobs run the frontend-settings compatibility test; Android runs its Gradle unit tests and checks native libraries in the APK. The jobs publish desktop archives or an APK and cache compiler outputs (sccache on Windows, ccache elsewhere). The macOS job also caches the pinned MoltenVK runtime; Linux, macOS and Android retain supported ThinLTO caches. The Linux job packages the same Release build as both a tarball and an AppImage, then checks the AppImage's resources, modules and shared-library dependencies without recompiling.

To build an AppImage locally, run bash src/script/build-appimage.sh. To package an existing Release build, run bash src/script/build-appimage.sh --skip-build. The output is build/appimage/NxEmu-<arch>.AppImage.

To run the desktop settings test locally, configure with -DNXEMU_BUILD_UI_SETTINGS_TESTS=ON, build nxemu_ui_settings_tests, then run ctest --test-dir <build-directory> -C Release --output-on-failure.

Contributing

Contributions are welcome via pull requests.

Links

License

NxEmu is licensed under the GNU General Public License v3.0.

探索相关项目

加载中…