diff --git a/src/w_wad.cpp b/src/w_wad.cpp index 2c8213828..412450d0a 100644 --- a/src/w_wad.cpp +++ b/src/w_wad.cpp @@ -567,6 +567,13 @@ int FWadCollection::CheckNumForFullName (const char *name, bool trynormal, int n 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) { uint32_t i; diff --git a/wadsrc/static/zscript/base.txt b/wadsrc/static/zscript/base.txt index 9c429fb4d..a6866f0ff 100644 --- a/wadsrc/static/zscript/base.txt +++ b/wadsrc/static/zscript/base.txt @@ -638,6 +638,7 @@ struct 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 string ReadLump(int lump); }