void Start() { //read the settings if (!Directory.Exists(Path.Combine(Application.dataPath, @"..\Config"))) { _log.Info($"Creating settings folder: {Path.Combine(Application.dataPath, @"..\Config")}"); } if (File.Exists(Path.Combine(Application.dataPath, @"..\Config\settings.ini"))) { _log.Info($"Loading settings from {Path.Combine(Application.dataPath, @"..\Config\settings.ini")}"); SettingsLoader.LoadJediumSettings(Test.Instance.MainSettings, Path.Combine(Application.dataPath, @"..\Config\settings.ini")); } else { //create settings _log.Info($"Creating settings file: {Path.Combine(Application.dataPath, @"..\Config\settings.ini")}"); SettingsLoader.SaveJediumSettings(Test.Instance.MainSettings, Path.Combine(Application.dataPath, @"..\Config\settings.ini")); } }