void FScanner::Open (const char *name) { int lump = Wads.CheckNumForFullName(name, true); if (lump == -1) { I_Error("Could not find script lump '%s'\n", name); } OpenLumpNum(lump); }
void FWadCollection::ReadLump (int lump, void *dest) { FWadLump lumpr = OpenLumpNum (lump); long size = lumpr.GetLength (); long numread = lumpr.Read (dest, size); if (numread != size) { I_Error ("W_ReadLump: only read %ld of %ld on lump %i\n", numread, size, lump); } }
FScanner::FScanner(int lumpnum) { ScriptOpen = false; OpenLumpNum(lumpnum); }