- moved the file name management out of the single resource lumps.
This is now being managed by the main file system class. The single lumps should only concern themselves with the actual data they manage, not with how the file system presents them to the outside. The IWAD detection code was also switched to use a file system wrapper instead of looking at the single files directly.
This commit is contained in:
parent
89fb479c19
commit
a38633aa22
11 changed files with 210 additions and 218 deletions
|
|
@ -284,11 +284,11 @@ MapData *P_OpenMapData(const char * mapname, bool justcheck)
|
|||
int index=0;
|
||||
|
||||
map->MapLumps[0].Reader = map->resource->GetLump(0)->NewReader();
|
||||
strncpy(map->MapLumps[0].Name, map->resource->GetLump(0)->Name, 8);
|
||||
uppercopy(map->MapLumps[0].Name, map->resource->GetLump(0)->getName());
|
||||
|
||||
for(uint32_t i = 1; i < map->resource->LumpCount(); i++)
|
||||
{
|
||||
const char* lumpname = map->resource->GetLump(i)->Name;
|
||||
const char* lumpname = map->resource->GetLump(i)->getName();
|
||||
|
||||
if (i == 1 && !strnicmp(lumpname, "TEXTMAP", 8))
|
||||
{
|
||||
|
|
@ -297,7 +297,7 @@ MapData *P_OpenMapData(const char * mapname, bool justcheck)
|
|||
strncpy(map->MapLumps[ML_TEXTMAP].Name, lumpname, 8);
|
||||
for(int i = 2;; i++)
|
||||
{
|
||||
lumpname = map->resource->GetLump(i)->Name;
|
||||
lumpname = map->resource->GetLump(i)->getName();
|
||||
if (!strnicmp(lumpname, "ZNODES",8))
|
||||
{
|
||||
index = ML_GLZNODES;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue