From 61e58cd51ffb46eadb13a867cf332724f742433c Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sun, 15 Oct 2006 05:54:50 +0000 Subject: [PATCH] bind IsRegisteredType --- stepmania/src/ActorUtil.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/stepmania/src/ActorUtil.cpp b/stepmania/src/ActorUtil.cpp index 94ba6261ea..5f8585ff02 100644 --- a/stepmania/src/ActorUtil.cpp +++ b/stepmania/src/ActorUtil.cpp @@ -651,11 +651,17 @@ namespace LuaHelpers::Push( L, sPath ); return 1; } + int IsRegisteredType( lua_State *L ) + { + lua_pushboolean( L, IsRegistered(SArg(1)) ); + return 1; + } const luaL_Reg ActorUtilTable[] = { LIST_METHOD( GetFileType ), LIST_METHOD( ResolvePath ), + LIST_METHOD( IsRegisteredType ), { NULL, NULL } }; }