muffin v7.5.11
This commit is contained in:
parent
addf2d530f
commit
3102923ce2
522 changed files with 41082 additions and 211592 deletions
|
|
@ -1,8 +1,6 @@
|
|||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Globalization;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Text;
|
||||
using Dalamud.Plugin.Services;
|
||||
using Microsoft.Extensions.Logging;
|
||||
|
|
@ -25,130 +23,6 @@ public sealed class DalamudLoggerProvider : ILoggerProvider, IDisposable, ISuppo
|
|||
public void Dispose()
|
||||
{
|
||||
}
|
||||
|
||||
void IDisposable.Dispose()
|
||||
{
|
||||
//ILSpy generated this explicit interface implementation from .override directive in Dispose
|
||||
this.Dispose();
|
||||
}
|
||||
}
|
||||
|
||||
[Serializable]
|
||||
[CompilerGenerated]
|
||||
private sealed class _003C_003Ec__8<TState> where TState : notnull
|
||||
{
|
||||
public static readonly _003C_003Ec__8<TState> _003C_003E9 = new _003C_003Ec__8<TState>();
|
||||
|
||||
public static Action<object?, StringBuilder> _003C_003E9__8_0;
|
||||
|
||||
[MethodImpl(MethodImplOptions.NoInlining)]
|
||||
internal void _003CLog_003Eb__8_0(object? scope, StringBuilder builder)
|
||||
{
|
||||
int num;
|
||||
if (scope is IEnumerable<KeyValuePair<string, object>> enumerable)
|
||||
{
|
||||
IEnumerator<KeyValuePair<string, object>> enumerator = enumerable.GetEnumerator();
|
||||
try
|
||||
{
|
||||
num = 1757387982;
|
||||
while (true)
|
||||
{
|
||||
int num2 = num;
|
||||
int num3 = 1757387982;
|
||||
int num4 = num2;
|
||||
int num5 = num4 + num3;
|
||||
int num6 = num4 & num3;
|
||||
switch (num5 - (num6 + num6))
|
||||
{
|
||||
case 0:
|
||||
num = (_202E_200F_206A_200B_200E_206F_200D_206F_200E_202A_206D_200F_206F_202C_200F_206C_200F_202E_200E_200C_202C_200F_206F_200E_200B_200C_200B_202A_200F_206D_200E_206C_200B_206B_200C_202B_206C_200E_202D_206D_202E((IEnumerator)enumerator) ? 1757387983 : 1757387980);
|
||||
break;
|
||||
case 1:
|
||||
{
|
||||
KeyValuePair<string, object> current = enumerator.Current;
|
||||
_206C_206C_200B_206D_202D_206E_202E_202D_200E_206A_200E_200C_206E_206B_206A_200D_200C_200D_200E_206E_200B_202E_202E_206A_206A_206A_206E_200B_200E_200E_200D_200F_206F_200F_206F_202B_200C_206A_202E_202B_202E(_202B_202D_202A_202C_202B_200C_200F_202C_206A_206D_200E_202C_200C_200F_200E_200B_202B_206F_202E_200E_200C_200C_206F_206E_200E_206D_200D_202C_200C_206B_200E_202D_202C_202A_202E_200F_200E_200B_200D_200F_202E(_202E_202A_206C_206E_206F_202C_206D_206E_202C_200C_200C_202B_200E_202B_202B_200D_200E_200B_202B_206B_202B_206E_200C_206B_206E_206B_200E_202C_202C_202C_206E_206B_202A_206B_206A_200D_200B_200B_206F_202E_202E(_206C_206C_200B_206D_202D_206E_202E_202D_200E_206A_200E_200C_206E_206B_206A_200D_200C_200D_200E_206E_200B_202E_202E_206A_206A_206A_206E_200B_200E_200E_200D_200F_206F_200F_206F_202B_200C_206A_202E_202B_202E(_202E_202A_206C_206E_206F_202C_206D_206E_202C_200C_200C_202B_200E_202B_202B_200D_200E_200B_202B_206B_202B_206E_200C_206B_206E_206B_200E_202C_202C_202C_206E_206B_202A_206B_206A_200D_200B_200B_206F_202E_202E(builder, '<'), current.Key), '='), current.Value), global::_003CModule_003E._202E_202C_206D_206B_202B_202D_206D_202E_206F_202E_202A_206A_206A_202B_206A_202D_202C_206C_206B_202C_206E_202B_200E_206E_206A_206C_200D_200D_200F_200B_202C_200B_200E_206F_202C_200F_202D_202A_206E_202B_202E<string>(783152655));
|
||||
num = 1757387982;
|
||||
break;
|
||||
}
|
||||
case 3:
|
||||
num = 1757387982;
|
||||
break;
|
||||
case 2:
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
finally
|
||||
{
|
||||
num = ((enumerator == null) ? 1601489106 : 1601489107);
|
||||
while (true)
|
||||
{
|
||||
int num7 = num;
|
||||
int num3 = 1601489106;
|
||||
int num4 = num7;
|
||||
switch ((num4 | num3) - (num4 & num3))
|
||||
{
|
||||
case 2:
|
||||
num = 1601489107;
|
||||
break;
|
||||
case 1:
|
||||
_200E_202B_206E_200C_200B_200E_206F_200F_200B_206F_200B_202A_200D_206D_206C_202C_200D_200C_206F_200F_206C_206A_202B_206B_200C_206A_202E_206F_206B_200B_206F_202C_200E_202C_202D_202E_206A_202D_206F_206B_202E((IDisposable)enumerator);
|
||||
num = 1601489106;
|
||||
break;
|
||||
case 0:
|
||||
goto end_IL_00e6;
|
||||
}
|
||||
continue;
|
||||
end_IL_00e6:
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
num = ((scope == null) ? (-1655192650) : (-1655192651));
|
||||
while (true)
|
||||
{
|
||||
int num8 = num;
|
||||
int num3 = -1655192649;
|
||||
int num4 = num8;
|
||||
switch ((num4 | num3) - (num4 & num3))
|
||||
{
|
||||
case 0:
|
||||
num = -1655192651;
|
||||
break;
|
||||
case 2:
|
||||
_206C_206C_200B_206D_202D_206E_202E_202D_200E_206A_200E_200C_206E_206B_206A_200D_200C_200D_200E_206E_200B_202E_202E_206A_206A_206A_206E_200B_200E_200E_200D_200F_206F_200F_206F_202B_200C_206A_202E_202B_202E(_202B_202D_202A_202C_202B_200C_200F_202C_206A_206D_200E_202C_200C_200F_200E_200B_202B_206F_202E_200E_200C_200C_206F_206E_200E_206D_200D_202C_200C_206B_200E_202D_202C_202A_202E_200F_200E_200B_200D_200F_202E(_202E_202A_206C_206E_206F_202C_206D_206E_202C_200C_200C_202B_200E_202B_202B_200D_200E_200B_202B_206B_202B_206E_200C_206B_206E_206B_200E_202C_202C_202C_206E_206B_202A_206B_206A_200D_200B_200B_206F_202E_202E(builder, '<'), scope), global::_003CModule_003E._202E_202C_206D_206B_202B_202D_206D_202E_206F_202E_202A_206A_206A_202B_206A_202D_202C_206C_206B_202C_206E_202B_200E_206E_206A_206C_200D_200D_200F_200B_202C_200B_200E_206F_202C_200F_202D_202A_206E_202B_202E<string>(783152655));
|
||||
num = -1655192650;
|
||||
break;
|
||||
case 1:
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static StringBuilder _202E_202A_206C_206E_206F_202C_206D_206E_202C_200C_200C_202B_200E_202B_202B_200D_200E_200B_202B_206B_202B_206E_200C_206B_206E_206B_200E_202C_202C_202C_206E_206B_202A_206B_206A_200D_200B_200B_206F_202E_202E(StringBuilder P_0, char P_1)
|
||||
{
|
||||
return P_0.Append(P_1);
|
||||
}
|
||||
|
||||
static StringBuilder _206C_206C_200B_206D_202D_206E_202E_202D_200E_206A_200E_200C_206E_206B_206A_200D_200C_200D_200E_206E_200B_202E_202E_206A_206A_206A_206E_200B_200E_200E_200D_200F_206F_200F_206F_202B_200C_206A_202E_202B_202E(StringBuilder P_0, string P_1)
|
||||
{
|
||||
return P_0.Append(P_1);
|
||||
}
|
||||
|
||||
static StringBuilder _202B_202D_202A_202C_202B_200C_200F_202C_206A_206D_200E_202C_200C_200F_200E_200B_202B_206F_202E_200E_200C_200C_206F_206E_200E_206D_200D_202C_200C_206B_200E_202D_202C_202A_202E_200F_200E_200B_200D_200F_202E(StringBuilder P_0, object P_1)
|
||||
{
|
||||
return P_0.Append(P_1);
|
||||
}
|
||||
|
||||
static bool _202E_200F_206A_200B_200E_206F_200D_206F_200E_202A_206D_200F_206F_202C_200F_206C_200F_202E_200E_200C_202C_200F_206F_200E_200B_200C_200B_202A_200F_206D_200E_206C_200B_206B_200C_202B_206C_200E_202D_206D_202E(IEnumerator P_0)
|
||||
{
|
||||
return P_0.MoveNext();
|
||||
}
|
||||
|
||||
static void _200E_202B_206E_200C_200B_200E_206F_200F_200B_206F_200B_202A_200D_206D_206C_202C_200D_200C_206F_200F_206C_206A_202B_206B_200C_206A_202E_206F_206B_200B_206F_202C_200E_202C_202D_202E_206A_202D_206F_206B_202E(IDisposable P_0)
|
||||
{
|
||||
P_0.Dispose();
|
||||
}
|
||||
}
|
||||
|
||||
private readonly string? _name;
|
||||
|
|
@ -168,309 +42,66 @@ public sealed class DalamudLoggerProvider : ILoggerProvider, IDisposable, ISuppo
|
|||
|
||||
public IDisposable BeginScope<TState>(TState state) where TState : notnull
|
||||
{
|
||||
IExternalScopeProvider? scopeProvider = ScopeProvider;
|
||||
return ((scopeProvider != null) ? _200D_200D_200D_200D_202E_202C_202B_202A_200D_206C_202C_202B_206E_200C_202A_200F_202E_200C_202C_202D_206B_206A_206D_206C_206B_200D_200B_202E_206B_200B_202A_202E_200B_200F_206D_206C_202A_200F_200F_202E(scopeProvider, (object)state) : null) ?? NullScope.Instance;
|
||||
}
|
||||
|
||||
IDisposable ILogger.BeginScope<TState>(TState state)
|
||||
{
|
||||
//ILSpy generated this explicit interface implementation from .override directive in BeginScope
|
||||
return this.BeginScope<TState>(state);
|
||||
return ScopeProvider?.Push(state) ?? NullScope.Instance;
|
||||
}
|
||||
|
||||
public bool IsEnabled(LogLevel logLevel)
|
||||
{
|
||||
int num = ((logLevel != LogLevel.None) ? 833573961 : 833573962);
|
||||
while (true)
|
||||
if (logLevel == LogLevel.None)
|
||||
{
|
||||
int num2 = num;
|
||||
int num3 = 833573960;
|
||||
int num4 = num2;
|
||||
switch ((num4 | num3) - (num4 & num3))
|
||||
{
|
||||
case 0:
|
||||
goto IL_0042;
|
||||
case 1:
|
||||
return ToSerilogLevel(logLevel) >= _200C_202A_200F_206D_200B_200B_206C_206B_202D_202A_206F_206A_202E_200E_200E_202B_202A_202B_200F_202E_206E_200C_206D_202C_200B_202E_206B_206B_202B_202C_202D_206B_202B_200C_202E_206A_202E_202B_202C_206B_202E(_pluginLog);
|
||||
case 2:
|
||||
return false;
|
||||
}
|
||||
continue;
|
||||
IL_0042:
|
||||
num = 833573962;
|
||||
return false;
|
||||
}
|
||||
return ToSerilogLevel(logLevel) >= _pluginLog.MinimumLogLevel;
|
||||
}
|
||||
|
||||
bool ILogger.IsEnabled(LogLevel logLevel)
|
||||
{
|
||||
//ILSpy generated this explicit interface implementation from .override directive in IsEnabled
|
||||
return this.IsEnabled(logLevel);
|
||||
}
|
||||
|
||||
[MethodImpl(MethodImplOptions.NoInlining)]
|
||||
public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter)
|
||||
{
|
||||
int num = (IsEnabled(logLevel) ? (-262151412) : (-262151415));
|
||||
StringBuilder stringBuilder = default(StringBuilder);
|
||||
LogEventLevel logEventLevel = default(LogEventLevel);
|
||||
while (true)
|
||||
if (!IsEnabled(logLevel))
|
||||
{
|
||||
int num2 = num;
|
||||
int num3 = -262151412;
|
||||
int num4 = num2;
|
||||
switch ((num4 | num3) - (num4 & num3))
|
||||
{
|
||||
default:
|
||||
continue;
|
||||
case 4:
|
||||
num = -262151415;
|
||||
continue;
|
||||
case 3:
|
||||
_202D_206F_206C_206C_206A_202A_200D_200F_206B_200B_206A_206D_200D_206E_200F_202D_202B_206F_202E_200F_200E_206C_206F_206A_206D_206C_206C_200C_206A_202A_206F_206F_206E_206C_202E_200B_206A_202A_206B_200F_202E(stringBuilder, formatter(state, null));
|
||||
_202B_202B_202B_200F_202D_200E_202B_206B_200C_206E_200B_206E_206E_202A_202D_206C_200B_200F_202E_206B_200B_202D_206F_200D_200E_202D_206A_202E_200E_202C_202E_202E_206C_202A_202B_206F_206A_206C_206B_206A_202E(_pluginLog, logEventLevel, exception, _202E_202E_206E_200E_200D_200E_206F_202D_202D_202D_200D_200C_202D_200B_202A_200F_202E_202B_200F_206E_202B_200E_200B_206E_202A_206B_202B_200D_202C_206F_202A_202E_202E_206C_202E_202E_200C_200F_200B_206C_202E((object)stringBuilder), Array.Empty<object>());
|
||||
return;
|
||||
case 0:
|
||||
{
|
||||
_206B_206F_202E_206A_200C_200F_200F_200B_206E_202C_206C_206F_200B_206A_202D_202B_202E_200D_202B_206B_206F_206A_202A_206A_206B_206E_206D_200D_206E_206C_200D_202C_206F_206E_200D_206A_200D_200B_200E_202D_202E((object)formatter, global::_003CModule_003E._206E_202B_206C_202A_202A_200E_202B_202B_206D_200B_200C_206B_200B_206D_202E_202D_206C_202B_200B_206A_202D_206C_202A_200F_202D_200C_200B_200B_200B_200D_202C_206E_206D_202E_200C_206B_206A_206D_202D_202C_202E<string>(134909540));
|
||||
logEventLevel = ToSerilogLevel(logLevel);
|
||||
stringBuilder = _206B_206B_202C_206B_206D_200B_206F_202A_206D_200D_200F_200C_202A_200D_202E_206E_202A_206E_202A_202B_206F_202C_202B_206D_202E_206E_202D_200F_202B_206C_202C_200F_200D_206F_200E_206A_200C_200F_206D_202E();
|
||||
IExternalScopeProvider? scopeProvider = ScopeProvider;
|
||||
if (scopeProvider == null)
|
||||
{
|
||||
break;
|
||||
}
|
||||
scopeProvider.ForEachScope([MethodImpl(MethodImplOptions.NoInlining)] (object? scope, StringBuilder builder) =>
|
||||
{
|
||||
int num5;
|
||||
if (scope is IEnumerable<KeyValuePair<string, object>> enumerable)
|
||||
{
|
||||
IEnumerator<KeyValuePair<string, object>> enumerator = enumerable.GetEnumerator();
|
||||
try
|
||||
{
|
||||
num5 = 1757387982;
|
||||
while (true)
|
||||
{
|
||||
int num6 = num5;
|
||||
int num7 = 1757387982;
|
||||
int num8 = num6;
|
||||
int num9 = num8 + num7;
|
||||
int num10 = num8 & num7;
|
||||
switch (num9 - (num10 + num10))
|
||||
{
|
||||
case 0:
|
||||
num5 = (_003C_003Ec__8<TState>._202E_200F_206A_200B_200E_206F_200D_206F_200E_202A_206D_200F_206F_202C_200F_206C_200F_202E_200E_200C_202C_200F_206F_200E_200B_200C_200B_202A_200F_206D_200E_206C_200B_206B_200C_202B_206C_200E_202D_206D_202E((IEnumerator)enumerator) ? 1757387983 : 1757387980);
|
||||
break;
|
||||
case 1:
|
||||
{
|
||||
KeyValuePair<string, object> current = enumerator.Current;
|
||||
_003C_003Ec__8<TState>._206C_206C_200B_206D_202D_206E_202E_202D_200E_206A_200E_200C_206E_206B_206A_200D_200C_200D_200E_206E_200B_202E_202E_206A_206A_206A_206E_200B_200E_200E_200D_200F_206F_200F_206F_202B_200C_206A_202E_202B_202E(_003C_003Ec__8<TState>._202B_202D_202A_202C_202B_200C_200F_202C_206A_206D_200E_202C_200C_200F_200E_200B_202B_206F_202E_200E_200C_200C_206F_206E_200E_206D_200D_202C_200C_206B_200E_202D_202C_202A_202E_200F_200E_200B_200D_200F_202E(_003C_003Ec__8<TState>._202E_202A_206C_206E_206F_202C_206D_206E_202C_200C_200C_202B_200E_202B_202B_200D_200E_200B_202B_206B_202B_206E_200C_206B_206E_206B_200E_202C_202C_202C_206E_206B_202A_206B_206A_200D_200B_200B_206F_202E_202E(_003C_003Ec__8<TState>._206C_206C_200B_206D_202D_206E_202E_202D_200E_206A_200E_200C_206E_206B_206A_200D_200C_200D_200E_206E_200B_202E_202E_206A_206A_206A_206E_200B_200E_200E_200D_200F_206F_200F_206F_202B_200C_206A_202E_202B_202E(_003C_003Ec__8<TState>._202E_202A_206C_206E_206F_202C_206D_206E_202C_200C_200C_202B_200E_202B_202B_200D_200E_200B_202B_206B_202B_206E_200C_206B_206E_206B_200E_202C_202C_202C_206E_206B_202A_206B_206A_200D_200B_200B_206F_202E_202E(builder, '<'), current.Key), '='), current.Value), global::_003CModule_003E._202E_202C_206D_206B_202B_202D_206D_202E_206F_202E_202A_206A_206A_202B_206A_202D_202C_206C_206B_202C_206E_202B_200E_206E_206A_206C_200D_200D_200F_200B_202C_200B_200E_206F_202C_200F_202D_202A_206E_202B_202E<string>(783152655));
|
||||
num5 = 1757387982;
|
||||
break;
|
||||
}
|
||||
case 3:
|
||||
num5 = 1757387982;
|
||||
break;
|
||||
case 2:
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
finally
|
||||
{
|
||||
num5 = ((enumerator == null) ? 1601489106 : 1601489107);
|
||||
while (true)
|
||||
{
|
||||
int num11 = num5;
|
||||
int num7 = 1601489106;
|
||||
int num8 = num11;
|
||||
switch ((num8 | num7) - (num8 & num7))
|
||||
{
|
||||
case 2:
|
||||
num5 = 1601489107;
|
||||
break;
|
||||
case 1:
|
||||
_003C_003Ec__8<TState>._200E_202B_206E_200C_200B_200E_206F_200F_200B_206F_200B_202A_200D_206D_206C_202C_200D_200C_206F_200F_206C_206A_202B_206B_200C_206A_202E_206F_206B_200B_206F_202C_200E_202C_202D_202E_206A_202D_206F_206B_202E((IDisposable)enumerator);
|
||||
num5 = 1601489106;
|
||||
break;
|
||||
case 0:
|
||||
goto end_IL_00e6;
|
||||
}
|
||||
continue;
|
||||
end_IL_00e6:
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
num5 = ((scope == null) ? (-1655192650) : (-1655192651));
|
||||
while (true)
|
||||
{
|
||||
int num12 = num5;
|
||||
int num7 = -1655192649;
|
||||
int num8 = num12;
|
||||
switch ((num8 | num7) - (num8 & num7))
|
||||
{
|
||||
case 0:
|
||||
num5 = -1655192651;
|
||||
break;
|
||||
case 2:
|
||||
_003C_003Ec__8<TState>._206C_206C_200B_206D_202D_206E_202E_202D_200E_206A_200E_200C_206E_206B_206A_200D_200C_200D_200E_206E_200B_202E_202E_206A_206A_206A_206E_200B_200E_200E_200D_200F_206F_200F_206F_202B_200C_206A_202E_202B_202E(_003C_003Ec__8<TState>._202B_202D_202A_202C_202B_200C_200F_202C_206A_206D_200E_202C_200C_200F_200E_200B_202B_206F_202E_200E_200C_200C_206F_206E_200E_206D_200D_202C_200C_206B_200E_202D_202C_202A_202E_200F_200E_200B_200D_200F_202E(_003C_003Ec__8<TState>._202E_202A_206C_206E_206F_202C_206D_206E_202C_200C_200C_202B_200E_202B_202B_200D_200E_200B_202B_206B_202B_206E_200C_206B_206E_206B_200E_202C_202C_202C_206E_206B_202A_206B_206A_200D_200B_200B_206F_202E_202E(builder, '<'), scope), global::_003CModule_003E._202E_202C_206D_206B_202B_202D_206D_202E_206F_202E_202A_206A_206A_202B_206A_202D_202C_206C_206B_202C_206E_202B_200E_206E_206A_206C_200D_200D_200F_200B_202C_200B_200E_206F_202C_200F_202D_202A_206E_202B_202E<string>(783152655));
|
||||
num5 = -1655192650;
|
||||
break;
|
||||
case 1:
|
||||
return;
|
||||
}
|
||||
}
|
||||
}, stringBuilder);
|
||||
num = -262151411;
|
||||
continue;
|
||||
}
|
||||
case 5:
|
||||
return;
|
||||
case 2:
|
||||
_202D_206F_206C_206C_206A_202A_200D_200F_206B_200B_206A_206D_200D_206E_200F_202D_202B_206F_202E_200F_200E_206C_206F_206A_206D_206C_206C_200C_206A_202A_206F_206F_206E_206C_202E_200B_206A_202A_206B_200F_202E(_202D_206F_206C_206C_206A_202A_200D_200F_206B_200B_206A_206D_200D_206E_200F_202D_202B_206F_202E_200F_200E_206C_206F_206A_206D_206C_206C_200C_206A_202A_206F_206F_206E_206C_202E_200B_206A_202A_206B_200F_202E(stringBuilder, _name), global::_003CModule_003E._206E_202B_206C_202A_202A_200E_202B_202B_206D_200B_200C_206B_200B_206D_202E_202D_206C_202B_200B_206A_202D_206C_202A_200F_202D_200C_200B_200B_200B_200D_202C_206E_206D_202E_200C_206B_206A_206D_202D_202C_202E<string>(-1104179104));
|
||||
num = -262151409;
|
||||
continue;
|
||||
case 1:
|
||||
break;
|
||||
}
|
||||
num = (_202C_202D_200B_206A_200B_200F_206C_200D_200D_202E_200B_206F_202B_200F_200E_206E_202B_200F_200D_206D_206E_206D_206B_206A_200E_200C_200B_202C_206A_206D_206F_202A_200C_200B_202C_202D_202C_200D_206F_206C_202E(_name) ? (-262151409) : (-262151410));
|
||||
return;
|
||||
}
|
||||
ArgumentNullException.ThrowIfNull(formatter, "formatter");
|
||||
LogEventLevel level = ToSerilogLevel(logLevel);
|
||||
StringBuilder stringBuilder = new StringBuilder();
|
||||
ScopeProvider?.ForEachScope(delegate(object? scope, StringBuilder builder)
|
||||
{
|
||||
if (scope is IEnumerable<KeyValuePair<string, object>> enumerable)
|
||||
{
|
||||
{
|
||||
foreach (KeyValuePair<string, object> item in enumerable)
|
||||
{
|
||||
builder.Append('<').Append(item.Key).Append('=')
|
||||
.Append(item.Value)
|
||||
.Append("> ");
|
||||
}
|
||||
return;
|
||||
}
|
||||
}
|
||||
if (scope != null)
|
||||
{
|
||||
builder.Append('<').Append(scope).Append("> ");
|
||||
}
|
||||
}, stringBuilder);
|
||||
if (!string.IsNullOrEmpty(_name))
|
||||
{
|
||||
stringBuilder.Append(_name).Append(": ");
|
||||
}
|
||||
stringBuilder.Append(formatter(state, null));
|
||||
_pluginLog.Write(level, exception, stringBuilder.ToString());
|
||||
}
|
||||
|
||||
void ILogger.Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter)
|
||||
{
|
||||
//ILSpy generated this explicit interface implementation from .override directive in Log
|
||||
this.Log<TState>(logLevel, eventId, state, exception, formatter);
|
||||
}
|
||||
|
||||
[MethodImpl(MethodImplOptions.NoInlining)]
|
||||
private static LogEventLevel ToSerilogLevel(LogLevel logLevel)
|
||||
{
|
||||
int num;
|
||||
LogEventLevel result = default(LogEventLevel);
|
||||
switch (logLevel)
|
||||
return logLevel switch
|
||||
{
|
||||
default:
|
||||
num = -1396162966;
|
||||
goto IL_0029;
|
||||
case LogLevel.Critical:
|
||||
result = LogEventLevel.Fatal;
|
||||
num = -1396162971;
|
||||
goto IL_0029;
|
||||
case LogLevel.Error:
|
||||
goto IL_007b;
|
||||
case LogLevel.Information:
|
||||
goto IL_0093;
|
||||
case LogLevel.Debug:
|
||||
goto IL_00ab;
|
||||
case LogLevel.Warning:
|
||||
goto IL_00b8;
|
||||
case LogLevel.Trace:
|
||||
goto IL_00dc;
|
||||
IL_0029:
|
||||
while (true)
|
||||
{
|
||||
int num2 = num;
|
||||
int num3 = -1396162973;
|
||||
int num4 = num2;
|
||||
int num5 = num4 + num3;
|
||||
int num6 = num4 & num3;
|
||||
switch (num5 - (num6 + num6))
|
||||
{
|
||||
case 4:
|
||||
goto end_IL_0029;
|
||||
case 6:
|
||||
return result;
|
||||
case 1:
|
||||
goto IL_007b;
|
||||
case 9:
|
||||
num = -1396162975;
|
||||
break;
|
||||
case 7:
|
||||
goto IL_0093;
|
||||
case 8:
|
||||
num = -1396162966;
|
||||
break;
|
||||
case 0:
|
||||
goto IL_00ab;
|
||||
case 5:
|
||||
goto IL_00b8;
|
||||
case 2:
|
||||
throw _200C_206F_206D_200F_202B_206C_200D_202B_202A_200F_200C_202A_206C_202E_200C_202C_206C_206C_206A_206A_206B_202D_206B_206F_206D_206F_206C_206B_206D_206C_202E_206C_206D_206C_200C_202A_200D_202E_206A_206B_202E(global::_003CModule_003E._202E_202C_206D_206B_202B_202D_206D_202E_206F_202E_202A_206A_206A_202B_206A_202D_202C_206C_206B_202C_206E_202B_200E_206E_206A_206C_200D_200D_200F_200B_202C_200B_200E_206F_202C_200F_202D_202A_206E_202B_202E<string>(1228083926), (object)logLevel, (string)null);
|
||||
case 3:
|
||||
goto IL_00dc;
|
||||
}
|
||||
continue;
|
||||
end_IL_0029:
|
||||
break;
|
||||
}
|
||||
goto case LogLevel.Critical;
|
||||
IL_00dc:
|
||||
result = LogEventLevel.Verbose;
|
||||
num = -1396162971;
|
||||
goto IL_0029;
|
||||
IL_00b8:
|
||||
result = LogEventLevel.Warning;
|
||||
num = -1396162971;
|
||||
goto IL_0029;
|
||||
IL_00ab:
|
||||
result = LogEventLevel.Debug;
|
||||
num = -1396162971;
|
||||
goto IL_0029;
|
||||
IL_0093:
|
||||
result = LogEventLevel.Information;
|
||||
num = -1396162971;
|
||||
goto IL_0029;
|
||||
IL_007b:
|
||||
result = LogEventLevel.Error;
|
||||
num = -1396162971;
|
||||
goto IL_0029;
|
||||
}
|
||||
}
|
||||
|
||||
static IDisposable _200D_200D_200D_200D_202E_202C_202B_202A_200D_206C_202C_202B_206E_200C_202A_200F_202E_200C_202C_202D_206B_206A_206D_206C_206B_200D_200B_202E_206B_200B_202A_202E_200B_200F_206D_206C_202A_200F_200F_202E(IExternalScopeProvider P_0, object P_1)
|
||||
{
|
||||
return P_0.Push(P_1);
|
||||
}
|
||||
|
||||
static LogEventLevel _200C_202A_200F_206D_200B_200B_206C_206B_202D_202A_206F_206A_202E_200E_200E_202B_202A_202B_200F_202E_206E_200C_206D_202C_200B_202E_206B_206B_202B_202C_202D_206B_202B_200C_202E_206A_202E_202B_202C_206B_202E(IPluginLog P_0)
|
||||
{
|
||||
return P_0.MinimumLogLevel;
|
||||
}
|
||||
|
||||
static void _206B_206F_202E_206A_200C_200F_200F_200B_206E_202C_206C_206F_200B_206A_202D_202B_202E_200D_202B_206B_206F_206A_202A_206A_206B_206E_206D_200D_206E_206C_200D_202C_206F_206E_200D_206A_200D_200B_200E_202D_202E(object P_0, string P_1)
|
||||
{
|
||||
ArgumentNullException.ThrowIfNull(P_0, P_1);
|
||||
}
|
||||
|
||||
static StringBuilder _206B_206B_202C_206B_206D_200B_206F_202A_206D_200D_200F_200C_202A_200D_202E_206E_202A_206E_202A_202B_206F_202C_202B_206D_202E_206E_202D_200F_202B_206C_202C_200F_200D_206F_200E_206A_200C_200F_206D_202E()
|
||||
{
|
||||
return new StringBuilder();
|
||||
}
|
||||
|
||||
static bool _202C_202D_200B_206A_200B_200F_206C_200D_200D_202E_200B_206F_202B_200F_200E_206E_202B_200F_200D_206D_206E_206D_206B_206A_200E_200C_200B_202C_206A_206D_206F_202A_200C_200B_202C_202D_202C_200D_206F_206C_202E(string P_0)
|
||||
{
|
||||
return string.IsNullOrEmpty(P_0);
|
||||
}
|
||||
|
||||
static StringBuilder _202D_206F_206C_206C_206A_202A_200D_200F_206B_200B_206A_206D_200D_206E_200F_202D_202B_206F_202E_200F_200E_206C_206F_206A_206D_206C_206C_200C_206A_202A_206F_206F_206E_206C_202E_200B_206A_202A_206B_200F_202E(StringBuilder P_0, string P_1)
|
||||
{
|
||||
return P_0.Append(P_1);
|
||||
}
|
||||
|
||||
static string _202E_202E_206E_200E_200D_200E_206F_202D_202D_202D_200D_200C_202D_200B_202A_200F_202E_202B_200F_206E_202B_200E_200B_206E_202A_206B_202B_200D_202C_206F_202A_202E_202E_206C_202E_202E_200C_200F_200B_206C_202E(object P_0)
|
||||
{
|
||||
return P_0.ToString();
|
||||
}
|
||||
|
||||
static void _202B_202B_202B_200F_202D_200E_202B_206B_200C_206E_200B_206E_206E_202A_202D_206C_200B_200F_202E_206B_200B_202D_206F_200D_200E_202D_206A_202E_200E_202C_202E_202E_206C_202A_202B_206F_206A_206C_206B_206A_202E(IPluginLog P_0, LogEventLevel P_1, Exception P_2, string P_3, object[] P_4)
|
||||
{
|
||||
P_0.Write(P_1, P_2, P_3, P_4);
|
||||
}
|
||||
|
||||
static ArgumentOutOfRangeException _200C_206F_206D_200F_202B_206C_200D_202B_202A_200F_200C_202A_206C_202E_200C_202C_206C_206C_206A_206A_206B_202D_206B_206F_206D_206F_206C_206B_206D_206C_202E_206C_206D_206C_200C_202A_200D_202E_206A_206B_202E(string P_0, object P_1, string P_2)
|
||||
{
|
||||
return new ArgumentOutOfRangeException(P_0, P_1, P_2);
|
||||
LogLevel.Trace => LogEventLevel.Verbose,
|
||||
LogLevel.Debug => LogEventLevel.Debug,
|
||||
LogLevel.Information => LogEventLevel.Information,
|
||||
LogLevel.Warning => LogEventLevel.Warning,
|
||||
LogLevel.Error => LogEventLevel.Error,
|
||||
LogLevel.Critical => LogEventLevel.Fatal,
|
||||
_ => throw new ArgumentOutOfRangeException("logLevel", logLevel, null),
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -480,10 +111,9 @@ public sealed class DalamudLoggerProvider : ILoggerProvider, IDisposable, ISuppo
|
|||
|
||||
private IExternalScopeProvider? _scopeProvider;
|
||||
|
||||
[MethodImpl(MethodImplOptions.NoInlining)]
|
||||
public DalamudLoggerProvider(IPluginLog pluginLog, Func<string, string?>? categoryNameFormatter = null)
|
||||
{
|
||||
_200B_206D_206B_206A_202A_206D_200B_206F_202B_206A_200C_206F_206E_206E_206B_206E_200C_206E_200E_206F_206B_202E_200E_200B_200E_202E_202A_206B_202D_206D_200F_200F_200F_200E_206E_206C_206B_200D_206B_200C_202E((object)pluginLog, global::_003CModule_003E._206E_202B_206C_202A_202A_200E_202B_202B_206D_200B_200C_206B_200B_206D_202E_202D_206C_202B_200B_206A_202D_206C_202A_200F_202D_200C_200B_200B_200B_200D_202C_206E_206D_202E_200C_206B_206A_206D_202D_202C_202E<string>(1117547694));
|
||||
ArgumentNullException.ThrowIfNull(pluginLog, "pluginLog");
|
||||
_pluginLog = pluginLog;
|
||||
_categoryNameFormatter = categoryNameFormatter ?? ((Func<string, string>)((string t) => t));
|
||||
}
|
||||
|
|
@ -491,100 +121,32 @@ public sealed class DalamudLoggerProvider : ILoggerProvider, IDisposable, ISuppo
|
|||
public ILogger CreateLogger(string categoryName)
|
||||
{
|
||||
string name = _categoryNameFormatter(categoryName);
|
||||
int num = ((!LooksObfuscated(name)) ? (-1377550317) : (-1377550318));
|
||||
while (true)
|
||||
if (LooksObfuscated(name))
|
||||
{
|
||||
int num2 = num;
|
||||
int num3 = -1377550317;
|
||||
int num4 = num2;
|
||||
switch ((num4 | num3) - (num4 & num3))
|
||||
{
|
||||
case 0:
|
||||
return new DalamudLogger(name, this, _pluginLog);
|
||||
case 1:
|
||||
name = null;
|
||||
num = -1377550317;
|
||||
break;
|
||||
case 2:
|
||||
num = -1377550318;
|
||||
break;
|
||||
}
|
||||
name = null;
|
||||
}
|
||||
}
|
||||
|
||||
ILogger ILoggerProvider.CreateLogger(string categoryName)
|
||||
{
|
||||
//ILSpy generated this explicit interface implementation from .override directive in CreateLogger
|
||||
return this.CreateLogger(categoryName);
|
||||
return new DalamudLogger(name, this, _pluginLog);
|
||||
}
|
||||
|
||||
private static bool LooksObfuscated(string? name)
|
||||
{
|
||||
int num = ((!_200B_202E_206E_206B_206D_202D_206E_200F_206A_202A_200C_200B_200C_206D_202E_206E_206A_202A_202A_202E_206A_206A_202A_200F_200E_206A_202D_202A_206A_206E_206F_202A_206F_200B_202D_206A_202E_202D_202E_200F_202E(name)) ? (-1967590757) : (-1967590764));
|
||||
char c = default(char);
|
||||
string text = default(string);
|
||||
int num5 = default(int);
|
||||
UnicodeCategory unicodeCategory = default(UnicodeCategory);
|
||||
bool flag = default(bool);
|
||||
while (true)
|
||||
if (string.IsNullOrEmpty(name))
|
||||
{
|
||||
int num2 = num;
|
||||
int num3 = -1967590755;
|
||||
int num4 = num2;
|
||||
switch ((num4 | num3) - (num4 & num3))
|
||||
return false;
|
||||
}
|
||||
foreach (char c in name)
|
||||
{
|
||||
if (char.IsControl(c))
|
||||
{
|
||||
case 4:
|
||||
c = _202A_206E_202A_206B_206B_200B_206B_206A_200E_206E_202B_206B_200D_200B_200F_202B_206F_206C_200E_200B_202D_200E_206D_200C_202A_202B_206D_200E_206A_206E_200D_200E_202A_206C_206D_206A_200D_206E_200E_202A_202E(text, num5);
|
||||
num = ((!char.IsControl(c)) ? (-1967590758) : (-1967590756));
|
||||
break;
|
||||
case 11:
|
||||
return false;
|
||||
case 2:
|
||||
return true;
|
||||
case 7:
|
||||
unicodeCategory = _200D_200D_206D_200C_200F_206D_200D_200F_206F_202C_200C_200B_202B_206B_206C_206C_206F_206B_206B_206A_206E_206A_202D_206B_202B_202E_202D_206D_206C_202D_206C_202E_200B_200F_202E_206D_200D_200E_202A_202D_202E(c);
|
||||
num = (((uint)(unicodeCategory - 15) <= 2u) ? (-1967590768) : (-1967590767));
|
||||
break;
|
||||
case 3:
|
||||
num = ((!flag) ? (-1967590755) : (-1967590753));
|
||||
break;
|
||||
case 5:
|
||||
num = ((num5 < _206C_206E_200B_206A_200F_202D_202B_206F_206B_206B_206A_206A_202B_202A_202B_206A_202D_206A_206F_202A_206B_206A_206B_206B_202D_206D_206E_200F_202E_206E_202E_200F_202D_206A_206D_206F_200F_200D_202E_202E(text)) ? (-1967590759) : (-1967590762));
|
||||
break;
|
||||
case 8:
|
||||
flag = false;
|
||||
num = -1967590754;
|
||||
break;
|
||||
case 0:
|
||||
{
|
||||
int num6 = num5;
|
||||
num3 = 1;
|
||||
num4 = num6;
|
||||
num5 = (num4 | num3) + (num4 & num3);
|
||||
num = -1967590760;
|
||||
break;
|
||||
}
|
||||
case 1:
|
||||
UnicodeCategory unicodeCategory = CharUnicodeInfo.GetUnicodeCategory(c);
|
||||
if (((uint)(unicodeCategory - 15) <= 2u || unicodeCategory == UnicodeCategory.OtherNotAssigned) ? true : false)
|
||||
{
|
||||
return true;
|
||||
case 9:
|
||||
return false;
|
||||
case 10:
|
||||
num = -1967590764;
|
||||
break;
|
||||
case 12:
|
||||
num = ((unicodeCategory != UnicodeCategory.OtherNotAssigned) ? (-1967590763) : (-1967590768));
|
||||
break;
|
||||
case 6:
|
||||
text = name;
|
||||
num5 = 0;
|
||||
num = -1967590760;
|
||||
break;
|
||||
case 13:
|
||||
flag = true;
|
||||
num = -1967590754;
|
||||
break;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public void SetScopeProvider(IExternalScopeProvider scopeProvider)
|
||||
|
|
@ -592,44 +154,7 @@ public sealed class DalamudLoggerProvider : ILoggerProvider, IDisposable, ISuppo
|
|||
_scopeProvider = scopeProvider;
|
||||
}
|
||||
|
||||
void ISupportExternalScope.SetScopeProvider(IExternalScopeProvider scopeProvider)
|
||||
{
|
||||
//ILSpy generated this explicit interface implementation from .override directive in SetScopeProvider
|
||||
this.SetScopeProvider(scopeProvider);
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
}
|
||||
|
||||
void IDisposable.Dispose()
|
||||
{
|
||||
//ILSpy generated this explicit interface implementation from .override directive in Dispose
|
||||
this.Dispose();
|
||||
}
|
||||
|
||||
static void _200B_206D_206B_206A_202A_206D_200B_206F_202B_206A_200C_206F_206E_206E_206B_206E_200C_206E_200E_206F_206B_202E_200E_200B_200E_202E_202A_206B_202D_206D_200F_200F_200F_200E_206E_206C_206B_200D_206B_200C_202E(object P_0, string P_1)
|
||||
{
|
||||
ArgumentNullException.ThrowIfNull(P_0, P_1);
|
||||
}
|
||||
|
||||
static bool _200B_202E_206E_206B_206D_202D_206E_200F_206A_202A_200C_200B_200C_206D_202E_206E_206A_202A_202A_202E_206A_206A_202A_200F_200E_206A_202D_202A_206A_206E_206F_202A_206F_200B_202D_206A_202E_202D_202E_200F_202E(string P_0)
|
||||
{
|
||||
return string.IsNullOrEmpty(P_0);
|
||||
}
|
||||
|
||||
static char _202A_206E_202A_206B_206B_200B_206B_206A_200E_206E_202B_206B_200D_200B_200F_202B_206F_206C_200E_200B_202D_200E_206D_200C_202A_202B_206D_200E_206A_206E_200D_200E_202A_206C_206D_206A_200D_206E_200E_202A_202E(string P_0, int P_1)
|
||||
{
|
||||
return P_0[P_1];
|
||||
}
|
||||
|
||||
static UnicodeCategory _200D_200D_206D_200C_200F_206D_200D_200F_206F_202C_200C_200B_202B_206B_206C_206C_206F_206B_206B_206A_206E_206A_202D_206B_202B_202E_202D_206D_206C_202D_206C_202E_200B_200F_202E_206D_200D_200E_202A_202D_202E(char P_0)
|
||||
{
|
||||
return CharUnicodeInfo.GetUnicodeCategory(P_0);
|
||||
}
|
||||
|
||||
static int _206C_206E_200B_206A_200F_202D_202B_206F_206B_206B_206A_206A_202B_202A_202B_206A_202D_206A_206F_202A_206B_206A_206B_206B_202D_206D_206E_200F_202E_206E_202E_200F_202D_206A_206D_206F_200F_200D_202E_202E(string P_0)
|
||||
{
|
||||
return P_0.Length;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue