Example #1
0
        public string GetFolder(Loader.Extension extension)
        {
            var path = Path.Combine("ImpostorHq.Extension.Data", extension.Information.Package);

            if (!Directory.Exists(path))
            {
                Directory.CreateDirectory(path);
            }
            return(path);
        }
Example #2
0
 public string GetConfigPath(Loader.Extension extension, string id)
 {
     return(Path.Combine(GetFolder(extension), $"{id}.{extension.Information.Version}.cfg"));
 }