From e7de04ae34d1d3ffe33259ff1a78220f647360e6 Mon Sep 17 00:00:00 2001 From: Florian Stinglmayr Date: Wed, 16 Feb 2022 09:29:23 +0100 Subject: [PATCH] do not complain about missing objectives files Manually added objectives are getting rarer now. Since the auto generation of objectives is getting better and beter. --- Util/Config.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Util/Config.cs b/Util/Config.cs index 8666a96..fe86ae8 100644 --- a/Util/Config.cs +++ b/Util/Config.cs @@ -81,6 +81,9 @@ namespace EliteBGS.Util { } public void LoadObjectives(Report report) { + if (!File.Exists(objectives_file)) { + return; + } var serializer = JsonSerializer.CreateDefault(); using (var file = new StreamReader(File.OpenRead(objectives_file), Encoding.UTF8)) { var stream = new JsonTextReader(file);