okay, oedit.c is fine,
the code below all this text is in objsave.c, it seems to be correct.(if
!Xapobj it loads from crash_file, but if Xapobj, it laods from new_obj_files,
like its uspposed to??
problem?
int Crash_delete_file(char *name)
{
char filename[50];
FILE *fl;
if(!xap_objs) {
if (!get_filename(name, filename, CRASH_FILE))
return (0);
} else {
if(!get_filename(name,filename,NEW_OBJ_FILES))
return (0);
}
if (!(fl = fopen(filename, "rb"))) {
if (errno != ENOENT) /* if it fails but NOT because of no file */
log("SYSERR: deleting crash file %s (1): %s", filename,
strerror(errno));
return (0);
}
fclose(fl);
+------------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
| http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
+------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 04/10/01 PDT