Repository navigation
Releases
Toluca v0.1.0-alpha
First public alpha release of Toluca — a clean-room, MIT-licensed Rust + Cranelift static recompiler and native Linux / OpenGL ES 3.0 runtime for the PC version of Silent Hill 2 (vanilla North American v1.0), targeting 1 GB RAM ARM64 PortMaster handhelds and Linux x86-64 desktops.
Clean-Room Notice: No copyrighted Konami executables, DLLs, videos, or game assets are included. You must supply your own legal, unprotected vanilla North American v1.0
sh2pc.exeanddata/directory.
Downloads
toluca-v0.1.0-alpha-portmaster.zip— PortMaster ARM64 bundle (glibc 2.31+ baseline). IncludesToluca.sh, on-devicepatchscript, stripped AArch64toluca-recomp/toluca-runtime, and minimal Bink-only LGPLv2.1 FFmpeg 7.1.1 shared libraries.toluca-v0.1.0-alpha-linux-x86_64.zip— Linux x86-64 desktop bundle (glibc 2.35+ baseline). Includes./toluca.sh, stripped x86-64toluca-recomp/toluca-runtime, and minimal Bink-only LGPLv2.1 FFmpeg 7.1.1 shared libraries.SHA256SUMS.txt— SHA-256 checksums for both release archives.
Highlights in v0.1.0-alpha
- 100% On-Device Static Recompilation: Translates all
6,622 / 6,622functions in vanilla NA v1.0sh2pc.exedirectly to native AArch64 or x86-64 machine code (cache/toluca_code.bin) using Rust + Cranelift — no PC build step, GCC, or Python needed on handhelds (~1–3 minutes on an Allwinner H700 under 100 MiB peak RAM; ~8 seconds on desktop). - Native OpenGL ES 3.0 Renderer: Clean-room Direct3D 8 → GLSL ES 3.00 pipeline with persistent shader caching (
toluca-progs.bin), crisp4:3/16:9/stretchdisplay fitting, and software S3TC/DXT texture decoding for Mali/PowerVR GPUs. - Native Audio & Bink FMV Playback: 48 kHz DirectSound software mixer with CRI-Ware ADX support and bundled minimal LGPLv2.1 FFmpeg 7.1.1 Bink video/audio decoding with dynamic A/V rate control.
- Handheld Performance: Verified at ~29.8–30 FPS on an Anbernic RGSP (Allwinner H700, 4× Cortex-A53, Mali-G31 MP2, 973 MB RAM) across Bink FMVs, menus, 3D cutscenes, and early gameplay.
- PS2-Style Native Gamepad Layout: Direct SDL2-to-DirectInput controller mapping out of the box (with stickless clamshell / Nintendo face-button defaults on PortMaster and
toluca.confoverrides).
Quick Start
PortMaster Handhelds (ARM64)
- Extract
toluca-v0.1.0-alpha-portmaster.zipinto your PortMasterports/directory (placesToluca.shandtoluca/). - Copy your legal, unprotected vanilla North American v1.0
sh2pc.exeanddata/folder intoports/toluca/gamedata/(orports/toluca/gamedata/Silent Hill 2/). - Launch Toluca from PortMaster. On first boot,
patchscriptverifiessh2pc.exeand compilescache/toluca_code.binautomatically (~1–3 minutes). Subsequent launches boot straight into the game.
Default Handheld Controls (Nintendo face-button labels, clamshell-friendly):
- D-Pad / Left Stick: Move / Navigate menus
- B (South): Action / Confirm / Attack (PS2 Cross)
- A (East): Cancel in menus + Flashlight toggle in gameplay (PS2 Circle)
- Y (West): Run (PS2 Square)
- X (North): Map (PS2 Triangle)
- L1 / R1: Search View (center/pan camera), Ready Weapon (hold
R1 + Xto Reload) - L2 / R2: Step Left / Right (
L2 + R2for 180° Quick Turn) - Select / Start: Inventory, Pause Menu
- Home + Start / Select + Start: Exit to PortMaster / NextUI
(See toluca/README.md inside the zip for toluca.conf options including --nintendo-buttons, --swap-shoulders, display aspect modes, and the optional toluca.gptk fallback.)
Linux x86-64 Desktop
Requires system SDL2 (libSDL2-2.0.so.0) and OpenGL ES 3.0 / EGL (libEGL.so.1, libGLESv2.so.2).
unzip toluca-v0.1.0-alpha-linux-x86_64.zip
cd toluca
# Either copy sh2pc.exe and data/ into gamedata/ and run:
./toluca.sh
# Or point directly at an existing installation (with optional flags):
./toluca.sh "/path/to/Silent Hill 2/sh2pc.exe" --fullscreen --aspect 4:3Known Alpha Caveats
- Early Alpha Testing: Verified end-to-end through intro FMVs, menus, saving/loading, Observation Deck, Graveyard, and the Angela cutscene. Later areas (Apartments, Hospital, Historical Society, Hotel, bosses, and endings) have not yet had a full playthrough — please open an issue with your
log.txtif you hit a crash, graphical glitch, or soft-lock! - Supported Game Version: Only the unprotected vanilla North American v1.0 PC executable is supported at this time. SafeDisc-encrypted retail executables are rejected during verification, and Enhanced Edition / Director's Cut packs are untested.
- Original
open.bikAudio Offset: The vanilla 2002 PCopen.bikintro file has ~0.55 s of audio offset baked into its opening monologue; other FMVs play tightly in sync.
Special Thanks
- Silent Hill 2: Enhanced Edition for extensive public research and documentation of the vanilla 2002 PC port's engine quirks.
sh2-nxfor proving static recompilation of Silent Hill 2 (PC) to ARM64 is genuinely viable.- PortMaster and the NextUI /
PORTS.pakcommunities for handheld runtime and on-device patching tooling. - Cranelift,
iced-x86, FFmpeg, and SDL2.