/// <summary> /// Adds an ExeModule to exes. /// </summary> /// <param name="exe">The ExeModule to add.</param> public void addExe(ExeModule exe);
public void addExe(ExeModule exe) { var computer = connectedComp == null ? thisComputer : connectedComp; if (exe.needsProxyAccess && computer.proxyActive) write("Proxy Active -- Cannot Execute"); else if (ramAvaliable >= exe.ramCost) { exe.LoadContent(); exes.Add(exe); } else { ram.FlashMemoryWarning(); write("Insufficient Memory"); } }