ActorUtil::ResolvePath

This commit is contained in:
Glenn Maynard
2006-10-15 02:42:33 +00:00
parent 4be14b7f50
commit 2af845a248
+12
View File
@@ -643,10 +643,22 @@ FileType ActorUtil::GetFileType( const RString &sPath )
namespace
{
int GetFileType( lua_State *L ) { Enum::Push( L, ActorUtil::GetFileType(SArg(1)) ); return 1; }
int ResolvePath( lua_State *L )
{
RString sPath( SArg(1) );
LUA->YieldLua();
ActorUtil::ResolvePath( sPath, "" );
LUA->UnyieldLua();
LuaHelpers::Push( L, sPath );
return 1;
}
const luaL_Reg ActorUtilTable[] =
{
LIST_METHOD( GetFileType ),
LIST_METHOD( ResolvePath ),
{ NULL, NULL }
};
}