From d639ff33883ca7304531dc1326eba761163488e7 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sat, 14 Oct 2006 23:34:41 +0000 Subject: [PATCH] bind ActorUtil::GetFileType --- stepmania/src/ActorUtil.cpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/stepmania/src/ActorUtil.cpp b/stepmania/src/ActorUtil.cpp index ff71335db2..3fa3a270ee 100644 --- a/stepmania/src/ActorUtil.cpp +++ b/stepmania/src/ActorUtil.cpp @@ -633,6 +633,23 @@ FileType ActorUtil::GetFileType( const RString &sPath ) else return FileType_Invalid; } + +// lua start +#include "LuaBinding.h" + +namespace +{ + int GetFileType( lua_State *L ) { Enum::Push( L, ActorUtil::GetFileType(SArg(1)) ); return 1; } + + const luaL_Reg ActorUtilTable[] = + { + LIST_METHOD( GetFileType ), + { NULL, NULL } + }; +} + +LUA_REGISTER_NAMESPACE( ActorUtil ) + /* * (c) 2003-2004 Chris Danford * All rights reserved.