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:
parent
e336b1a7f3
commit
e7de04ae34
@ -81,6 +81,9 @@ namespace EliteBGS.Util {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void LoadObjectives(Report report) {
|
public void LoadObjectives(Report report) {
|
||||||
|
if (!File.Exists(objectives_file)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
var serializer = JsonSerializer.CreateDefault();
|
var serializer = JsonSerializer.CreateDefault();
|
||||||
using (var file = new StreamReader(File.OpenRead(objectives_file), Encoding.UTF8)) {
|
using (var file = new StreamReader(File.OpenRead(objectives_file), Encoding.UTF8)) {
|
||||||
var stream = new JsonTextReader(file);
|
var stream = new JsonTextReader(file);
|
||||||
|
Loading…
Reference in New Issue
Block a user