mirror of
https://github.com/Gurge44/EndlessHostRoles.git
synced 2026-10-20 01:46:25 +00:00
28 lines
689 B
C#
28 lines
689 B
C#
#if !ANDROID
|
|
using System;
|
|
#endif
|
|
|
|
namespace EHR;
|
|
|
|
public static class AddSteamID
|
|
{
|
|
private const string FilePath = "./steam_appid.txt";
|
|
|
|
public static void AddSteamAppIdFile()
|
|
{
|
|
#if !ANDROID
|
|
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(Translator.GetString("AppIDAdded"), StringNames.Close, true);
|
|
}
|
|
}
|
|
catch (Exception e) { Utils.ThrowException(e); }
|
|
#endif
|
|
}
|
|
} |