mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-02-07 00:14:36 +01:00
WIP corehook
This commit is contained in:
parent
3f78ca5b81
commit
69e7cf9af9
7 changed files with 69 additions and 9 deletions
18
Dalamud.Injector/Program/Options.cs
Normal file
18
Dalamud.Injector/Program/Options.cs
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
using System;
|
||||
using CommandLine;
|
||||
|
||||
namespace Dalamud.Injector
|
||||
{
|
||||
[Verb("inject")]
|
||||
internal sealed class InjectOptions
|
||||
{
|
||||
[Option('p', "pid", Required = true, HelpText = "A target process id to inject.")]
|
||||
public uint Pid { get; set; }
|
||||
|
||||
[Option("root", Required = true, HelpText = "")]
|
||||
public string RootDirectory { get; set; } = null!;
|
||||
|
||||
[Option("bin", Required = true, HelpText = "")]
|
||||
public string BinaryDirectory { get; set; } = null!;
|
||||
}
|
||||
}
|
||||
17
Dalamud.Injector/Program/Program.cs
Normal file
17
Dalamud.Injector/Program/Program.cs
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
using System;
|
||||
using CommandLine;
|
||||
|
||||
namespace Dalamud.Injector
|
||||
{
|
||||
internal static class Program
|
||||
{
|
||||
private static void Main(string[] args)
|
||||
{
|
||||
Parser.Default.ParseArguments<InjectOptions>(args)
|
||||
.WithParsed<InjectOptions>(opt =>
|
||||
{
|
||||
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue