Removed "sim/" auto add feature

Removed “sim/“ auto add feature. There are some drefs (custom/art) that
do not start with “sim/“
This commit is contained in:
Chris Teubert
2015-04-03 10:47:55 -07:00
parent 3f0274a74c
commit 0c2e786890
9 changed files with 6 additions and 28 deletions

View File

@@ -304,23 +304,6 @@ unsigned short getIP(struct sockaddr recvaddr, char *IP)
return ntohs((*sendaddr).sin_port);
}
int handleDREFSIM(char *DREF)
{
//checks if sim/ is at the beginning of the dref string. If not, adds it.
char firstFour[5] = {0};
char fullDREF[200] = {0};
memcpy(firstFour,DREF,4);
if (strcmp(firstFour,"sim/") != 0)
{
sprintf(fullDREF, "sim/%s",DREF);
memcpy(DREF,fullDREF,strlen(fullDREF));
}
return 0;
}
// DEBUGGING TOOLS
// --------------------------------
int printBufferToLog(struct XPCMessage & msg)