mirror of
https://github.com/BepInEx/BepInEx.git
synced 2026-10-20 01:46:13 +00:00
Add initial configuration provider API
This commit is contained in:
1 parent
fe992b0f2c
commit
3a2c4fc526
2 files changed
+30
No files matched your search
@@ -0,0 +1,17 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
namespace BepInEx.Configuration
|
||||
{
|
||||
public static class ConfigurationPath
|
||||
{
|
||||
public static readonly string KeyDelimiter = ":";
|
||||
|
||||
public static string Combine(IEnumerable<string> segements)
|
||||
{
|
||||
segements = segements ?? throw new ArgumentNullException(nameof(segements));
|
||||
return string.Join(KeyDelimiter, segements.ToArray());
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace BepInEx.Configuration
|
||||
{
|
||||
public abstract class ConfigurationProvider
|
||||
{
|
||||
public IDictionary<string, string> RawData { get; }
|
||||
|
||||
public abstract void Load();
|
||||
|
||||
public abstract void Save();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user