wadpath.h 824 B

123456789101112131415161718192021222324
  1. // AJM: added file in
  2. #ifndef WADPATH_H__
  3. #define WADPATH_H__
  4. #define MAX_WADPATHS 128 // arbitrary
  5. typedef struct
  6. {
  7. char path[_MAX_PATH];
  8. bool usedbymap; // does this map requrie this wad to be included in the bsp?
  9. int usedtextures; // number of textures in this wad the map actually uses
  10. } wadpath_t;//!!! the above two are VERY DIFFERENT. ie (usedtextures == 0) != (usedbymap == false)
  11. extern wadpath_t* g_pWadPaths[MAX_WADPATHS];
  12. extern int g_iNumWadPaths;
  13. extern void PushWadPath(const char* const path, bool inuse);
  14. extern bool IsUsedWadPath(const char* const path);
  15. extern bool IsListedWadPath(const char* const path);
  16. extern void FreeWadPaths();
  17. extern void GetUsedWads();
  18. #endif // WADPATH_H__