fix all warnings and breaking changes for CS (#2061)

This commit is contained in:
wolfcomp 2024-11-05 06:14:51 +01:00 committed by GitHub
parent b570564258
commit 30d56e4d11
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 24 additions and 14 deletions

View file

@ -40,7 +40,7 @@ public static class StringExtensions
public static bool IsValidCharacterName(this string value, bool includeLegacy = true)
{
if (string.IsNullOrEmpty(value)) return false;
if (!FFXIVClientStructs.FFXIV.Client.UI.UIModule.IsPlayerCharacterName(value)) return false;
if (!FFXIVClientStructs.FFXIV.Client.UI.UIGlobals.IsValidPlayerCharacterName(value)) return false;
return includeLegacy || value.Length <= 21;
}
}