Initial commit
This commit is contained in:
commit
c4a24c9fdf
142 changed files with 15491 additions and 0 deletions
15
temp.cs
Normal file
15
temp.cs
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
using System;
|
||||
using System.Reflection;
|
||||
using System.IO;
|
||||
|
||||
public class Program
|
||||
{
|
||||
public static void Main()
|
||||
{
|
||||
Assembly asm = Assembly.LoadFile(@""C:\Program Files (x86)\Steam\steamapps\common\Valheim\valheim_Data\Managed\assembly_valheim.dll"");
|
||||
Type t = asm.GetType(""Player"");
|
||||
MethodInfo m = t.GetMethod(""ConsumeItem"", BindingFlags.Public | BindingFlags.Instance);
|
||||
var body = m.GetMethodBody();
|
||||
Console.WriteLine(""ConsumeItem method found. IL length: "" + body.GetILAsByteArray().Length);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue