mickelson / attract

A graphical front-end for command line emulators that hides the underlying operating system and is intended to be controlled with a joystick or gamepad.
http://attractmode.org
GNU General Public License v3.0
397 stars 115 forks source link

Feature request: launch something before and after emulator starts #635

Open whatelse12 opened 4 years ago

whatelse12 commented 4 years ago

Could the following feature please be programmed:

Similar to frontend GameEx, you can start scripts:

AlsoLaunch= LaunchBefore= LaunchAfter=

see : https://www.gameex.info/forums/topic/9922-resolved-launch-before-and-launch-after/

Is it possible to start scripts, executables, bash commands, windows commands as follows:

-starting a script, then start emulator (start script, before emulator starts) -starting a script, along with emulator (both same time) -starting a script, after an emulator starts (emulator starts, then start script) -starting a script, if emulator ends (wait until the exit key is pressed, then start script)

Best within each emulator (where you can set path to executable and rom-folder).

Thank you.

oomek commented 4 years ago

This type of functionality is already implemented: https://github.com/mickelson/attract/blob/master/Layouts.md#feplugin_command

whatelse12 commented 4 years ago

Is the emulator section extended by these functions? Something like that: Image 1

oomek commented 4 years ago

These functions are available in squirrel script, not in AM user interface, you would have to code this yourself, or ask someone on the forum or discord server to code it for you.