You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// This method is an ABI proxy function between the PInvoke Export and the actual plugin's method.<br/>
41
+
/// See the documentation for <see cref="SharedStatic.LaunchGameFromGameManagerCoreAsync(IGameManager, IPlugin, PrintGameLog, CancellationToken)"/> method for more information.
InstanceLogger.LogError(ex,"An error has occurred while trying to call IsGameRunningCore() from the plugin!");
123
+
returnMarshal.GetHRForException(ex);
124
+
}
125
+
}
126
+
127
+
/// <summary>
128
+
/// This method is an ABI proxy function between the PInvoke Export and the actual plugin's method.<br/>
129
+
/// See the documentation for <see cref="SharedStatic.WaitRunningGameCoreAsync(IGameManager, IPlugin, CancellationToken)"/> method for more information.
@@ -370,28 +371,73 @@ public static unsafe int TryGetApiExportPointer(char* apiExportName, void** dele
370
371
#endregion
371
372
372
373
/// <summary>
373
-
/// Perform game launch routine from this plugin.
374
+
/// Asynchronously launch the game using plugin's built-in game launch mechanism and wait until the game exit.
374
375
/// </summary>
375
-
/// <param name="manager">Game manager of the current game region to check.</param>
376
-
/// <param name="plugin">Plugin instance to check.</param>
376
+
/// <param name="manager">The game manager instance which handles the game launch.</param>
377
+
/// <param name="pluginInstance">The instance of the plugin.</param>
377
378
/// <param name="printGameLogCallback">A callback to send the log of the currently running game.</param>
378
-
/// <param name="token">A cancellation token to cancel or kill the process of the game.</param>
379
+
/// <param name="token">
380
+
/// Cancellation token to pass into the plugin's game launch mechanism.<br/>
381
+
/// If cancellation is requested, it will cancel the awaiting but not killing the game process.
382
+
/// </param>
379
383
/// <returns>
380
384
/// Returns <c>false</c> if the plugin doesn't have game launch mechanism (or API Standard is equal or lower than v0.1.0) or if this method isn't overriden.<br/>
381
385
/// Otherwise, <c>true</c> if the plugin supports game launch mechanism.
/// <param name="isGameRunning">Whether the game is currently running or not.</param>
397
+
/// <returns>
398
+
/// To find the actual return value, please use <paramref name="isGameRunning"/> out-argument.<br/><br/>
399
+
///
400
+
/// Returns <c>false</c> if the plugin doesn't have game launch mechanism (or API Standard is equal or lower than v0.1.0) or if this method isn't overriden.<br/>
401
+
/// Otherwise, <c>true</c> if the plugin supports game launch mechanism.
/// Asynchronously wait currently running game until it exit.
411
+
/// </summary>
412
+
/// <param name="manager">The game manager instance which handles the game launch.</param>
413
+
/// <param name="pluginInstance">The instance of the plugin.</param>
414
+
/// <param name="token">
415
+
/// Cancellation token to pass into the plugin's game launch mechanism.<br/>
416
+
/// If cancellation is requested, it will cancel the awaiting but not killing the game process.
417
+
/// </param>
418
+
/// <returns>
419
+
/// Returns <c>false</c> if the plugin doesn't have game launch mechanism (or API Standard is equal or lower than v0.1.0) or if this method isn't overriden.<br/>
420
+
/// Otherwise, <c>true</c> if the plugin does support game launch mechanism and the game ran successfully.
/// Kill the process of the currently running game.
429
+
/// </summary>
430
+
/// <param name="manager">The game manager instance which handles the game launch.</param>
431
+
/// <param name="wasGameRunning">Whether to indicate that the game was running or not.</param>
432
+
/// <returns>
433
+
/// To find the actual return value, please use <paramref name="wasGameRunning"/> out-argument.<br/><br/>
434
+
///
435
+
/// Returns <c>false</c> if the plugin doesn't have game launch mechanism (or API Standard is equal or lower than v0.1.0) or if this method isn't overriden.<br/>
436
+
/// Otherwise, <c>true</c> if the plugin supports game launch mechanism.
0 commit comments