Magic the magic happen

This commit is contained in:
Raymond Lynch 2021-07-11 16:32:29 -04:00
parent 84769ae5b7
commit 658eedca37
188 changed files with 10329 additions and 3549 deletions

View file

@ -1,5 +1,4 @@
using System;
using System.Diagnostics;
using System.Runtime.InteropServices;
using System.Text;
@ -17,12 +16,10 @@ namespace Dalamud
public static class SafeMemory
{
private static readonly IntPtr Handle;
private static readonly IntPtr MainModule;
static SafeMemory()
{
Handle = Imports.GetCurrentProcess();
MainModule = Process.GetCurrentProcess().MainModule?.BaseAddress ?? IntPtr.Zero;
}
/// <summary>