mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-25 05:21:16 +00:00
added Wads.GetLumpLength.
This commit is contained in:
parent
77e5fd3081
commit
4d88e82e32
2 changed files with 8 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -862,6 +862,7 @@ struct Wads // todo: make FileSystem an alias to 'Wads'
|
|||
native static int FindLump(string name, int startlump = 0, FindLumpNamespace ns = GlobalNamespace);
|
||||
native static int FindLumpFullName(string name, int startlump = 0, bool noext = false);
|
||||
native static string ReadLump(int lump);
|
||||
native static int GetLumpLength(int lump);
|
||||
|
||||
native static int GetNumLumps();
|
||||
native static string GetLumpName(int lump);
|
||||
|
|
Loading…
Reference in a new issue