Add project files.

This commit is contained in:
2026-03-08 20:45:01 +01:00
commit 053a4052dd
45 changed files with 2578 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
using System.Diagnostics;
using System.Diagnostics.CodeAnalysis;
namespace LeagueAPI.Utils;
public interface IPortTokenBehavior
{
bool TryGet(Process process, out string remotingAuthToken, out int appPort, [NotNullWhen(false)] out Exception? exception);
void MapArguments(IReadOnlyList<string> args, Dictionary<string, string> _args)
{
foreach (string arg in args)
{
if (arg.Length > 0 && arg.Contains('='))
{
string text = arg;
string[] array = text[2..].Split("=");
string key = array[0];
string value = array[1];
_args[key] = value;
}
}
}
}