r2mods/ilspy_dump/ror2_csproj/RoR2/EOSLibraryManager.cs

39 lines
655 B
C#
Raw Normal View History

2024-10-04 07:26:37 +00:00
using System;
using System.Runtime.InteropServices;
namespace RoR2;
public class EOSLibraryManager
{
private IntPtr _libraryPointer;
private bool _initialized;
[DllImport("Kernel32.dll")]
private static extern IntPtr LoadLibrary(string lpLibFileName);
[DllImport("Kernel32.dll")]
private static extern int FreeLibrary(IntPtr hLibModule);
[DllImport("Kernel32.dll")]
private static extern IntPtr GetProcAddress(IntPtr hModule, string lpProcName);
public EOSLibraryManager()
{
Initialize();
}
private void Initialize()
{
if (!_initialized)
{
_initialized = true;
}
}
public void Shutdown()
{
_initialized = false;
}
}