mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-11 15:22:16 +00:00
Move function out of header due to compile errors on macOS
This commit is contained in:
parent
04344505c0
commit
2c138d703d
2 changed files with 23 additions and 19 deletions
|
@ -716,3 +716,24 @@ int FExternalLump::FillCache()
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
bool FMemoryFile::Open(bool quiet)
|
||||||
|
{
|
||||||
|
FString name(ExtractFileBase(Filename));
|
||||||
|
FString fname(ExtractFileBase(Filename, true));
|
||||||
|
|
||||||
|
Lumps = new FUncompressedLump[1]; // must use array allocator
|
||||||
|
uppercopy(Lumps->Name, name);
|
||||||
|
Lumps->Name[8] = 0;
|
||||||
|
Lumps->FullName = fname;
|
||||||
|
Lumps->Owner = this;
|
||||||
|
Lumps->Position = 0;
|
||||||
|
Lumps->LumpSize = Reader->GetLength();
|
||||||
|
Lumps->Namespace = ns_global;
|
||||||
|
Lumps->Flags = 0;
|
||||||
|
Lumps->FullName = NULL;
|
||||||
|
NumLumps = 1;
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -160,24 +160,7 @@ struct FMemoryFile : public FUncompressedFile
|
||||||
Reader = &mr;
|
Reader = &mr;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Open(bool quiet)
|
bool Open(bool quiet);
|
||||||
{
|
|
||||||
FString name(ExtractFileBase(Filename));
|
|
||||||
FString fname(ExtractFileBase(Filename, true));
|
|
||||||
|
|
||||||
Lumps = new FUncompressedLump[1]; // must use array allocator
|
|
||||||
uppercopy(Lumps->Name, name);
|
|
||||||
Lumps->Name[8] = 0;
|
|
||||||
Lumps->FullName = fname;
|
|
||||||
Lumps->Owner = this;
|
|
||||||
Lumps->Position = 0;
|
|
||||||
Lumps->LumpSize = Reader->GetLength();
|
|
||||||
Lumps->Namespace = ns_global;
|
|
||||||
Lumps->Flags = 0;
|
|
||||||
Lumps->FullName = NULL;
|
|
||||||
NumLumps = 1;
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue