// On setup, the vm initialises the VM state // It then initialises the BankManager, which in turn registers all the file bank data to the Bank's in memory // It then creates a LinkManager, which in turn generates all Assemblies for required dll files public override void setup() { LOG("setting up '" + this.wc_profile.filename + "'"); VM.state = VMState.setup(this.wc_profile.filename); this.core_manager = new CoreManager(this); this.bank_manager = new BankManager(this.wc_profile.cbank.ToArray()); this.link_manager = new LinkManager(); if (this.wc_profile.require_dll) { this.link_manager.add_dll(this.wc_profile.filename, this.wc_profile.path); } this.core_manager.setup(); this.bank_manager.setup(); this.link_manager.setup(); }
public VMError(VMState state, VMErrorType type, string msg = null) { this.state = state; this.type = type; this.msg = msg; }