private static bool IsDeveloperMode(bool isSyrup, string devDir, DeveloperConfig dv) { if (isSyrup) { return(false); } return(Directory.Exists(devDir) && dv.IgnoreMe == false); }
private static DeveloperConfig GetDevSettings(string devDir) { var res = new DeveloperConfig(); if (!Directory.Exists(devDir)) { return(res); } var devConfig = Path.Combine(devDir, _DEV_FILE); if (!File.Exists(devConfig)) { return(res); } var json = File.ReadAllText(devConfig); var conf = JsonConvert.DeserializeObject <DeveloperConfig>(json); return(conf); }