diff --git a/Haru.sln b/Haru.sln new file mode 100644 index 0000000..04452dd --- /dev/null +++ b/Haru.sln @@ -0,0 +1,22 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.30114.105 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Launcher", "Launcher\Launcher.csproj", "{748D03B7-017B-47D7-81B3-BAD2E6AD4C11}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {748D03B7-017B-47D7-81B3-BAD2E6AD4C11}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {748D03B7-017B-47D7-81B3-BAD2E6AD4C11}.Debug|Any CPU.Build.0 = Debug|Any CPU + {748D03B7-017B-47D7-81B3-BAD2E6AD4C11}.Release|Any CPU.ActiveCfg = Release|Any CPU + {748D03B7-017B-47D7-81B3-BAD2E6AD4C11}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection +EndGlobal diff --git a/Launcher/Launcher.csproj b/Launcher/Launcher.csproj new file mode 100644 index 0000000..94d9565 --- /dev/null +++ b/Launcher/Launcher.csproj @@ -0,0 +1,11 @@ + + + + Exe + net6.0 + disable + disable + icon.ico + + + diff --git a/Launcher/Program.cs b/Launcher/Program.cs new file mode 100644 index 0000000..82882f4 --- /dev/null +++ b/Launcher/Program.cs @@ -0,0 +1,23 @@ +using System; +using System.Diagnostics; + +namespace Haru.Launcher +{ + class Program + { + static void Main(string[] args) + { + var sessionId = "haru-singleplayer"; + var host = "http://localhost:8000"; + var exe = "EscapeFromTarkov.exe"; + var process = new ProcessStartInfo(exe) + { + Arguments = "-force-gfx-jobs native -token=" + sessionId + "-config={\"backendurl\":\"" + host + "\",\"version\":\"live\"}", + UseShellExecute = false + }; + + Process.Start(process); + Environment.Exit(0); + } + } +} \ No newline at end of file diff --git a/Launcher/icon.ico b/Launcher/icon.ico new file mode 100644 index 0000000..e3e032f Binary files /dev/null and b/Launcher/icon.ico differ