| 42 | }; |
| 43 | |
| 44 | static int ResolvePathCallback(lua_State* L) |
| 45 | { |
| 46 | DM_LUA_STACK_CHECK(L, 1); |
| 47 | |
| 48 | const int self_index = 1; |
| 49 | |
| 50 | ScriptInstance* i = (ScriptInstance*)lua_touserdata(L, self_index); |
| 51 | assert(i); |
| 52 | assert(i->m_ContextTableReference != LUA_NOREF); |
| 53 | const char* path = luaL_checkstring(L, 2); |
| 54 | dmScript::PushHash(L, dmHashString64(path)); |
| 55 | return 1; |
| 56 | } |
| 57 | |
| 58 | static int GetURLCallback(lua_State* L) |
| 59 | { |
nothing calls this directly
no test coverage detected