haha forgot to push,,,
This commit is contained in:
@@ -36,11 +36,15 @@ namespace undead_universal_patch_il2cpp.Core.Config
|
||||
{
|
||||
public static ConfigEntry<bool> CustomEmotes;
|
||||
public static ConfigEntry<bool> CustomPhoton;
|
||||
public static ConfigEntry<bool> CustomMarquee;
|
||||
public static ConfigEntry<bool> CustomKnownDlls;
|
||||
}
|
||||
public static class ServerPatchesConfigDefaults
|
||||
{
|
||||
public static bool CustomEmotes = false;
|
||||
public static bool CustomPhoton = false;
|
||||
public static bool CustomMarquee = false;
|
||||
public static bool CustomKnownDlls = false;
|
||||
}
|
||||
public static class GameManagerConfig
|
||||
{
|
||||
|
||||
@@ -37,11 +37,11 @@ public class DediConfig<T>
|
||||
if (loaded) return cached;
|
||||
|
||||
string data = GetAlways();
|
||||
cached = JsonSerializer.Deserialize<T>(data, _options == null ? new JsonSerializerOptions()
|
||||
cached = JsonSerializer.Deserialize<T>(data, _options ?? new JsonSerializerOptions()
|
||||
{
|
||||
PropertyNameCaseInsensitive = true,
|
||||
AllowTrailingCommas = true
|
||||
} : _options);
|
||||
});
|
||||
|
||||
loaded = true;
|
||||
return cached;
|
||||
|
||||
Reference in New Issue
Block a user