Vita3K / Vita3K

Experimental PlayStation Vita emulator
https://vita3k.org/
GNU General Public License v2.0
3.75k stars 376 forks source link

Would there be a version that runs on the Nintendo Switch as a Homebrew #2471

Open Tokobotenkai opened 1 year ago

Tokobotenkai commented 1 year ago

Just asking if there's any intention to port this to the Nintendo Switch instead of running from Android.

CoffeeBrewer64 commented 1 year ago

Currently, you cannot, but this is a great idea!

Problems:

I actually really like this idea! Playing Vita games on a Switch would be cool. You can already do it on a Steam Deck, so on a Nintendo console? Even better.

You could try to get Linux on your Switch and run Vita3K through that, but Vita3K native to the Switch would be nicer.

Tokobotenkai commented 1 year ago

I was thinking since you can run Android on Switch (https://wiki.switchroot.org/en/Android/Setup-10), which from there you install Vita3K Apk.

I don't really understand the code, but it seems that version of Android is patched to utilise the Switch hardware?

Alternatively, the L4T version of Ubuntu on the Switch is patched to utilise the Switch hardware, but Vita3K is x86, so I guess we could try Box86/64 but I am not sure if the performance overhead is significant.

nn9dev commented 1 year ago

Intention for native HOS? I don't think that's on the to-do list at the moment, but anyone familiar with switch development would be greatly welcomed to to so, and I invite anyone with such skills to join us in the discord.

And to clear a few things up:

Might be forgetting something, but...

TL;DR, absolutely possible, but not on the main roadmap afaik. Contributions by anyone knowledgeable is more than welcome :)

Macdu commented 1 year ago

Right now you can run Vita3K on the Switch by either:

mrcmunir commented 1 year ago

I've simplified a bit for whoever wants to run it on l4t bionic (ffmpeg , libtompcrypt) into test https://github.com/mrcmunir/Vita3K

sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update && sudo apt-get upgrade .
wget https://apt.llvm.org/llvm.sh
chmod +x llvm.sh
sudo ./llvm.sh 14
Install dependences :
sudo apt install git cmake ninja-build pkg-config libgtk-3-dev xdg-desktop-portal libssl-dev libstdc+±10-dev
Install update sdl2 from :
bash <( curl https://raw.githubusercontent.com/cobalt2727/L4T-Megascript/master/helper.sh ) "scripts/sdl2_install_helper.sh"
git clone https://github.com/mrcmunir/Vita3K
cd Vita3K
git submodule --init --recursive 
cmake --preset linux-ninja-clang14
cmake --build build/linux-ninja-clang14 --config Release

The only issue for now things in some games it's memory mapping cause some graphical issues with nvidia tegra driver

gladiator1014 commented 4 months ago

I've simplified a bit for whoever wants to run it on l4t bionic (ffmpeg , libtompcrypt) into test https://github.com/mrcmunir/Vita3K

sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update && sudo apt-get upgrade .
wget https://apt.llvm.org/llvm.sh
chmod +x llvm.sh
sudo ./llvm.sh 14
Install dependences :
sudo apt install git cmake ninja-build pkg-config libgtk-3-dev xdg-desktop-portal libssl-dev libstdc+±10-dev
Install update sdl2 from :
bash <( curl https://raw.githubusercontent.com/cobalt2727/L4T-Megascript/master/helper.sh ) "scripts/sdl2_install_helper.sh"
git clone https://github.com/mrcmunir/Vita3K
cd Vita3K
git submodule --init --recursive 
cmake --preset linux-ninja-clang14
cmake --build build/linux-ninja-clang14 --config Release

I know this old but after running the last of these commands on a hacked Switch Lite running Ubuntu Jammy 22.04 I get a "1 error generated. ninja: build stopped: subcommand failed."

Any ideas on how to fix that or what I should be looking for to identify the error?