mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-12-01 00:21:35 +00:00
Added Wads.CheckNumForFullName() to ZScript
https://forum.zdoom.org/viewtopic.php?t=57814
This commit is contained in:
parent
2f45218f70
commit
415ed57713
2 changed files with 8 additions and 0 deletions
|
@ -567,6 +567,13 @@ int FWadCollection::CheckNumForFullName (const char *name, bool trynormal, int n
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
DEFINE_ACTION_FUNCTION(_Wads, CheckNumForFullName)
|
||||||
|
{
|
||||||
|
PARAM_PROLOGUE;
|
||||||
|
PARAM_STRING(name);
|
||||||
|
ACTION_RETURN_INT(Wads.CheckNumForFullName(name));
|
||||||
|
}
|
||||||
|
|
||||||
int FWadCollection::CheckNumForFullName (const char *name, int wadnum)
|
int FWadCollection::CheckNumForFullName (const char *name, int wadnum)
|
||||||
{
|
{
|
||||||
uint32_t i;
|
uint32_t i;
|
||||||
|
|
|
@ -638,6 +638,7 @@ struct Wads
|
||||||
}
|
}
|
||||||
|
|
||||||
native static int CheckNumForName(string name, int ns, int wadnum = -1, bool exact = false);
|
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 FindLump(string name, int startlump = 0, FindLumpNamespace ns = GlobalNamespace);
|
||||||
native static string ReadLump(int lump);
|
native static string ReadLump(int lump);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue