mirror of
https://github.com/Caraxi/mare.client.git
synced 2025-12-12 16:47:22 +01:00
rework configuration save, load configuration backups when available and config cannot be read
This commit is contained in:
parent
eb385a859c
commit
d60d1979ce
12 changed files with 213 additions and 55 deletions
11
MareSynchronos/MareConfiguration/IConfigService.cs
Normal file
11
MareSynchronos/MareConfiguration/IConfigService.cs
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
using MareSynchronos.MareConfiguration.Configurations;
|
||||
|
||||
namespace MareSynchronos.MareConfiguration;
|
||||
|
||||
public interface IConfigService<out T> : IDisposable where T : IMareConfiguration
|
||||
{
|
||||
T Current { get; }
|
||||
string ConfigurationName { get; }
|
||||
string ConfigurationPath { get; }
|
||||
public event EventHandler? ConfigSave;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue