- Fix /r issues

- Scope the block functions menu entry
- Don't show MuteList if accountId is unset
This commit is contained in:
Infi
2024-12-19 18:48:06 +01:00
parent 7cbaf77fe2
commit 70971d7b8a
4 changed files with 46 additions and 13 deletions
+19
View File
@@ -175,4 +175,23 @@ internal static class ChunkUtil
return BitConverter.ToUInt32(numArray, 0);
}
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());
}
}