Rework DalamudServices,

This commit is contained in:
Ottermandias 2023-12-20 18:47:30 +01:00
parent d8f5851e0c
commit f022d2be64
19 changed files with 230 additions and 250 deletions

View file

@ -13,7 +13,7 @@ namespace Penumbra.Interop.ResourceLoading;
/// </summary>
public unsafe class CreateFileWHook : IDisposable
{
public const int RequiredSize = 28;
public const int Size = 28;
public CreateFileWHook(IGameInteropProvider interop)
{
@ -57,8 +57,8 @@ public unsafe class CreateFileWHook : IDisposable
ptr[22] = (byte)(l >> 16);
ptr[24] = (byte)(l >> 24);
ptr[RequiredSize - 2] = 0;
ptr[RequiredSize - 1] = 0;
ptr[Size - 2] = 0;
ptr[Size - 1] = 0;
}
public void Dispose()