public BaseExtractor(BaseProject project) { this.project = project; if (File.Exists(StringsPath)) { TranslateStrings = JsonConvert.DeserializeObject <List <TranslateString> >(File.ReadAllText(StringsPath)); foreach (var ts in TranslateStrings) { TranslateStringDict[ts.Original] = ts; } } }
public static BaseProject IdentificationProject(string path) { BaseProject result = null; if ((result = RPGMV.Dieselmine.RPGMVDieselmineProject.Identification(path)) != null) { return(result); } if ((result = RPGMV.RPGMVProject.Identification(path)) != null) { return(result); } return(new BaseProject(path)); }