Snapshot for release 2026.10.13.1 (internal d2b5fb3)
This commit is contained in:
parent
fe1eca0ca7
commit
319740ff5d
291 changed files with 58505 additions and 2107 deletions
|
|
@ -16,13 +16,25 @@ public static unsafe class PluginExports
|
|||
private static int Init(RynthCoreApiNative* api) => Runtime.Init(api);
|
||||
|
||||
[UnmanagedCallersOnly(EntryPoint = "RynthPluginShutdown", CallConvs = new[] { typeof(CallConvCdecl) })]
|
||||
public static void Shutdown() => Runtime.Shutdown();
|
||||
public static void Shutdown()
|
||||
{
|
||||
try { Runtime.Shutdown(); } // an exception out of a native export fail-fasts the client
|
||||
catch { }
|
||||
}
|
||||
|
||||
[UnmanagedCallersOnly(EntryPoint = "RynthPluginName", CallConvs = new[] { typeof(CallConvCdecl) })]
|
||||
public static IntPtr GetName() => RynthLuaPlugin.NamePointer;
|
||||
public static IntPtr GetName()
|
||||
{
|
||||
try { return RynthLuaPlugin.NamePointer; } // a static initializer that throws surfaces here (TypeInitializationException)
|
||||
catch { return IntPtr.Zero; }
|
||||
}
|
||||
|
||||
[UnmanagedCallersOnly(EntryPoint = "RynthPluginVersion", CallConvs = new[] { typeof(CallConvCdecl) })]
|
||||
public static IntPtr GetVersion() => RynthLuaPlugin.VersionPointer;
|
||||
public static IntPtr GetVersion()
|
||||
{
|
||||
try { return RynthLuaPlugin.VersionPointer; }
|
||||
catch { return IntPtr.Zero; }
|
||||
}
|
||||
|
||||
[UnmanagedCallersOnly(EntryPoint = "RynthPluginTick", CallConvs = new[] { typeof(CallConvCdecl) })]
|
||||
public static void Tick() => Runtime.OnTick();
|
||||
|
|
|
|||
Loading…
Reference in a new issue