예제 #1
0
        private static bool IsDeveloperMode(bool isSyrup, string devDir, DeveloperConfig dv)
        {
            if (isSyrup)
            {
                return(false);
            }

            return(Directory.Exists(devDir) && dv.IgnoreMe == false);
        }
예제 #2
0
        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);
        }