mirror of
https://github.com/Gurge44/EndlessHostRoles.git
synced 2026-10-20 11:39:54 +00:00
29 lines
782 B
C#
29 lines
782 B
C#
using System;
|
|
using static EHR.Translator;
|
|
|
|
namespace EHR
|
|
{
|
|
public static class AddSteamID
|
|
{
|
|
private const string FilePath = "./steam_appid.txt";
|
|
|
|
public static void AddSteamAppIdFile()
|
|
{
|
|
try
|
|
{
|
|
if (!File.Exists(FilePath))
|
|
{
|
|
Logger.Warn("Creating a new steam_appid.txt file", "AddSteamID");
|
|
File.Create(FilePath).Close();
|
|
File.WriteAllText(FilePath, "945360");
|
|
|
|
ModUpdater.ShowPopup(GetString("AppIDAdded"), StringNames.Close, true);
|
|
}
|
|
}
|
|
catch (Exception e)
|
|
{
|
|
Utils.ThrowException(e);
|
|
}
|
|
}
|
|
}
|
|
} |