WIP corehook

This commit is contained in:
Mino 2020-02-27 12:10:07 +09:00
parent 3f78ca5b81
commit 69e7cf9af9
7 changed files with 69 additions and 9 deletions

View 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!;
}
}

View 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 =>
{
});
}
}
}