added Wads.GetLumpLength.

This commit is contained in:
Professor Hastig 2023-10-26 11:41:45 +02:00 committed by Rachael Alexanderson
commit 4d88e82e32
2 changed files with 8 additions and 0 deletions

View file

@ -848,6 +848,13 @@ DEFINE_ACTION_FUNCTION(_Wads, ReadLump)
ACTION_RETURN_STRING(isLumpValid ? GetStringFromLump(lump, false) : FString());
}
DEFINE_ACTION_FUNCTION(_Wads, GetLumpLength)
{
PARAM_PROLOGUE;
PARAM_INT(lump);
ACTION_RETURN_INT(fileSystem.FileLength(lump));
}
//==========================================================================
//
// CVARs