Ryujinx add on
#1
Ryujinx is a nintendo switch emulator

https://ryujinx.org/

I have created a first working add-on in https://github.com/xbmc/repo-plugins/pull/3510. It depends on some Ryujinx changes https://github.com/Ryujinx/Ryujinx/pull/2131

It can:

- list your games
- run games

But there're a few things I'm not sure how to solve:

1. Currently the add-on starts a subprocess, but I see bmcplugin.setResolvedUrl should be able to see the file ".nsp" and run correct emulator for it. I'm not sure how to setup that.
2. Until integrated with bmcplugin, I'm trying to listen to keyboard to stop the game. Is there any keyboard listener for kodi? (Listen to ESC to end running game)
3. Setup Ryujinx path: Any simple example on how to add config to a plugin and read it. (This needs a file dialog to select your installed emulator)
4. Run on same screen as kodi (for multimonitor setup) Probably another thing bmcplugin will solve, until that, is it possible to get info on what monitor kodi is shown (Use case: laptop connected to a TV by HDMI)

Good to have:

5. Integration with "Add game"
6. Integration with gamepad controller (for joycons) Currently Ryujinx uses a json file to map controller with emulated joycons (keyboard to emulated, controller to emulated). Any simple example of this kodi gamepad controller will help a lot

Any help is appreciated, if you want to give a try just modify EMULATOR_PATH and adjust env['DISPLAY'] on current implementation

Cheers,
Alberto
Reply
#2
Nice :-)
Reply
#3
If you are having troubles getting the emulator properly integrated into the Kodi codebase, you can always look into incorporating it through addons.
Have a look at AKL (forum thread: 366351 (thread)).

AKL is a customizable launcher addon where you can make game/rom collections, scrape/collect metadata and image assets about the games and point to a certain emulator/application to run that particular file/game. AKL takes care of the library and scrolling through your collections and supports many emulators out of the box. It is also build in such a way that you can create your own plugin addons with specific launching, scanning or scraping solutions.
So in your case you can simply create a plugin addon for launching .nsp files in your desired way. The rest is already supported. If you like I can help you out in setting up the addon. Let me know.
Reply

Logout Mark Read Team Forum Stats Members Help
Ryujinx add on0