| 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); |
nothing calls this directly
no test coverage detected