mirror of
https://github.com/BepInEx/BepInEx.git
synced 2026-10-20 01:46:13 +00:00
Resolve core config lazily
This commit is contained in:
1 parent
12288059b2
commit
141d1d0b14
1 file changed
+3
-1
@@ -39,7 +39,9 @@ namespace BepInEx.Configuration
|
||||
if (saveOnInit) Save();
|
||||
}
|
||||
|
||||
public static ConfigFile CoreConfig { get; } = new(Paths.BepInExConfigPath, true);
|
||||
|
||||
private static ConfigFile core;
|
||||
public static ConfigFile CoreConfig => core ??= new(Paths.BepInExConfigPath, true);
|
||||
|
||||
public IConfigurationProvider ConfigurationProvider { get; }
|
||||
|
||||
|
||||
Reference in new issue
Block a user