public void RunProgram(Floppy pFloppy) { if(floppyBootProgram != null) { floppyBootProgram.StopAndReset(); } floppyInDrive = pFloppy; masterProgram.executionsPerFrame = mhz; if(maxExecutionTime > 0f) { masterProgram.maxExecutionTime = maxExecutionTime; } else if(maxExecutionTime <= -2f) { masterProgram.maxExecutionTime = -2f; // no limit } else { masterProgram.maxExecutionTime = 60f; } //D.Log("Starting " + name + ", max execution time: " + masterProgram.maxExecutionTime); masterProgram.Start (); }
public void GetUsedBy(Character pUser, Floppy pFloppy) { //D.Log(name + " is Getting Used By " + pUser); _user = pUser; RunProgram (pFloppy); }