Skip to content

Commit 4b29dec

Browse files
committed
Fix Game Launch API exports aren't registered
1 parent 405c85c commit 4b29dec

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

SharedStatic.Generic.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,14 @@ static SharedStatic()
4444

4545
private static readonly T ThisPluginExport;
4646

47+
/// <summary>
48+
/// Specify which <see cref="IPlugin"/> instance to load and use in this plugin.
49+
/// </summary>
50+
/// <typeparam name="TPlugin">A member of COM Interface of <see cref="IPlugin"/>.</typeparam>
51+
protected new static void Load<TPlugin>(GameVersion interceptDllVersionTo = default)
52+
where TPlugin : class, IPlugin, new()
53+
=> SharedStatic.Load<TPlugin>();
54+
4755
/// <summary>
4856
/// This method is an ABI proxy function between the PInvoke Export and the actual plugin's method.<br/>
4957
/// See the documentation for <see cref="SharedStatic.LaunchGameFromGameManagerCoreAsync(RunGameFromGameManagerContext, string?, bool, ProcessPriorityClass, CancellationToken)"/> method for more information.

0 commit comments

Comments
 (0)