| 604 | #endif // if CROWN_DEBUG |
| 605 | |
| 606 | void LuaEnvironment::reload() |
| 607 | { |
| 608 | LuaStack stack(L); |
| 609 | |
| 610 | lua_getglobal(L, "package"); |
| 611 | lua_getfield(L, -1, "load_order"); |
| 612 | for (size_t i = 1, n = lua_objlen(L, -1); i < n + 1; ++i) { |
| 613 | lua_rawgeti(L, -1, (int)i); |
| 614 | StringId64 name = stack.get_resource_name(-1); |
| 615 | this->execute((const LuaResource *)device()->_resource_manager->get(RESOURCE_TYPE_SCRIPT, name), 0); |
| 616 | lua_pop(L, 1); |
| 617 | } |
| 618 | lua_pop(L, 2); |
| 619 | } |
| 620 | |
| 621 | void LuaEnvironment::temp_count(u32 &num_vec3, u32 &num_quat, u32 &num_mat4) |
| 622 | { |
no test coverage detected