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);
        }
Ejemplo n.º 2
0
        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);
        }