Files
EndlessHostRoles/Modules/AddSteamID.cs
T
PHGaming121 27bd9c2e4d Add code for auto adding steam_appid.txt file (#43)
* Create main file

* make ShowPopup public

* add string (en_US.json)

* Update pt_BR.json
2024-03-12 15:04:23 +01:00

21 lines
586 B
C#

using System.IO;
using static TOHE.Translator;
namespace TOHE;
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, true);
}
}
}