A PlayStation Vita to Horizon OS (Nintendo Switch OS) translation layer (not an emulator)
PlayStation Vita (ARMv7 CPU) executables can be run natively on Nintendo Switch ARMv8 CPU in 32-bit execution mode.
When loading a PlayStation Vita executable, vita2hos redirects the module imports of said executable to jump to routines that implement the same behavior, by using native Horizon OS services, like the one exposed by the original PlayStation Vita OS modules.
-
Copy
vita2hos.nsp
to your microSD card (i.e. to:atmosphere/vita2hos.nsp
) -
Create
atmosphere/config/override_config.ini
and add the following lines to it:[hbl_config] override_any_app=true override_any_app_key=R override_any_app_address_space=32_bit ; adjust the path according to the location of your file path=atmosphere/vita2hos.nsp
-
Note: As long as this file exists you won't be able to use the homebrew menu and instead will always run vita2hos.
A quick workaround would be to rename the file and restart your Switch. Unfortunately
override_config.ini
doesn't allow multiplepath
entries which is why it has to be done this way.
-
-
Copy a PlayStation Vita executable (
.velf
or.self
/eboot.bin
) tosd:/vita2hos/test.elf
-
Boot (or reboot) your Switch and start any game while holding down
R
- Attempting to use vita2hos via applet mode (album button) will currently result in a fatal error and wouldn't be recommended anyway.
-
Enjoy!
- Copy a PlayStation Vita executable (
.velf
or.self
/eboot.bin
) tosd:/vita2hos/test.elf
(File → Open yuzu Folder →sdmc/
) - Disable Macro JIT (Emulation → Configure → General → Debug → Disable Macro JIT)
- Run
vita2hos.nsp
- Enjoy!
Make sure to use a very recent build of yuzu, such as Mainline or Early Access Builds.
- Copy a PlayStation Vita executable (
.velf
or.self
/eboot.bin
) tosd:/vita2hos/test.elf
(File → Open Ryujinx Folder →sdcard/
) - Disable PPTC (Options → Settings → System → Unselect Enable PPTC (Profiled Persistent Translation Cache))
- Run
vita2hos.nsp
- Enjoy!
- Ryujinx >= 1.1.133 is required
- Some ARM Thumb instructions are not yet implemented on Ryujinx
This is still in very early stages and therefore it can only run very simple CPU-rendered PlayStation Vita homebrews.
There is very initial 3D graphics support (it can run vitasdk's GXM triangle and cube samples by hardcoding vita2hos's GLSL shaders to match the Cg shaders the samples use).
A few noteworthy teams/projects who've helped along the way are:
-
vita2hos uses Vita3K's shader recompiler, and some parts of vita2hos's code are based on Vita3K's implementation. Please, consider donating and contributing to Vita3K!
-
vita2hos uses UAM (deko3d's shader compiler) to compile shaders. Please, also consider contributing to that project and donating to the developers!
Also special thanks to @PixelyIon and @SciresM for their help, and to all the testers, especially @TSRBerry.
- Nintendo Switch is a trademark of Nintendo Co., Ltd
- PlayStation Vita is a trademark of Sony Interactive Entertainment