# sh2-nx：《寂静岭 2》的 Switch 移植

> sh2-nx 是 PC 版《寂静岭 2》（Director's Cut / Restless Dreams）的原生 Nintendo Switch 移植，并支持《寂静岭 2：增强版》资源包。游戏的 x86 可执行文件被静态重编译为 C，再为 Switch 的 ARM64 CPU 编译；它所依赖的 Windows 层用 SDL2、OpenGL 和 FFmpeg 重实现。README 也记录了 Linux x86-64 构建。

- 类型：案例
- 目标：游戏
- 类别：独立重建案例
- 关联：独立重建项目
- 来源复核于：2026-11-07
- 收录于：2026-11-09
- 原始资源：<https://github.com/cutarev/sh2-nx>
- 一手来源：<https://github.com/cutarev/sh2-nx/blob/95ae2f16efc09c82f405f04383a27d98c2fa804a/README.md>
- 目录页面：<https://awesomerea.org/zh/resources/sh2-nx/>
- 记录 JSON：<https://awesomerea.org/resources/sh2-nx/record.json>
- 英文版：[English](https://awesomerea.org/resources/sh2-nx/index.md)

## 使用条件与局限

- **前提条件：**需要用户自己的 PC 版《寂静岭 2》，并安装增强版，至少包括增强可执行文件、必要文件、图像增强包和音频增强包。移植针对大小为 5,685,248 字节、SHA-1 为 3201a5e1029f3ae3b77770255dcbe10360b3cd09 的 sh2pc.exe。
- **前提条件：**Switch 构建需要 Python 3、CMake、Ninja，以及 podman 或装有 devkitA64、libnx、switch-sdl2、switch-mesa、switch-ffmpeg 和 switch-pkg-config 的 devkitPro。Linux 构建需要 SDL2 和 FFmpeg。
- **许可：**仓库没有许可证文件。

## 一手来源

1. <https://github.com/cutarev/sh2-nx/blob/95ae2f16efc09c82f405f04383a27d98c2fa804a/README.md>

## 同分区更多条目：游戏

- [sh4-nx：Silent Hill 4 的 Nintendo Switch 重编译移植](https://awesomerea.org/zh/resources/sh4-nx-case/index.md) · 案例
- [Shadow of the Colossus：运行至翻帧循环的 PS3 静态重编译项目](https://awesomerea.org/zh/resources/shadow-of-the-colossus-ps3-recomp-case/index.md) · 案例
- [Shadow the Hedgehog：PS2 静态重编译进展](https://awesomerea.org/zh/resources/shadow-the-hedgehog-ps2-recomp-case/index.md) · 案例
- [Shantae Recomp：Game Boy Color 游戏静态重编译](https://awesomerea.org/zh/resources/shantae-recomp-case/index.md) · 案例
- [Shining Force III Recomp：Sega Saturn 游戏的 PC 静态重编译](https://awesomerea.org/zh/resources/shining-force-iii-recomp-case/index.md) · 案例
- [Silent Hill 3：原生 Nintendo Switch 移植](https://awesomerea.org/zh/resources/sh3-nx/index.md) · 案例

## 关于此条目

说明已依据一手来源复核。
原创说明采用 MIT 许可；外部项目、论文与素材保留各自的权利和许可。
