mirror of
https://github.com/ZDoom/qzdoom.git
synced 2025-02-02 22:01:41 +00:00
Export FindLumpFullName to ZScript.
This commit is contained in:
parent
4c6d0e4209
commit
931211b9db
2 changed files with 11 additions and 0 deletions
|
@ -758,6 +758,16 @@ DEFINE_ACTION_FUNCTION(_Wads, FindLump)
|
|||
ACTION_RETURN_INT(isLumpValid ? fileSystem.FindLump(name, &startlump, 0 != ns) : -1);
|
||||
}
|
||||
|
||||
DEFINE_ACTION_FUNCTION(_Wads, FindLumpFullName)
|
||||
{
|
||||
PARAM_PROLOGUE;
|
||||
PARAM_STRING(name);
|
||||
PARAM_INT(startlump);
|
||||
PARAM_BOOL(noext);
|
||||
const bool isLumpValid = startlump >= 0 && startlump < fileSystem.GetNumEntries();
|
||||
ACTION_RETURN_INT(isLumpValid ? fileSystem.FindLumpFullName(name, &startlump, noext) : -1);
|
||||
}
|
||||
|
||||
DEFINE_ACTION_FUNCTION(_Wads, GetLumpName)
|
||||
{
|
||||
PARAM_PROLOGUE;
|
||||
|
|
|
@ -829,6 +829,7 @@ struct Wads // todo: make FileSystem an alias to 'Wads'
|
|||
native static int CheckNumForName(string name, int ns, int wadnum = -1, bool exact = false);
|
||||
native static int CheckNumForFullName(string name);
|
||||
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 GetNumLumps();
|
||||
|
|
Loading…
Reference in a new issue