7d5496e959
81 namespace declarations and 100 using directives converted via sed, plus two FQN-aliases (ChatTwoPartyFinderPayload in PayloadHandler.cs and ModifierFlag in KeybindManager.cs) updated. Critical: Language.Designer.cs and HellionStrings.Designer.cs ResourceManager string arguments updated synchronously — these are runtime reflection lookups not caught by the C# compiler. Two intentional ChatTwo references remain: the legacy migration path 'ChatTwo.json' in Plugin.cs (still points to upstream Chat 2's config file by design) and the InternalsVisibleTo declaration in AssemblyInfo.cs (handled in the upcoming repo-folder rename task). The local alias names 'ChatTwoPartyFinderPayload' and 'ChatTwoConflictDetector' are preserved as local symbols; only their target namespaces and references changed.
26 lines
587 B
C#
26 lines
587 B
C#
using System.Text;
|
|
|
|
namespace HellionChat.Util;
|
|
|
|
public static class MemoryUtil
|
|
{
|
|
public static unsafe void PrintMemoryArea(nint address, int length)
|
|
{
|
|
var ptr = (byte*)address;
|
|
var str = new StringBuilder("\n");
|
|
for(var i = 0; i < length; i++)
|
|
{
|
|
str.Append($"{ptr![i]:X02}");
|
|
|
|
if (i == 0)
|
|
continue;
|
|
|
|
if ((i+1) % 16 == 0)
|
|
str.Append('\n');
|
|
else if ((i+1) % 4 == 0)
|
|
str.Append(' ');
|
|
}
|
|
|
|
Plugin.Log.Information(str.ToString());
|
|
}
|
|
} |