| 898 | return 0; |
| 899 | } |
| 900 | static int LoadSound(lua_State* L)LNOEXCEPT |
| 901 | { |
| 902 | const char* name = luaL_checkstring(L, 1); |
| 903 | const char* path = luaL_checkstring(L, 2); |
| 904 | |
| 905 | ResourcePool* pActivedPool = LRES.GetActivedPool(); |
| 906 | if (!pActivedPool) |
| 907 | return luaL_error(L, "can't load resource at this time."); |
| 908 | |
| 909 | if (!pActivedPool->LoadSound(name, path)) |
| 910 | return luaL_error(L, "load sound failed (name=%s, path=%s)", name, path); |
| 911 | return 0; |
| 912 | } |
| 913 | static int LoadMusic(lua_State* L)LNOEXCEPT |
| 914 | { |
| 915 | const char* name = luaL_checkstring(L, 1); |
nothing calls this directly
no test coverage detected