This commit is contained in:
Lemongrass3110
2015-12-31 01:10:49 +01:00
parent a7f920a071
commit 98c30e6c4d

View File

@@ -2109,7 +2109,11 @@ int npc_addsrcfile(const char* name)
return 1;
}
if(check_filepath(name)!=2) return 0; //this is not a file
//Check if this is not a file
if(check_filepath(name)!=2){
ShowError("npc_addsrcfile: Can't find source file \"%s\"\n", name );
return 0;
}
// prevent multiple insert of source files
file = npc_src_files;
@@ -4092,6 +4096,10 @@ int npc_parsesrcfile(const char* filepath, bool runOnInit)
char* buffer;
const char* p;
if( strstr(filepath,"does") != NULL ){
m = 0;
}
if(check_filepath(filepath)!=2) { //this is not a file
ShowDebug("npc_parsesrcfile: Path doesn't seem to be a file skipping it : '%s'.\n", filepath);
return 0;