private static void GenStaticField() { InjectorMain inject = new InjectorMain(); inject.Run(m_DllPath, m_DelegatePath, true); UnityEngine.Debug.Log("GenStaticField Ok!"); }
private static void InjectIL() { InjectorMain inject = new InjectorMain(); inject.Run(m_DllPath, m_DelegatePath, false); UnityEngine.Debug.Log("Inject Ok!"); }
private static void InjectIL() { string dllPath = "C:/GiteeSVN/ProtectGold/Research/MSILInject/Demo/bin/Debug/Demo.exe"; dllPath = m_DllPath; string delegatePath = m_DelegatePath; try { InjectorMain inject = new InjectorMain(); inject.Run(dllPath, delegatePath, false); Console.WriteLine("Inject Ok!"); } catch (Exception exp) { Console.WriteLine(exp.Message + exp.StackTrace); } }
private void button4_Click(object sender, EventArgs e) { string dllPath = "C:/GiteeSVN/ProtectGold/Research/MSILInject/Demo/bin/Debug/Demo.exe"; dllPath = m_DllPath.Text; string delegatePath = m_DelegatePath.Text; try { InjectorMain inject = new InjectorMain(); inject.Run(dllPath, delegatePath, true); m_log.Text = "生成变量完毕完毕!"; } catch (Exception exp) { m_log.Text = exp.Message + exp.StackTrace; } }