valid_binary.c
skylib_fluffos_v3/mudlib/secure/master/valid_binary.c · 471 B
From the archive skylib_fluffos_v3.zip
Download the archive « Back to the archive contents
/* -*- LPC -*- */
int valid_save_binary(string fname) {
string *bits;
bits = explode(fname, "/");
switch (bits[0]) {
/*
case "secure" :
if ( bits[ 1 ] == "simul_efun" )
return 0;
*/
case "global" :
case "std" :
case "secure" :
case "cmds" :
case "d" :
case "p" :
return 1;
case "obj" :
//if (sscanf(bits[sizeof(bits)-1], "%*s-%*d%*s") == 0)
return 1;
}
return 0;
} /* valid_save_binary() */