muffin v7.5.13

This commit is contained in:
alydev 2026-08-22 10:25:22 +10:00
parent 911ed68baa
commit acf3e3cb18
69 changed files with 2731 additions and 1425 deletions

View file

@ -1,6 +1,5 @@
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Text;
using Dalamud.Plugin.Services;
using Microsoft.Extensions.Logging;
@ -120,33 +119,7 @@ public sealed class DalamudLoggerProvider : ILoggerProvider, IDisposable, ISuppo
public ILogger CreateLogger(string categoryName)
{
string name = _categoryNameFormatter(categoryName);
if (LooksObfuscated(name))
{
name = null;
}
return new DalamudLogger(name, this, _pluginLog);
}
private static bool LooksObfuscated(string? name)
{
if (string.IsNullOrEmpty(name))
{
return false;
}
foreach (char c in name)
{
if (char.IsControl(c))
{
return true;
}
UnicodeCategory unicodeCategory = CharUnicodeInfo.GetUnicodeCategory(c);
if (((uint)(unicodeCategory - 15) <= 2u || unicodeCategory == UnicodeCategory.OtherNotAssigned) ? true : false)
{
return true;
}
}
return false;
return new DalamudLogger(_categoryNameFormatter(categoryName), this, _pluginLog);
}
public void SetScopeProvider(IExternalScopeProvider scopeProvider)