LaunchBoxContributors
On this page

IGameLaunchingPlugin9.2

Interface in Unbroken.LaunchBox.Plugins

C#
public interface IGameLaunchingPlugin
Implement this interface in order to handle specific game launching events in LaunchBox and Big Box. Added in LaunchBox and Big Box 9.2-beta-3.

Methods

  • OnAfterGameLaunchedChanged 14.1Called immediately after a particular game or additional app has launched. At this point the game was successfully launched and should be running.
  • OnBeforeGameLaunchingChanged 13.27Called immediately before a particular game or additional app begins launching. At this point the game is not guaranteed to launch successfully if the startup file does not exist or some other anomaly is encountered.
  • OnGameExitedCalled immediately after the game or additional app exits. Please note that in some cases this event may fire immediately after launching the game (such as if the game is a Steam game). This happens when the game's launched process exits immediately instead of continuing running.

OnAfterGameLaunched Changed 14.1

C#
void OnAfterGameLaunched(
    IGame game,
    IAdditionalApplication? app,
    IEmulator? emulator
)
Called immediately after a particular game or additional app has launched. At this point the game was successfully launched and should be running.
game
The game that was launched.
app
The additional application that was launched. Will be null if the game was launched without a specific additional application.
emulator
The emulator that was launched. Will be null if the game was launched without an emulator.

OnBeforeGameLaunching Changed 13.27

C#
void OnBeforeGameLaunching(
    IGame? game,
    IAdditionalApplication? app,
    IEmulator? emulator
)
Called immediately before a particular game or additional app begins launching. At this point the game is not guaranteed to launch successfully if the startup file does not exist or some other anomaly is encountered.
game
The game that is launching.
app
The additional application that is launching. Will be null if the game is launching without a specific additional application.
emulator
The emulator that is launching. Will be null if the game is launching without an emulator.

OnGameExited

C#
void OnGameExited()
Called immediately after the game or additional app exits. Please note that in some cases this event may fire immediately after launching the game (such as if the game is a Steam game). This happens when the game's launched process exits immediately instead of continuing running.