Install GSI

This commit is contained in:
glax 2024-01-13 21:42:48 +01:00
parent e5ba8b1871
commit fb23f94e4e

View File

@ -4,7 +4,13 @@ namespace OpenCS2hock;
public static class Installer
{
public static string? GetInstallDirectory(int appId = 730)
public static void InstallGsi()
{
string installLocation = Path.Combine(GetInstallDirectory(), "game\\csgo\\cfg\\gamestate_integration_opencs2hock.cfg");
File.WriteAllText(installLocation, Resources.GSI_CFG_Content);
}
public static string GetInstallDirectory(int appId = 730)
{
string steamInstallation =
#pragma warning disable CA1416 //Registry only available on Windows
@ -29,4 +35,5 @@ public static class Installer
return installationPath;
}
}