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
/// A delegate to a callback which returns a list of IP addresses resolved from the <paramref name="hostname"/>.
29
32
/// </summary>
30
33
/// <remarks>
31
-
/// DO NOT FREE THE POINTER GIVEN BY THIS DELEGATE! The pointers are borrowed and will be automatically cleared by the plugin.
34
+
/// DO NOT FREE THE POINTER GIVEN BY THIS DELEGATE TO AVOID <see cref="ExecutionEngineException"/>! The pointers are borrowed and will be automatically cleared by the plugin.
32
35
/// </remarks>
33
36
/// <param name="hostname">[In] A hostname to resolve to.</param>
34
37
/// <param name="ipResolvedWriteBuffer">[Ref] A pointer to the buffer in which the main application will write the UTF-16 unsigned string (with null terminator) to.</param>
@@ -357,5 +367,31 @@ public static unsafe int TryGetApiExportPointer(char* apiExportName, void** dele
357
367
*delegateP=(void*)delegatePSafe;
358
368
return0;
359
369
}
360
-
#endregion
370
+
#endregion
371
+
372
+
/// <summary>
373
+
/// Perform game launch routine from this plugin.
374
+
/// </summary>
375
+
/// <param name="manager">Game manager of the current game region to check.</param>
376
+
/// <param name="plugin">Plugin instance to check.</param>
377
+
/// <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
+
/// <returns>
380
+
/// 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
+
/// Otherwise, <c>true</c> if the plugin supports game launch mechanism.
/// Launch the game using plugin's built-in game launch mechanism.
31
+
/// </summary>
32
+
/// <param name="context">The context to launch the game from <see cref="IGameManager"/>.</param>
33
+
/// <param name="token">Cancellation token to pass into the plugin's game launch mechanism.</param>
34
+
/// <returns>
35
+
/// Returns <c>IsSuccess=false</c> if the plugin doesn't have game launch mechanism (or API Standard is equal or lower than v0.1.0), hence fallback to launcher's game launch mechanism.
36
+
/// Otherwise, <c>IsSuccess=true</c> if the plugin does support game launch mechanism and the game ran successfully.
0 commit comments