コード例 #1
0
        public ModManager()
        {
            _steam = new SteamLocator();
            _thunderstoreClient = new ThunderstoreClient();

            Mods = new HashSet <ModPackage>();
        }
コード例 #2
0
        public override List <string> Configure()
        {
            var gsiDir = $"{SteamLocator.FindGame(SteamId)}\\game\\dota\\cfg\\gamestate_integration\\";

            Directory.CreateDirectory(gsiDir);

            File.WriteAllText($"{gsiDir}\\{FileName}", Config);

            return(new List <string> {
                $"{gsiDir}\\{FileName}"
            });
        }
コード例 #3
0
 public override bool IsConfigured() =>
 File.Exists($"{SteamLocator.FindGame(SteamId)}\\game\\dota\\cfg\\gamestate_integration\\{FileName}");
コード例 #4
0
 public override bool IsConfigured() =>
 File.Exists($"{SteamLocator.FindGame(SteamId)}\\csgo\\cfg\\{FileName}");