mirror of
https://github.com/RaidMax/IW4M-Admin.git
synced 2025-06-10 15:20:48 -05:00
@ -18,10 +18,12 @@ namespace SharedLibraryCore.Configuration
|
||||
|
||||
public void Build()
|
||||
{
|
||||
var configContent = File.ReadAllText(_configurationPath);
|
||||
_configuration = JsonConvert.DeserializeObject<T>(configContent);
|
||||
|
||||
if (_configuration == null)
|
||||
try
|
||||
{
|
||||
var configContent = File.ReadAllText(_configurationPath);
|
||||
_configuration = JsonConvert.DeserializeObject<T>(configContent);
|
||||
}
|
||||
catch
|
||||
{
|
||||
_configuration = default(T);
|
||||
}
|
||||
|
Reference in New Issue
Block a user