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.
This commit is contained in:
Florian Stinglmayr 2022-02-16 09:29:23 +01:00
parent e336b1a7f3
commit e7de04ae34

View File

@ -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);