public void ActivateAction(Game game, GameAction action) { try { var emulators = Database.Emulators.ToList(); var profile = GameActionActivator.GetGameActionEmulatorConfig(action, emulators)?.ExpandVariables(game); GameActionActivator.ActivateAction(action.ExpandVariables(game), profile); } catch (Exception exc) when(!PlayniteEnvironment.ThrowAllErrors) { Dialogs.ShowMessage( string.Format(resources.GetString("LOCGameStartActionError"), exc.Message), resources.GetString("LOCGameError"), MessageBoxButton.OK, MessageBoxImage.Error); } }