Added Wads.CheckNumForFullName() to ZScript

https://forum.zdoom.org/viewtopic.php?t=57814
This commit is contained in:
alexey.lysiuk 2017-10-29 15:11:49 +02:00
parent 2f45218f70
commit 415ed57713
2 changed files with 8 additions and 0 deletions

View file

@ -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;

View file

@ -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);
} }