mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-10 14:51:46 +00:00
- added 'nospriterename' key to GAMEINFO lump so that PWADs have a means to disable this feature without having to specify a command line switch.
SVN r2623 (trunk)
This commit is contained in:
parent
4e1a514455
commit
387bfc0260
2 changed files with 7 additions and 1 deletions
|
@ -201,6 +201,7 @@ gamestate_t wipegamestate = GS_DEMOSCREEN; // can be -1 to force a wipe
|
|||
bool PageBlank;
|
||||
FTexture *Page;
|
||||
FTexture *Advisory;
|
||||
bool nospriterename;
|
||||
|
||||
cycle_t FrameCycles;
|
||||
|
||||
|
@ -1678,6 +1679,10 @@ static FString ParseGameInfo(TArray<FString> &pwads, const char *fn, const char
|
|||
}
|
||||
while (sc.CheckToken(','));
|
||||
}
|
||||
else if (!nextKey.CompareNoCase("NOSPRITERENAME"))
|
||||
{
|
||||
nospriterename = true;
|
||||
}
|
||||
}
|
||||
return iwad;
|
||||
}
|
||||
|
|
|
@ -70,6 +70,7 @@ struct FWadCollection::LumpRecord
|
|||
};
|
||||
|
||||
// EXTERNAL FUNCTION PROTOTYPES --------------------------------------------
|
||||
extern bool nospriterename;
|
||||
|
||||
// PUBLIC FUNCTION PROTOTYPES ----------------------------------------------
|
||||
|
||||
|
@ -759,7 +760,7 @@ void FWadCollection::RenameSprites ()
|
|||
}
|
||||
}
|
||||
|
||||
renameAll = !!Args->CheckParm ("-oldsprites");
|
||||
renameAll = !!Args->CheckParm ("-oldsprites") || nospriterename;
|
||||
|
||||
for (DWORD i = 0; i < LumpInfo.Size(); i++)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue