MCPcopy Create free account
hub / github.com/9chu/LuaSTGPlus / LoadFX

Method LoadFX

LuaSTGPlus/LuaWrapper.cpp:987–999  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

985 return 0;
986 }
987 static int LoadFX(lua_State* L)LNOEXCEPT
988 {
989 const char* name = luaL_checkstring(L, 1);
990 const char* path = luaL_checkstring(L, 2);
991
992 ResourcePool* pActivedPool = LRES.GetActivedPool();
993 if (!pActivedPool)
994 return luaL_error(L, "can't load resource at this time.");
995
996 if (!pActivedPool->LoadFX(name, path))
997 return luaL_error(L, "load fx failed (name=%s, path=%s)", name, path);
998 return 0;
999 }
1000 static int CreateRenderTarget(lua_State* L)LNOEXCEPT
1001 {
1002 const char* name = luaL_checkstring(L, 1);

Callers

nothing calls this directly

Calls 1

GetActivedPoolMethod · 0.80

Tested by

no test coverage detected