Running commands before and after a game launches

Home Forums RetroPie Project New to RetroPie? Start Here! Running commands before and after a game launches

RetroPie has a new website and forum. Please visit https://retropie.org.uk/ for the new site. The new forum is located at https://retropie.org.uk/forum/. This forum is left here as a read-only archive.

This topic contains 1 reply, has 2 voices, and was last updated by Profile photo of buzz buzz 1 year, 6 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #107565
    Profile photo of neoid
    neoid
    Participant

    I intend to run some extra code on the following events and need some advice if the files I’m using or intend to use are the best way of doing it…

    1) After emulationstation has started.
    /etc/profile.d/10-emulationstation.sh

    2) When the user selects a game
    /opt/retropie/supplementary/runcommand/runcommand.sh

    3) When the user quits a game/returns to emulationstation
    Haven’t found a good file for this yet, any ideas?

    #107570
    Profile photo of buzz
    buzz
    Keymaster

    3) would also be in runcommand since it launches the game, and then does some cleanup code etc.

Viewing 2 posts - 1 through 2 (of 2 total)

Forums are currently read only - please visit the new RetroPie forums at https://retropie.org.uk/forums/

Skip to toolbar