Page 1 of 1

Activate "Ports"-section in emulation station.

Posted: Mon Dec 18, 2017 12:59 am
by moooarcuuuus
If I install "KODI" or another Port in a new Retropie over the ncurses retropie config the "ports"-section starts to exists. If I put a simple script in "/home/pi/Retropie/roms/ports" with the filename "coolscript.sh" and the following content:

Code: Select all

#!bin/bash

programm -- arg1 
The entry "coolsript" will pop up after a ES restart in the "Ports"-section. I can select and execute the script like any other game. Very good.

It don't work without installing a Port first. So I think there is something to activate first. What is it?

Re: Activate "Ports"-section in emulation station.

Posted: Mon Dec 18, 2017 1:18 am
by YaYa
I don’t know exactly what is doing Emulation station but this is the same behavior with standard emulators and roms.
If a folder (eg SNES) has no roms in it, then Emulation station won’t shiw the Emulator.

Even worse, if you have activated the “show only scraped games” option, then nothing will show up until you scrap the systems.

So i think Emulation Station’s binary is looking the folder system at boot.

Re: Activate "Ports"-section in emulation station.

Posted: Mon Dec 18, 2017 4:18 am
by moooarcuuuus
Hmm I have to think over the internals..

"addPort()": https://retropie.org.uk/api/helpers_8sh ... b4efcc30c0