Sonic the Hedgehog 4: Episode II (Switch)
Sonic the Hedgehog 4: Episode II
TecnologíaPort Nativo C/C++ (Reimplementación de Motor)
Ver proyecto oficialSobre el proyecto
Sonic the Hedgehog 4: Episode II es un videojuego de plataformas en 2012.
Información oficial del proyecto
This is a wrapper/port of the Android version of Sonic the Hedgehog 4: Episode II (com.sega.sonic4ep2, v3.0.0). It loads the original game binaries, patches them, and runs them: we natively run the original Android .so file inside a minimal emulated Android environment on the Nintendo Switch.
How to Install
To play this game, you will need the .apk and .obb files for version 3.0.0.
From them, you need:
lib/arm64-v8a/libfox.so— the game engine.- The entire
assets/folder from your.apk(containing the.mp3music,.oggsound effects, and.mp4cutscenes). main.300...obb(usually namedmain.30010.com.sega.sonic4ep2.obbor similar depending on the version/store) — renamed todata.obb.
Setup Instructions:
- Create a folder called
s4ep2inside theswitchfolder on your SD card (i.e.sdmc:/switch/s4ep2/). - Create an
assetsfolder inside thes4ep2folder (i.e.sdmc:/switch/s4ep2/assets/). - Extract
lib/arm64-v8a/libfox.sofrom your.apkand copy it tosdmc:/switch/s4ep2/libfox.so. - Copy the contents of the
assets/folder from your.apk(all the.mp3,.ogg, and.mp4files) intosdmc:/switch/s4ep2/assets/. - Copy the
.obbfile tosdmc:/switch/s4ep2/assets/and rename it todata.obb(so its path issdmc:/switch/s4ep2/assets/data.obb). - Copy
s4ep2_nx.nrointosdmc:/switch/s4ep2/.
Notes
- This port will not work in applet mode (Album). Please launch homebrew menu using a game override (holding R button while booting any installed game) or a forwarder to give it full memory access and required syscalls.
- Save data (
foxsave_0.dat), the game configuration, anddebug.logare kept insdmc:/switch/s4ep2/. - The Episode 1 lock-on feature (Play as Metal Sonic in Episode 1 levels) is unlocked by default.
Configuration
config.txt is created on first run:
screen_width/screen_height— render resolution;-1automatically picks 1280x720 in handheld mode and 1920x1080 in docked mode.
How to Build
You will need the devkitA64 toolchain and the following devkitPro packages:
switch-mesaswitch-libdrm_nouveauswitch-sdl2switch-libpng
Run make to compile.
Credits
- fgsfdsfgs for max_nx and NaGaa95 for ct_nx, which this loader is heavily based on.
- TheOfficialFloW for the original Vita ports that pioneered the Android
.soloading technique. - David Reid for dr_mp3.
- Sean Barrett for stb_vorbis.
Legal
This project has no direct affiliation with SEGA. "Sonic the Hedgehog" and "Sonic the Hedgehog 4: Episode II" are trademarks of their respective owners. All Rights Reserved.
No assets or program code from the original game are included in this repository. We do not condone piracy and encourage users to legally own the original game.
Unless specified otherwise, the source code provided in this repository is licensed under the MIT License. Please see the accompanying LICENSE file.
