diff --git a/ACP.e b/ACP.e index 0058ba6..63614d6 100644 --- a/ACP.e +++ b/ACP.e @@ -3284,6 +3284,7 @@ PROC loadState() Close(fh) ENDIF + showLastUser(eWin) ENDPROC PROC saveState() diff --git a/express.e b/express.e index 6af5474..49673fd 100644 --- a/express.e +++ b/express.e @@ -29,8 +29,6 @@ node tooltypes door tooltypes PASS_PARAMETERS=- options 3 and 4 -STICKY - trapdoor command line parameter - */ MODULE 'intuition/screens', @@ -3972,7 +3970,6 @@ PROC runCommand(cmdtype,cmd,params,privcmd) DEF commandTypeCode DEF cmdfound = FALSE DEF tooltype,pri,stacksize - DEF default=FALSE DEF acsLevel DEF passparams=-1 DEF access=0 @@ -4088,46 +4085,35 @@ PROC runCommand(cmdtype,cmd,params,privcmd) RETURN (processCommand(commandfile,TRUE)=RESULT_SUCCESS) ENDIF - IF (commandTypeCode=DOORTYPE_SIM) - getNodeFile(tooltype,cmd,commandfile) - default:=fileExists(commandfile) - ELSEIF commandTypeCode=DOORTYPE_MCI - default:=TRUE - ELSE - default:=FALSE - ENDIF + getNodeFile(tooltype,cmd,commandfile) + readToolType(tooltype,cmd,'LOCATION',commandfile) - StrCopy(commandfile,'') - IF (default) OR (readToolType(tooltype,cmd,'LOCATION',commandfile)) + IF commandTypeCode=-1 THEN RETURN FALSE - IF commandTypeCode=-1 THEN RETURN FALSE + IF (checkToolTypeExists(tooltype,cmd,'QUICKMODE')) AND (quickFlag) THEN RETURN TRUE - IF (checkToolTypeExists(tooltype,cmd,'QUICKMODE')) AND (quickFlag) THEN RETURN TRUE + cmdfound:=TRUE - cmdfound:=TRUE - - pri:=0 - stacksize:=20000 - IF readToolType(tooltype,cmd,'PRIORITY',passwordstr) - IF strCmpi(passwordstr,'same',ALL) - pri:=byteSignExtend(cmds.taskPri) - ELSE - pri:=Val(passwordstr) - ENDIF + pri:=0 + stacksize:=20000 + IF readToolType(tooltype,cmd,'PRIORITY',passwordstr) + IF strCmpi(passwordstr,'same',ALL) + pri:=byteSignExtend(cmds.taskPri) + ELSE + pri:=Val(passwordstr) ENDIF + ENDIF - IF readToolType(tooltype,cmd,'STACK',passwordstr) THEN stacksize:=Val(passwordstr) + IF readToolType(tooltype,cmd,'STACK',passwordstr) THEN stacksize:=Val(passwordstr) - resident:=checkToolTypeExists(tooltype,cmd,'RESIDENT') - IF checkToolTypeExists(tooltype,cmd,'EXPERT_MODE') THEN doorExpertMode:=TRUE + resident:=checkToolTypeExists(tooltype,cmd,'RESIDENT') + IF checkToolTypeExists(tooltype,cmd,'EXPERT_MODE') THEN doorExpertMode:=TRUE - doorTrap:=checkToolTypeExists(tooltype,cmd,'TRAPON') + doorTrap:=checkToolTypeExists(tooltype,cmd,'TRAPON') - readToolType(tooltype,cmd,'MIMICVER',mimicVersion) - runDoor(commandfile,commandTypeCode,cmd,tooltype,params,resident,doorTrap,privcmd,pri,stacksize) - StrCopy(mimicVersion,'') - - ENDIF + readToolType(tooltype,cmd,'MIMICVER',mimicVersion) + runDoor(commandfile,commandTypeCode,cmd,tooltype,params,resident,doorTrap,privcmd,pri,stacksize) + StrCopy(mimicVersion,'') ENDPROC cmdfound PROC runBbsCommand(cmd,params,privcmd=FALSE) @@ -5002,7 +4988,7 @@ PROC processMciCmd(mcidata,len,pos) midStr2(cmd,mcidata,pos,nval) slowmo:=Val(cmd) IF (slowmo<1) OR (slowmo>5) THEN slowmo:=1 - pos:=pos+t + pos:=pos+nval+t ELSEIF StrCmp(cmd,'SMC',ALL) slowmo:=0 pos:=pos+3+t @@ -6549,7 +6535,6 @@ PROC checkIncomingCall() hostent:=GetHostByAddr({s},4,AF_INET) IF hostent<>NIL THEN StrCopy(hostName,hostent.h_name,255) ENDIF - JUMP go3 ENDIF @@ -8427,23 +8412,27 @@ PROC runFifoHandler() ->check to see if fifo handler is running and run it if not + Forbid() m:=MaxCli() FOR i:=1 TO m p:=FindCliProc(i) - c:=p.cli - IF c - c:=Shl(c,2) - s:=c.commandname - IF s - s:=Shl(s,2) - StrCopy(tempstr,s+1,s[0]) - LowerStr(tempstr) - IF StrCmp(tempstr,'l:fifo-handler') THEN found:=TRUE + IF p + c:=p.cli + IF c + c:=Shl(c,2) + s:=c.commandname + IF s + s:=Shl(s,2) + StrCopy(tempstr,s+1,s[0]) + LowerStr(tempstr) + IF StrCmp(tempstr,'l:fifo-handler') THEN found:=TRUE + ENDIF ENDIF ENDIF ENDFOR + Permit() IF found=FALSE THEN Execute('Run >NIL: