Пример #1
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();
        }
Пример #2
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();
        }