mirror of
https://github.com/BeyondDimension/SteamTools.git
synced 2026-10-17 05:30:48 +08:00
11 lines
503 B
Plaintext
11 lines
503 B
Plaintext
static void WinDivert()
|
|
{
|
|
var dllWinDivert = Path.Combine(ProjectUtils.ProjPath, "ref", "WinDivert.dll");
|
|
var sysWinDivert64 = Path.Combine(ProjectUtils.ProjPath, "ref", "WinDivert64.sys");
|
|
|
|
byte[][] data = [File.ReadAllBytes(dllWinDivert), File.ReadAllBytes(sysWinDivert64)];
|
|
var bytes = MemoryPackSerializer.Serialize(data);
|
|
bytes.AsSpan().Reverse();
|
|
|
|
File.WriteAllBytes(Path.Combine(ProjectUtils.ProjPath, "ref", "WinDivert.mpo"), bytes);
|
|
} |