/// <summary> /// Saves all settings files with pending changes. /// </summary> private void SaveFiles() { if (_config.IsChanged && !GuiResizer.IsResizing && !Input.GetMouseButton(0)) { _config.Save(); $"saved settings to {_config.FilePath}".Log(); } if (_map.IsChanged) { _map.Save(); } if (_items.IsChanged) { _items.Save(); } }