2023-01-14 11:31:39 -05:00

21 lines
623 B
C#

using AssetRipper.SourceGenerated.Subclasses.CrashReportingSettings;
namespace AssetRipper.SourceGenerated.Extensions
{
public static class CrashReportingSettingsExtensions
{
public static void ConvertToEditorFormat(this ICrashReportingSettings settings)
{
if (settings.Has_NativeEventUrl() && settings.NativeEventUrl.Data.Length == 0)
{
settings.NativeEventUrl.String = "https://perf-events.cloud.unity3d.com/symbolicate"; //not sure where this url came from
}
// NOTE: editor has different value than player
settings.LogBufferSize = 10;
settings.CaptureEditorExceptions = true;
}
}
}