예제 #1
0
 public RuntimeHelpers(RTConstants constants, VMRuntime rt, ModuleDef rtModule)
 {
     this.rt        = rt;
     this.rtModule  = rtModule;
     this.constants = constants;
     rtHelperType   = new TypeDefUser("KoiVM.Runtime", "Helpers");
     AllocateHelpers();
 }
예제 #2
0
        public RuntimeMutator(ModuleDef module, DarksVMRuntime rt)
        {
            this.RTModule      = module;
            this.rt            = rt;
            this.methodPatcher = new MethodPatcher(module);

            this.constants = new RTConstants();
            this.helpers   = new RuntimeHelpers(this.constants, rt, module);
            this.constants.InjectConstants(module, rt.Descriptor, this.helpers);
            this.helpers.AddHelpers();
        }
예제 #3
0
        public RuntimeMutator(ModuleDef module, VMRuntime rt)
        {
            RTModule      = module;
            this.rt       = rt;
            methodPatcher = new MethodPatcher(module);

            constants = new RTConstants();
            helpers   = new RuntimeHelpers(constants, rt, module);
            constants.InjectConstants(module, rt.Descriptor, helpers);
            helpers.AddHelpers();
        }