Skip to content

Start Stop Scripts

frostworx edited this page Jul 27, 2021 · 7 revisions

If commands are defined in USERSTART USERSTOP they will be executed when a game starts/ends. (in the Game Menu and Game Config)

Of course the user is responsbile for what is executed here and needs take care that it both works and exits correctly!

Both scripts make use of following commandline arguments:

  • 1 for the start script and 0 for the stop script as argument 1, so the same script can be used for the start and stop command
  • SteamAppID as argument 2
  • the absolute path to the game exe as argument 3
  • and the Wineprefix of the game as argument 4

See also Custom-Program and One Time Run

Clone this wiki locally