GithubHelp home page GithubHelp logo

yuuka7610 / vita2hos Goto Github PK

View Code? Open in Web Editor NEW

This project forked from xerpi/vita2hos

0.0 0.0 0.0 3.85 MB

[WIP] PlayStation Vita to Horizon OS (Nintendo Switch OS) translation layer

Home Page: https://discord.gg/Z9kAsBqkbx

License: GNU General Public License v2.0

C++ 1.26% C 97.03% Makefile 1.71%

vita2hos's Introduction

vita2hos

A PlayStation Vita to Horizon OS (Nintendo Switch OS) translation layer (not an emulator)

How does it work?

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.

How can I use it?

Running it on a real console

  1. Copy vita2hos.nsp to your microSD card (i.e. to: atmosphere/vita2hos.nsp)

  2. 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 multiple path entries which is why it has to be done this way.

  3. Copy a PlayStation Vita executable (.velf or .self/eboot.bin) to sd:/vita2hos/test.elf

  4. 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.
  5. Enjoy!

Running it on yuzu

  1. Copy a PlayStation Vita executable (.velf or .self/eboot.bin) to sd:/vita2hos/test.elf (FileOpen yuzu Foldersdmc/)
  2. Disable Macro JIT (EmulationConfigureGeneralDebugDisable Macro JIT)
  3. Run vita2hos.nsp
  4. Enjoy!

Notes:

Make sure to use a very recent build of yuzu, such as Mainline or Early Access Builds.

Running it on Ryujinx

  1. Copy a PlayStation Vita executable (.velf or .self/eboot.bin) to sd:/vita2hos/test.elf (FileOpen Ryujinx Foldersdcard/)
  2. Disable PPTC (OptionsSettingsSystem → Unselect Enable PPTC (Profiled Persistent Translation Cache))
  3. Run vita2hos.nsp
  4. Enjoy!

Notes:

  • Ryujinx >= 1.1.133 is required
  • Some ARM Thumb instructions are not yet implemented on Ryujinx

Project status, compatibility and supported features

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).

Special Thanks

A few noteworthy teams/projects who've helped along the way are:

Also special thanks to @PixelyIon and @SciresM for their help, and to all the testers, especially @TSRBerry.

Disclaimer

  • Nintendo Switch is a trademark of Nintendo Co., Ltd
  • PlayStation Vita is a trademark of Sony Interactive Entertainment

vita2hos's People

Contributors

xerpi avatar tsrberry avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.