take namespace enum out of namespace and added CheckNumForAnyName and CheckNumForFullNameInFile to clarify the meaning of CheckNumForFullName.
This is to take some renaming noise out of the upcoming refactoring.
This commit is contained in:
parent
ba2800d698
commit
634a646c2d
51 changed files with 118 additions and 122 deletions
|
|
@ -304,7 +304,7 @@ static void ParseSingleFile(FScanner *pSC, const char *filename, int lump, void
|
|||
{
|
||||
if (filename != nullptr)
|
||||
{
|
||||
lump = fileSystem.CheckNumForFullName(filename, true);
|
||||
lump = fileSystem.CheckNumForAnyName(filename);
|
||||
if (lump >= 0)
|
||||
{
|
||||
lsc.OpenLumpNum(lump);
|
||||
|
|
@ -480,7 +480,7 @@ PNamespace *ParseOneScript(const int baselump, ZCCParseState &state)
|
|||
ParseSingleFile(&sc, nullptr, lumpnum, parser, state);
|
||||
for (unsigned i = 0; i < Includes.Size(); i++)
|
||||
{
|
||||
lumpnum = fileSystem.CheckNumForFullName(Includes[i].GetChars(), true);
|
||||
lumpnum = fileSystem.CheckNumForAnyName(Includes[i].GetChars());
|
||||
if (lumpnum == -1)
|
||||
{
|
||||
IncludeLocs[i].Message(MSG_ERROR, "Include script lump %s not found", Includes[i].GetChars());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue