public static void AddHook(this ICPUWithBlockBeginHook cpu, [AutoParameter] Machine m, uint addr, string pythonScript)
        {
            var engine = new BlockPythonEngine(m, cpu, pythonScript);

            cpu.AddHook(addr, engine.Hook);
        }
Example #2
0
 public static void AddHook(this ICPUWithHooks cpu, [AutoParameter]Machine m, uint addr, string pythonScript)
 {
     var engine = new BlockPythonEngine(m, cpu, pythonScript);
     cpu.AddHook(addr, engine.Hook);
 }
        public static void SetHookAtBlockBegin(this ICPUWithBlockBeginHook cpu, [AutoParameter] Machine m, string pythonScript)
        {
            var engine = new BlockPythonEngine(m, cpu, pythonScript);

            cpu.SetHookAtBlockBegin(engine.HookWithSize);
        }
Example #4
0
 public static void SetHookAtBlockBegin(this ICPUWithHooks cpu, [AutoParameter]Machine m, string pythonScript)
 {
     var engine = new BlockPythonEngine(m, cpu, pythonScript);
     cpu.SetHookAtBlockBegin(engine.HookWithSize);
 }