/dports/games/prboom-plus/prboom-plus-2.5.1.3/src/ |
H A D | w_wad.c | 155 wadfile->handle = open(wadfile->name,O_RDONLY | O_BINARY); in W_AddFile() 158 if (wadfile->handle == -1 && D_NetGetWad(wadfile->name)) // CPhipps in W_AddFile() 159 wadfile->handle = open(wadfile->name,O_RDONLY | O_BINARY); in W_AddFile() 165 !strcasecmp(wadfile->name + strlen(wadfile->name) - 4 , ".wad") && in W_AddFile() 168 wadfile->handle = open(wadfile->name, O_RDONLY | O_BINARY); in W_AddFile() 174 (strcasecmp(wadfile->name+strlen(wadfile->name)-4 , ".lmp" ) && in W_AddFile() 175 strcasecmp(wadfile->name+strlen(wadfile->name)-4 , ".gwa" ) ) in W_AddFile() 192 strcasecmp(wadfile->name+strlen(wadfile->name)-4,".wad") && in W_AddFile() 193 strcasecmp(wadfile->name+strlen(wadfile->name)-4,".gwa") in W_AddFile() 240 lump_p->wadfile = wadfile; // killough 4/25/98 in W_AddFile() [all …]
|
H A D | w_mmap.c | 166 int wad_index = (int)(lumpinfo[i].wadfile-wadfiles); in W_InitCache() 170 if (!lumpinfo[i].wadfile) in W_InitCache() 222 int wad_index = (int)(lumpinfo[lump].wadfile-wadfiles); in W_CacheLumpNum() 229 if (!lumpinfo[lump].wadfile) in W_CacheLumpNum() 253 if (lumpinfo[i].wadfile) in W_InitCache() 254 if (lumpinfo[i].wadfile->handle > maxfd) maxfd = lumpinfo[i].wadfile->handle; in W_InitCache() 261 if (lumpinfo[i].wadfile) { in W_InitCache() 262 int fd = lumpinfo[i].wadfile->handle; in W_InitCache() 276 if (lumpinfo[i].wadfile) { in W_DoneCache() 277 int fd = lumpinfo[i].wadfile->handle; in W_DoneCache() [all …]
|
/dports/games/libretro-prboom/libretro-prboom-cc80175/src/ |
H A D | w_wad.c | 139 wadfile->handle = open(wadfile->name, O_RDONLY | O_BINARY); in W_AddFile() 141 if (wadfile->handle == -1) in W_AddFile() 144 wadfile->handle = fopen(wadfile->name, "rb"); in W_AddFile() 146 if (wadfile->handle == 0) in W_AddFile() 150 (strcasecmp(wadfile->name+strlen(wadfile->name)-4 , ".lmp" ) && in W_AddFile() 151 strcasecmp(wadfile->name+strlen(wadfile->name)-4 , ".gwa" ) ) in W_AddFile() 161 if ( fread(wadfile->data, statbuf.st_size, 1, wadfile->handle) != 1) in W_AddFile() 171 strcasecmp(wadfile->name+strlen(wadfile->name)-4,".wad") && in W_AddFile() 172 strcasecmp(wadfile->name+strlen(wadfile->name)-4,".gwa") in W_AddFile() 218 lump_p->wadfile = wadfile; // killough 4/25/98 in W_AddFile() [all …]
|
/dports/games/doomlegacy/doomlegacy_1.48.8_source/src/linux_x/musserv/ |
H A D | readwad.c | 123 fseek(wadfile, 0, SEEK_SET); in read_wad_dir() 164 FILE * wadfile; in read_wad_music() local 173 if( wadfile == NULL ) in read_wad_music() 180 fseek(wadfile, lump_pos, SEEK_SET); in read_wad_music() 190 fseek(wadfile, lump_pos, SEEK_SET); in read_wad_music() 201 fclose( wadfile ); in read_wad_music() 210 fclose( wadfile ); in read_wad_music() 219 FILE * wadfile; in read_wad_genmidi() local 234 fread(&header, 1, 8, wadfile); in read_wad_genmidi() 241 fclose( wadfile ); in read_wad_genmidi() [all …]
|
/dports/games/prboom/prboom-2.5.0/src/ |
H A D | w_wad.c | 141 wadfile->handle = open(wadfile->name,O_RDONLY | O_BINARY); in W_AddFile() 144 if (wadfile->handle == -1 && D_NetGetWad(wadfile->name)) // CPhipps in W_AddFile() 145 wadfile->handle = open(wadfile->name,O_RDONLY | O_BINARY); in W_AddFile() 148 if (wadfile->handle == -1) in W_AddFile() 151 (strcasecmp(wadfile->name+strlen(wadfile->name)-4 , ".lmp" ) && in W_AddFile() 152 strcasecmp(wadfile->name+strlen(wadfile->name)-4 , ".gwa" ) ) in W_AddFile() 164 strcasecmp(wadfile->name+strlen(wadfile->name)-4,".wad") && in W_AddFile() 165 strcasecmp(wadfile->name+strlen(wadfile->name)-4,".gwa") in W_AddFile() 199 lump_p->wadfile = wadfile; // killough 4/25/98 in W_AddFile() 241 marked->wadfile = NULL; in W_CoalesceMarkedResource() [all …]
|
H A D | w_mmap.c | 151 int wad_index = (int)(lumpinfo[i].wadfile-wadfiles); in W_InitCache() 155 if (!lumpinfo[i].wadfile) in W_InitCache() 199 int wad_index = (int)(lumpinfo[lump].wadfile-wadfiles); in W_CacheLumpNum() 206 if (!lumpinfo[lump].wadfile) in W_CacheLumpNum() 230 if (lumpinfo[i].wadfile) in W_InitCache() 231 if (lumpinfo[i].wadfile->handle > maxfd) maxfd = lumpinfo[i].wadfile->handle; in W_InitCache() 238 if (lumpinfo[i].wadfile) { in W_InitCache() 239 int fd = lumpinfo[i].wadfile->handle; in W_InitCache() 253 if (lumpinfo[i].wadfile) { in W_DoneCache() 254 int fd = lumpinfo[i].wadfile->handle; in W_DoneCache() [all …]
|
/dports/games/yadex/yadex-1.7.0/src/ |
H A D | pic2img.cc | 99 dirbuf.wadfile = picloc.wad; in LoadPicture() 115 dir->wadfile->seek (dir->dir.start); in LoadPicture() 116 if (dir->wadfile->error ()) in LoadPicture() 127 dir->wadfile->read_i16 (&pic_width_); in LoadPicture() 128 dir->wadfile->read_i16 (&pic_height_); in LoadPicture() 131 if (dir->wadfile->error ()) in LoadPicture() 144 if (dir->wadfile->error ()) in LoadPicture() 203 dir->wadfile->read_i16 (&ofs); in LoadPicture() 206 if (dir->wadfile->error ()) in LoadPicture() 220 if (dir->wadfile->error ()) in LoadPicture() [all …]
|
H A D | textures.cc | 335 dir->wadfile->read_i16 (&width); in DisplayWallTexture() 337 dir->wadfile->read_i16 (&height); in DisplayWallTexture() 342 dir->wadfile->read_i16 (&dummy); in DisplayWallTexture() 343 dir->wadfile->read_i16 (&dummy); in DisplayWallTexture() 345 dir->wadfile->read_i16 (&npatches); in DisplayWallTexture() 385 dir->wadfile->read_i16 (&xofs); in DisplayWallTexture() 386 dir->wadfile->read_i16 (&yofs); in DisplayWallTexture() 535 dir->wadfile->read_i32 (&numtex); in GetWallTextureSize() 538 dir->wadfile->read_i32 (offsets); in GetWallTextureSize() 560 dir->wadfile->read_i16 (width); in GetWallTextureSize() [all …]
|
H A D | flats.cc | 115 c->lump_loc.wad = flat->wadfile; in DisplayFloorTexture() 119 const Wad_file *wadfile = flat->wadfile; in DisplayFloorTexture() local 120 wadfile->seek (flat->offset); in DisplayFloorTexture() 121 if (wadfile->error ()) in DisplayFloorTexture() 124 wadfile->pathname (), (unsigned long) flat->offset); in DisplayFloorTexture() 131 wadfile->read_bytes (c->img.wbuf (), nbytes); in DisplayFloorTexture() 132 if (wadfile->error ()) in DisplayFloorTexture() 134 warn ("%s: read error\n", wadfile->where ()); in DisplayFloorTexture()
|
H A D | gcolour1.cc | 78 dir->wadfile->seek (dir->dir.start); in alloc_game_colours() 79 if (dir->wadfile->error ()) in alloc_game_colours() 82 dir->wadfile->pathname (), (unsigned long) dir->dir.start); in alloc_game_colours() 87 dir->wadfile->read_bytes (dpal, 3 * DOOM_COLOURS); in alloc_game_colours() 88 if (dir->wadfile->error ()) in alloc_game_colours() 90 warn ("%s: read error\n", dir->wadfile->where ()); in alloc_game_colours()
|
H A D | wads2.cc | 72 newp->wadfile = wf; in OpenMainWad() 313 mdir->wadfile = wad; in OpenPatchWad() 398 while (mdir && mdir->wadfile != wf) in CloseUnusedWadFiles() 621 if (patchonly && cur->wadfile == iwad) in BuildNewMainWad() 625 cur->wadfile->seek (cur->dir.start); in BuildNewMainWad() 626 if (cur->wadfile->error ()) in BuildNewMainWad() 639 if (patchonly && cur->wadfile == iwad) in BuildNewMainWad() 687 const Wad_file *wf = entry->wadfile; in DumpDirectoryEntry() 778 entry->wadfile->seek (entry->dir.start); in SaveDirectoryEntry() 779 if (entry->wadfile->error ()) in SaveDirectoryEntry() [all …]
|
H A D | editlev.cc | 206 if (Level && Level->wadfile) in EditLevel() 207 al_saps (buf, Level->wadfile->filename, BUFSZ); in EditLevel() 234 if (Level && Level->wadfile) in EditLevel() 237 Level->wadfile ? Level->wadfile->pathname () : "(New level)"; in EditLevel()
|
H A D | img.cc | 211 dir->wadfile->seek (dir->dir.start); in save() 212 if (dir->wadfile->error ()) in save() 221 dir->wadfile->read_bytes (pal, 768); in save() 222 if (dir->wadfile->error ()) in save()
|
H A D | patchdir.cc | 114 const Wad_file *wf = dir->wadfile; in refresh() 181 start_label->wadfile->pathname (), in refresh() 190 dir->wadfile->pathname (), in refresh() 207 dir->wadfile->pathname (), (int) WAD_NAME, dir->dir.name); in refresh() 214 = Lump_loc (dir->wadfile, dir->dir.start, dir->dir.size); in refresh()
|
H A D | lumpdir.cc | 151 start_label->wadfile->pathname (), in refresh() 162 dir->wadfile->pathname (), in refresh() 179 dir->wadfile->pathname (), in refresh() 187 = Lump_loc (dir->wadfile, dir->dir.start, dir->dir.size); in refresh()
|
/dports/games/SRB2/SRB2-SRB2_release_2.2.9/tools/lumpmod/ |
H A D | lump.h | 43 struct wadfile { struct 50 struct wadfile *read_wadfile(FILE *); argument 51 void free_wadfile(struct wadfile *); 52 int write_wadfile(FILE *, struct wadfile *); 55 void remove_next_lump(struct wadfile *, struct lumplist *); 56 int add_lump(struct wadfile *, struct lumplist *, char *, long, unsigned char *); 58 struct lumplist *find_last_lump(struct wadfile *);
|
H A D | lump.c | 33 struct wadfile *read_wadfile(FILE *fpoint) { in read_wadfile() 34 struct wadfile *wfptr; in read_wadfile() 40 wfptr = malloc(sizeof(struct wadfile)); in read_wadfile() 155 void free_wadfile(struct wadfile *wfptr) { in free_wadfile() 184 int write_wadfile(FILE *fpoint, struct wadfile *wfptr) { in write_wadfile() 310 void remove_next_lump(struct wadfile *wfptr, struct lumplist *before) { in remove_next_lump() 338 int add_lump(struct wadfile *wfptr, struct lumplist *prev, char *name, long in add_lump() 402 struct lumplist *find_last_lump(struct wadfile *wfptr) { in find_last_lump()
|
/dports/games/SRB2/SRB2-SRB2_release_2.2.9/tools/SRB2MP/ |
H A D | lump.h | 42 struct wadfile { struct 49 struct wadfile *read_wadfile(FILE *); argument 50 void free_wadfile(struct wadfile *); 51 int write_wadfile(FILE *, struct wadfile *); 54 void remove_next_lump(struct wadfile *, struct lumplist *); 55 int add_lump(struct wadfile *, struct lumplist *, char *, long, unsigned char *); 57 struct lumplist *find_last_lump(struct wadfile *);
|
H A D | lump.c | 31 struct wadfile *read_wadfile(FILE *fpoint) { in read_wadfile() 32 struct wadfile *wfptr; in read_wadfile() 38 wfptr = (struct wadfile*)malloc(sizeof(struct wadfile)); in read_wadfile() 153 void free_wadfile(struct wadfile *wfptr) { in free_wadfile() 182 int write_wadfile(FILE *fpoint, struct wadfile *wfptr) { in write_wadfile() 308 void remove_next_lump(struct wadfile *wfptr, struct lumplist *before) { in remove_next_lump() 336 int add_lump(struct wadfile *wfptr, struct lumplist *prev, char *name, long in add_lump() 400 struct lumplist *find_last_lump(struct wadfile *wfptr) { in find_last_lump()
|
/dports/games/heretic/glheretic-1.2/sndserv/ |
H A D | wadread.c | 217 int wadfile; in openwad() local 226 wadfile = open(wadname, O_RDONLY); in openwad() 228 if (wadfile < 0) in openwad() 231 read(wadfile, &header, sizeof header); in openwad() 245 lseek(wadfile, tableoffset, SEEK_SET); in openwad() 252 lumpinfo[i].handle = wadfile; in openwad() 332 int wadfile; in do_pwad() local 343 wadfile = open(wadname, O_RDONLY); in do_pwad() 345 if (wadfile < 0) in do_pwad() 348 read(wadfile, &header, sizeof header); in do_pwad() [all …]
|
/dports/games/quakeforge/quakeforge-0.7.2/tools/wad/ |
H A D | script.c | 56 static wad_t *wadfile; variable 174 if (!wadfile) { in write_lump() 175 wadfile = wad_create (destfile.str); in write_lump() 176 if (!wadfile) in write_lump() 180 wad_add_data (wadfile, lumpname->str, type, lumpbuffer, in write_lump() 257 if (wadfile) in process_wad_script() 258 wad_close (wadfile); in process_wad_script()
|
H A D | wad.c | 108 options.wadfile = NULL; in decode_args() 139 options.wadfile = strdup (optarg); in decode_args() 158 if ((!options.wadfile) && argv[optind] && *(argv[optind])) in decode_args() 159 options.wadfile = strdup (argv[optind++]); in decode_args() 405 if (!options.wadfile) { in main() 413 if (!(wad = wad_open (options.wadfile))) { in main() 415 options.wadfile, in main() 443 if (!(wad = wad_open (options.wadfile))) { in main() 445 options.wadfile, in main() 466 process_wad_script (options.wadfile); in main()
|
/dports/games/doomlegacy/doomlegacy_1.48.8_source/src/ |
H A D | w_wad.c | 274 wadfile_t * wadfile; in W_Load_WadFile() local 483 wadfile->handle = handle; in W_Load_WadFile() 484 wadfile->numlumps = numlumps; in W_Load_WadFile() 485 wadfile->lumpinfo = lumpinfo; in W_Load_WadFile() 486 wadfile->filesize = file_size; in W_Load_WadFile() 491 wadfiles[filenum] = wadfile; in W_Load_WadFile() 531 wadfile->classify = fc; in W_Load_WadFile() 532 wadfile->lumpcache = NULL; in W_Load_WadFile() 533 wadfile->hwrcache = NULL; in W_Load_WadFile() 568 wadfile->lumpcache = lumpcache; in W_Load_WadFile() [all …]
|
/dports/games/doomsday/doomsday-2.3.1/doomsday/tools/wadtool/ |
H A D | wadtool.c | 134 char *wadfile; in main() local 150 wadfile = argv[1]; in main() 161 printf("Creating WAD file %s...\n", wadfile); in main() 162 if ((file = fopen(wadfile, "wb")) == NULL) in main() 164 printf("Couldn't open %s.\n", wadfile); in main()
|
/dports/games/uhexen2/hexen2source-1.5.9/utils/common/ |
H A D | bspfile.c | 306 static FILE *wadfile; variable 315 lump->fileofs = LittleLong( ftell(wadfile) ); in AddLump() 317 SafeWrite (wadfile, data, (len+3)&~3); in AddLump() 336 wadfile = SafeOpenWrite (filename); in WriteBSPFile() 337 SafeWrite (wadfile, header, sizeof(dheader_t)); // overwritten later in WriteBSPFile() 356 fseek (wadfile, 0, SEEK_SET); in WriteBSPFile() 357 SafeWrite (wadfile, header, sizeof(dheader_t)); in WriteBSPFile() 358 fclose (wadfile); in WriteBSPFile()
|