Fixed addauxref for the triple axis code
Added a writing state to status
This commit is contained in:
19
nxscript.c
19
nxscript.c
@@ -1509,7 +1509,7 @@ static int SPutPadding(void *message, void *userData)
|
||||
*pEnd = '\0';
|
||||
len = atoi(pPtr);
|
||||
}
|
||||
pPtr = malloc(len*sizeof(char));
|
||||
pPtr = malloc((len+5)*sizeof(char));
|
||||
if(pPtr != NULL){
|
||||
memset(pPtr,0,len*sizeof(char));
|
||||
strncpy(pPtr,pEnd+1,len);
|
||||
@@ -2156,3 +2156,20 @@ int MakeNXScript(SConnection * pCon, SicsInterp * pSics, void *pData,
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
static pNXScript sysScript= NULL;
|
||||
/*-----------------------------------------------------------------------------------*/
|
||||
int isNXScriptWriting(void)
|
||||
{
|
||||
|
||||
if(sysScript == NULL){
|
||||
sysScript = FindCommandData(pServ->pSics,"nxscript","NXScript");
|
||||
}
|
||||
|
||||
|
||||
if(sysScript != NULL && sysScript->fileHandle != NULL){
|
||||
return 1;
|
||||
} else {
|
||||
return 0;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user