Skip to content

Commit

Permalink
Refactor: Use a PathDirectory in WadFile to store lump records
Browse files Browse the repository at this point in the history
  • Loading branch information
danij-deng committed Jan 7, 2012
1 parent c87178c commit e9ba638
Show file tree
Hide file tree
Showing 2 changed files with 208 additions and 143 deletions.
5 changes: 4 additions & 1 deletion doomsday/engine/portable/include/wadfile.h
Expand Up @@ -29,6 +29,7 @@
#include "abstractfile.h"

struct lumpdirectory_s;
struct pathdirectorynode_s;

/**
* WadFile. Runtime representation of a WAD file.
Expand All @@ -43,6 +44,8 @@ void WadFile_Delete(wadfile_t* wad);

int WadFile_PublishLumpsToDirectory(wadfile_t* file, struct lumpdirectory_s* directory);

struct pathdirectorynode_s* WadFile_DirectoryNodeForLump(wadfile_t* wad, int lumpIdx);

const lumpinfo_t* WadFile_LumpInfo(wadfile_t* file, int lumpIdx);

/**
Expand Down Expand Up @@ -94,7 +97,7 @@ void WadFile_ClearLumpCache(wadfile_t* wad);
* An extremely simple formula. Does not conform to any CRC standard.
* (So why's it called CRC, then?)
*/
uint WadFile_CalculateCRC(const wadfile_t* wad);
uint WadFile_CalculateCRC(wadfile_t* wad);

/**
* Accessors:
Expand Down

0 comments on commit e9ba638

Please sign in to comment.