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); }
public string GetConfigPath(Loader.Extension extension, string id) { return(Path.Combine(GetFolder(extension), $"{id}.{extension.Information.Version}.cfg")); }