mirror of
https://github.com/Gurge44/EndlessHostRoles.git
synced 2026-10-20 11:39:54 +00:00
21 lines
550 B
C#
21 lines
550 B
C#
using System.IO;
|
|
using static EHR.Translator;
|
|
|
|
namespace EHR;
|
|
|
|
public class AddSteamID
|
|
{
|
|
private static readonly string FilePath = @"./steam_appid.txt";
|
|
|
|
public static void AddSteamAppIdFile()
|
|
{
|
|
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);
|
|
}
|
|
}
|
|
} |