In this post I will show how to add a new tab in EmulationStation. In a previous post I showed how to add one for XBMC (found here) but this one will be more specific for programs that you may want to run and also very similar. This will make things more convenient and will save you the trouble from exiting EmulationStation and typing in a command. It will also enable you to load the program with a controller if you don’t have a keyboard plugged in.
To start go into the es_systems.cfg file:
|pi@raspberry ~ $ cd .emulationstation
pi@raspberry ~/.emulationstation $ sudo nano es_systems.cfg
Scroll to the bottom and right before the last line
add the following lines:
What this will do is:
- Enable EmulationStation to add a new Application tab.
- Have it look in the /home/pi/RetroPie/roms/apps directory (That will be made next.).
- Have it only show programs with the .sh and .py file extension.
- Have the tab have the same theme as the esconfig tab (Which isn’t loaded anyway.).
Save and exit with:
Once that is done I made the ‘apps‘ directory and then went into it with:
|pi@raspberry ~/.emulationstation $ cd
pi@raspberry ~ $ cd RetroPie/roms
pi@raspberry ~/RetroPie/roms $ mkdir apps
pi@raspberry ~/RetroPie/roms $ cd apps
I then made a simple bash program that will load xbmc:
|pi@raspberry ~/RetroPie/roms/apps $ nano test.sh|
In this new document I added the following:
echo “It works!”
Save and exit and them make it executable with:
|pi@raspberry ~/RetroPie/roms/apps $ chmod +x test.sh|
Go back and load EmulationStation
|pi@raspberry ~/RetroPie/roms/apps $ cd
pi@raspberry ~ $ emulationstation
and when you scroll to the left one tab you should see the new Applications tab with just a white background, open it up and you’ll see the program that was just created, and if you open it then it will kick you out of EmulationStation and print It worked! and then after a little pause it will load back into EmulationStation.
I will be using this tab for future projects so I am just setting up the ground work. 🙂
Just like the other tab that I made the theme is very basic and I will work on changing this theme to make it fit in more with the rest of EmulationStation!
Check out these other helpful links:
Mapping Controllers (1 of 3): For EmulationStation
Mapping Controllers (2 of 3): Mapping Controllers to a File
Mapping Controllers (3 of 3): Setting up Controllers in RetroArch
Auto detecting controllers in EmulationStation 2.0+
RetroPie: Adding game roms, BIOS files, and enabling save states
Setting up GameBoy Advance for RetroPie
Adding a XBMC tab in EmulationStation
Adding an Apps tab in EmulationStation
Setting up Playstation for RetroPie
Creating power logs for EmulationStation (1 of 2)
Creating power logs for EmulationStation (2 of 2)