private void Reload() { var gcMain = GraphicsConfig.FromFile(_mainFile.FullName); var gcOverride = GraphicsConfig.FromFile(_overrideFile.FullName); if (gcMain == null) { return; } if (gcOverride == null && _overrideFile.Exists) { return; } gcMain.OverrideWith(gcOverride); Changed?.Invoke(this, gcMain); }
private void Reload() { var gcMain = FileOperations.RetryIfNull( () => GraphicsConfig.FromFile(_mainFile.FullName), _reloadRetries); var gcOverride = FileOperations.RetryIfNull( () => GraphicsConfig.FromFile(_overrideFile.FullName), _reloadRetries); if (gcMain == null) { return; } if (gcOverride != null) { gcMain.OverrideWith(gcOverride); } Changed?.Invoke(this, gcMain); }