Fix: SE036 Problem: Fails during game startup complaining that it is unable to find the dungeon file. This is because the file area support code was lost from dlb.h in the merge with the 3.3 codebase. Compatible with: Slash'EM 0.0.5E9 (DOS only) Author: J. Ali Harlow, ali@avrc.city.ac.uk Date: 10 Jan 2000 *** include/dlb.h.orig Mon Jan 10 13:26:57 2000 --- include/dlb.h Mon Jan 10 13:28:53 2000 *************** *** 37,43 **** /* library definitions */ # ifndef DLBFILE ! # define DLBFILE "nhdat" /* name of library */ # endif # ifndef FILENAME_CMP # define FILENAME_CMP strcmp /* case sensitive */ --- 37,46 ---- /* library definitions */ # ifndef DLBFILE ! # define DLBFILE "nhshare" /* shareable library */ ! # define DLBAREA FILE_AREA_SHARE ! # define DLBFILE2 "nhunshare" /* unshareable library */ ! # define DLBAREA2 FILE_AREA_UNSHARE # endif # ifndef FILENAME_CMP # define FILENAME_CMP strcmp /* case sensitive */ *************** *** 71,77 **** --- 74,84 ---- boolean NDECL(dlb_init); void NDECL(dlb_cleanup); + #ifndef FILE_AREAS dlb *FDECL(dlb_fopen, (const char *,const char *)); + #else + dlb *FDECL(dlb_fopen_area, (const char *,const char *,const char *)); + #endif int FDECL(dlb_fclose, (DLB_P)); int FDECL(dlb_fread, (char *,int,int,DLB_P)); int FDECL(dlb_fseek, (DLB_P,long,int)); *************** *** 101,107 **** --- 108,118 ---- # define dlb_init() # define dlb_cleanup() + #ifndef FILE_AREAS # define dlb_fopen fopen + #else + # define dlb_fopen_area fopen_datafile_area + #endif # define dlb_fclose fclose # define dlb_fread fread # define dlb_fseek fseek