コード例 #1
0
        private static void GenStaticField()
        {
            InjectorMain inject = new InjectorMain();

            inject.Run(m_DllPath, m_DelegatePath, true);
            UnityEngine.Debug.Log("GenStaticField Ok!");
        }
コード例 #2
0
        private static void InjectIL()
        {
            InjectorMain inject = new InjectorMain();

            inject.Run(m_DllPath, m_DelegatePath, false);
            UnityEngine.Debug.Log("Inject Ok!");
        }
コード例 #3
0
ファイル: Program.cs プロジェクト: scbwin/cshotfix
        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);
            }
        }
コード例 #4
0
ファイル: CSHotfixEditor.cs プロジェクト: superowner/cshotfix
        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;
            }
        }