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
Copy file name to clipboardExpand all lines: SharedStatic.Generic.cs
+29-3Lines changed: 29 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -3,6 +3,7 @@
3
3
usingHi3Helper.Plugin.Core.Utility;
4
4
usingMicrosoft.Extensions.Logging;
5
5
usingSystem;
6
+
usingSystem.Diagnostics;
6
7
usingSystem.Runtime.CompilerServices;
7
8
usingSystem.Runtime.InteropServices;
8
9
usingSystem.Threading;
@@ -45,9 +46,18 @@ static SharedStatic()
45
46
46
47
/// <summary>
47
48
/// This method is an ABI proxy function between the PInvoke Export and the actual plugin's method.<br/>
48
-
/// See the documentation for <see cref="SharedStatic.LaunchGameFromGameManagerCoreAsync(RunGameFromGameManagerContext, CancellationToken)"/> method for more information.
49
+
/// See the documentation for <see cref="SharedStatic.LaunchGameFromGameManagerCoreAsync(RunGameFromGameManagerContext, string?, bool, ProcessPriorityClass, CancellationToken)"/> method for more information.
@@ -374,6 +377,9 @@ public static unsafe int TryGetApiExportPointer(char* apiExportName, void** dele
374
377
/// Asynchronously launch the game using plugin's built-in game launch mechanism and wait until the game exit.
375
378
/// </summary>
376
379
/// <param name="context">The context to launch the game from <see cref="IGameManager"/>.</param>
380
+
/// <param name="startArgument">The additional argument to run the game executable.</param>
381
+
/// <param name="isRunBoosted">Based on <see cref="Process.PriorityBoostEnabled"/>, boost the process temporarily when the game window is focused (Default: false).</param>
382
+
/// <param name="processPriority">Based on <see cref="Process.PriorityClass"/>, run the game process with specific priority (Default: <see cref="ProcessPriorityClass.Normal"/>).</param>
377
383
/// <param name="token">
378
384
/// Cancellation token to pass into the plugin's game launch mechanism.<br/>
379
385
/// If cancellation is requested, it will cancel the awaiting but not killing the game process.
@@ -382,7 +388,7 @@ public static unsafe int TryGetApiExportPointer(char* apiExportName, void** dele
382
388
/// 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/>
383
389
/// Otherwise, <c>true</c> if the plugin supports game launch mechanism.
@@ -54,6 +55,9 @@ public class RunGameFromGameManagerContext
54
55
/// Asynchronously launch the game using plugin's built-in game launch mechanism and wait until the game exit.
55
56
/// </summary>
56
57
/// <param name="context">The context to launch the game from <see cref="IGameManager"/>.</param>
58
+
/// <param name="startArgument">The additional argument string to run the game executable (Default: null).</param>
59
+
/// <param name="isRunBoosted">Based on <see cref="Process.PriorityBoostEnabled"/>, boost the process temporarily when the game window is focused (Default: false).</param>
60
+
/// <param name="processPriority">Based on <see cref="Process.PriorityClass"/>, run the game process with specific priority (Default: <see cref="ProcessPriorityClass.Normal"/>).</param>
57
61
/// <param name="token">
58
62
/// Cancellation token to pass into the plugin's game launch mechanism.<br/>
59
63
/// If cancellation is requested, it will cancel the awaiting but not killing the game process.
@@ -64,7 +68,10 @@ public class RunGameFromGameManagerContext
0 commit comments