I’ve written an addon for Kodi called the Internet Archive ROM Launcher. You can read more about it here.
I’ve got an RPi2, and put the most recent build of RetroPie onto it, then installed Kodi and installed my addon. It works pretty well for the most part, and you can currently set it up to automatically put games in the standard RetroPie folders, all you need is an internet connection. So far so good.
What I’m looking to do to enhance my addon and RetroPie is to allow launching of games via Kodi and my addon. I’ve tried several things and can’t get it to work quite yet.
Here’s what I’ve tried.
1. Setup a shell script that the Kodi addon will call to launch games (NES game as an example here):
But that doesn’t quite work. After Kodi exits, EmulationStation starts back up and I don’t see the game launch. Also just trying the command via ssh without Kodi running: /opt/retropie/supplementary/runcommand/runcommand.sh 0 _SYS_ nes "ROMPATH"
Will launch the game, but it will be ‘behind’ emulationstation. If I exit ES by hitting F4 I see my game popup. In addition, I’ve tried several ways to launch Kodi. Depending on how I do it, after it exits I get the dreaded black screen.
Any shell script experts out there that can help? I think the Internet Archive ROM Launcher would be a pretty awesome addition to the RetroPie project.