public void initCpu() { if (cpu == null) { cpu = new CPU(this, "ksp"); cpu.AttachHardDisk(hardDisk); cpu.Boot(); } }
public override void OnStart(PartModule.StartState state) { cpu = new CPU(this, "ksp"); if (hardDisk == null) { hardDisk = new Harddisk(MemSize); } cpu.AttachHardDisk(hardDisk); cpu.Boot(); }
public override void OnStart(PartModule.StartState state) { //Do not start from editor and at KSP first loading if (state == StartState.Editor || state == StartState.None) { return; } cpu = new CPU(this, "ksp"); if (hardDisk == null) { hardDisk = new Harddisk(MemSize); } cpu.AttachHardDisk(hardDisk); cpu.Boot(); }
public override void OnStart(PartModule.StartState state) { //Do not start from editor and at KSP first loading if (state == StartState.Editor || state == StartState.None) { return; } cpu = new CPU(this, "ksp"); if (hardDisk == null) hardDisk = new Harddisk(MemSize); cpu.AttachHardDisk(hardDisk); cpu.Boot(); }