public RuntimeHelpers(RTConstants constants, VMRuntime rt, ModuleDef rtModule) { this.rt = rt; this.rtModule = rtModule; this.constants = constants; rtHelperType = new TypeDefUser("KoiVM.Runtime", "Helpers"); AllocateHelpers(); }
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(); }
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(); }