mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-15 13:14:17 +01:00
Revert "refactor(Injector): switch to file-scoped namespaces"
This reverts commit f30ebe5166.
This commit is contained in:
parent
dde9c7eb85
commit
d473826247
3 changed files with 1392 additions and 1389 deletions
|
|
@ -16,13 +16,13 @@ using Serilog.Events;
|
||||||
|
|
||||||
using static Dalamud.Injector.NativeFunctions;
|
using static Dalamud.Injector.NativeFunctions;
|
||||||
|
|
||||||
namespace Dalamud.Injector;
|
namespace Dalamud.Injector
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Entrypoint to the program.
|
|
||||||
/// </summary>
|
|
||||||
public sealed class EntryPoint
|
|
||||||
{
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Entrypoint to the program.
|
||||||
|
/// </summary>
|
||||||
|
public sealed class EntryPoint
|
||||||
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// A delegate used during initialization of the CLR from Dalamud.Injector.Boot.
|
/// A delegate used during initialization of the CLR from Dalamud.Injector.Boot.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
@ -318,4 +318,5 @@ public sealed class EntryPoint
|
||||||
|
|
||||||
Log.Information("Done");
|
Log.Information("Done");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -16,15 +16,15 @@ using Serilog;
|
||||||
using static Dalamud.Injector.NativeFunctions;
|
using static Dalamud.Injector.NativeFunctions;
|
||||||
using static Iced.Intel.AssemblerRegisters;
|
using static Iced.Intel.AssemblerRegisters;
|
||||||
|
|
||||||
namespace Dalamud.Injector;
|
namespace Dalamud.Injector
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// This class implements injecting into a remote process. It is a highly stripped down version of the
|
|
||||||
/// https://github.com/Reloaded-Project injector/assembler implementation due to issues with Lutris and
|
|
||||||
/// Wine.
|
|
||||||
/// </summary>
|
|
||||||
internal sealed class Injector : IDisposable
|
|
||||||
{
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// This class implements injecting into a remote process. It is a highly stripped down version of the
|
||||||
|
/// https://github.com/Reloaded-Project injector/assembler implementation due to issues with Lutris and
|
||||||
|
/// Wine.
|
||||||
|
/// </summary>
|
||||||
|
internal sealed class Injector : IDisposable
|
||||||
|
{
|
||||||
private readonly Process targetProcess;
|
private readonly Process targetProcess;
|
||||||
private readonly ExternalMemory extMemory;
|
private readonly ExternalMemory extMemory;
|
||||||
private readonly CircularBuffer circularBuffer;
|
private readonly CircularBuffer circularBuffer;
|
||||||
|
|
@ -355,4 +355,5 @@ internal sealed class Injector : IDisposable
|
||||||
|
|
||||||
public long LPProcName { get; set; }
|
public long LPProcName { get; set; }
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,13 +1,13 @@
|
||||||
using System;
|
using System;
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
|
|
||||||
namespace Dalamud.Injector;
|
namespace Dalamud.Injector
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Native user32 functions.
|
|
||||||
/// </summary>
|
|
||||||
internal static partial class NativeFunctions
|
|
||||||
{
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Native user32 functions.
|
||||||
|
/// </summary>
|
||||||
|
internal static partial class NativeFunctions
|
||||||
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// MB_* from winuser.
|
/// MB_* from winuser.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
@ -223,13 +223,13 @@ internal static partial class NativeFunctions
|
||||||
/// </returns>
|
/// </returns>
|
||||||
[DllImport("user32.dll", SetLastError = true, CharSet = CharSet.Unicode)]
|
[DllImport("user32.dll", SetLastError = true, CharSet = CharSet.Unicode)]
|
||||||
public static extern int MessageBoxW(IntPtr hWnd, string text, string caption, MessageBoxType type);
|
public static extern int MessageBoxW(IntPtr hWnd, string text, string caption, MessageBoxType type);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Native kernel32 functions.
|
/// Native kernel32 functions.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
internal static partial class NativeFunctions
|
internal static partial class NativeFunctions
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// MEM_* from memoryapi.
|
/// MEM_* from memoryapi.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
@ -833,4 +833,5 @@ internal static partial class NativeFunctions
|
||||||
byte[] lpBuffer,
|
byte[] lpBuffer,
|
||||||
int dwSize,
|
int dwSize,
|
||||||
out IntPtr lpNumberOfBytesWritten);
|
out IntPtr lpNumberOfBytesWritten);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue