misc/libphysfs/archiver_wad.c
changeset 10017 de822cd3df3a
parent 8524 a65e9bcf0a03
child 12213 bb5522e88ab2
equal deleted inserted replaced
10015:4feced261c68 10017:de822cd3df3a
     1 /*
     1 /*
     2  * WAD support routines for PhysicsFS.
     2  * WAD support routines for PhysicsFS.
     3  *
     3  *
     4  * This driver handles DOOM engine archives ("wads"). 
     4  * This driver handles DOOM engine archives ("wads").
     5  * This format (but not this driver) was designed by id Software for use
     5  * This format (but not this driver) was designed by id Software for use
     6  *  with the DOOM engine.
     6  *  with the DOOM engine.
     7  * The specs of the format are from the unofficial doom specs v1.666
     7  * The specs of the format are from the unofficial doom specs v1.666
     8  * found here: http://www.gamers.org/dhs/helpdocs/dmsp1666.html
     8  * found here: http://www.gamers.org/dhs/helpdocs/dmsp1666.html
     9  * The format of the archive: (from the specs)
     9  * The format of the archive: (from the specs)
    26  *    (a) a long integer, the file offset to the start of the lump
    26  *    (a) a long integer, the file offset to the start of the lump
    27  *    (b) a long integer, the size of the lump in bytes
    27  *    (b) a long integer, the size of the lump in bytes
    28  *    (c) an 8-byte ASCII string, the name of the lump, padded with zeros.
    28  *    (c) an 8-byte ASCII string, the name of the lump, padded with zeros.
    29  *        For example, the "DEMO1" entry in hexadecimal would be
    29  *        For example, the "DEMO1" entry in hexadecimal would be
    30  *        (44 45 4D 4F 31 00 00 00)
    30  *        (44 45 4D 4F 31 00 00 00)
    31  * 
    31  *
    32  * Note that there is no way to tell if an opened WAD archive is a
    32  * Note that there is no way to tell if an opened WAD archive is a
    33  *  IWAD or PWAD with this archiver.
    33  *  IWAD or PWAD with this archiver.
    34  * I couldn't think of a way to provide that information, without being too
    34  * I couldn't think of a way to provide that information, without being too
    35  *  hacky.
    35  *  hacky.
    36  * I don't think it's really that important though.
    36  * I don't think it's really that important though.