-
Notifications
You must be signed in to change notification settings - Fork 1
Home
Tim Potze edited this page Mar 10, 2025
·
1 revision
Welcome to the openmp-sampsharp-x64-poc wiki! Below are some random snippets of docs that will eventually find its way in to SampSharp documentation
Generated startup code
using System;
using System.Runtime.InteropServices;
using SampSharp.Core;
namespace SampSharp
{
public static class Entrypoint
{
private static readonly <StartupType> _startup = new();
private static StartupContext _context;
[UnmanagedCallersOnly]
public static void Cleanup()
{
_context?.InvokeCleanup();
}
[UnmanagedCallersOnly]
public static void Initialize(SampSharpInitParams inf)
{
_context = new StartupContext(inf);
_context.InitializeUsing(_startup);
}
public static void Main()
{
StartupContext.MainInfoProvider();
}
}
}