mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-11 05:51:51 +00:00
remove core.is_content_loaded
This commit is contained in:
parent
a6301c8837
commit
24f867dbac
3 changed files with 5 additions and 9 deletions
|
|
@ -68,8 +68,6 @@ local function complete_app_lib(app)
|
||||||
call_in_app_script_co(__core_reset_content, ...)
|
call_in_app_script_co(__core_reset_content, ...)
|
||||||
end
|
end
|
||||||
|
|
||||||
app.is_content_loaded = core.is_content_loaded
|
|
||||||
|
|
||||||
function app.config_packs(packs_list)
|
function app.config_packs(packs_list)
|
||||||
-- Check if packs are valid and add dependencies to the configuration
|
-- Check if packs are valid and add dependencies to the configuration
|
||||||
packs_list = pack.assemble(packs_list)
|
packs_list = pack.assemble(packs_list)
|
||||||
|
|
@ -581,5 +579,3 @@ require "core:internal/deprecated"
|
||||||
|
|
||||||
ffi = nil
|
ffi = nil
|
||||||
__vc_lock_internal_modules()
|
__vc_lock_internal_modules()
|
||||||
|
|
||||||
debug.print(core)
|
|
||||||
|
|
|
||||||
|
|
@ -25,6 +25,10 @@ static int l_get_version(lua::State* L) {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static int l_is_content_loaded(lua::State* L) {
|
||||||
|
return lua::pushboolean(L, content != nullptr);
|
||||||
|
}
|
||||||
|
|
||||||
static int l_start_debug_instance(lua::State* L) {
|
static int l_start_debug_instance(lua::State* L) {
|
||||||
if (!engine->getProject().permissions.has(Permissions::DEBUGGING)) {
|
if (!engine->getProject().permissions.has(Permissions::DEBUGGING)) {
|
||||||
throw std::runtime_error("project has no debugging permission");
|
throw std::runtime_error("project has no debugging permission");
|
||||||
|
|
@ -206,6 +210,7 @@ static int l_open_url(lua::State* L) {
|
||||||
|
|
||||||
const luaL_Reg applib[] = {
|
const luaL_Reg applib[] = {
|
||||||
{"get_version", lua::wrap<l_get_version>},
|
{"get_version", lua::wrap<l_get_version>},
|
||||||
|
{"is_content_loaded", lua::wrap<l_is_content_loaded>},
|
||||||
{"start_debug_instance", lua::wrap<l_start_debug_instance>},
|
{"start_debug_instance", lua::wrap<l_start_debug_instance>},
|
||||||
{"focus", lua::wrap<l_focus>},
|
{"focus", lua::wrap<l_focus>},
|
||||||
{"create_memory_device", lua::wrap<l_create_memory_device>},
|
{"create_memory_device", lua::wrap<l_create_memory_device>},
|
||||||
|
|
|
||||||
|
|
@ -45,10 +45,6 @@ static int l_reset_content(lua::State* L) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int l_is_content_loaded(lua::State* L) {
|
|
||||||
return lua::pushboolean(L, content != nullptr);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// @brief Creating new world
|
/// @brief Creating new world
|
||||||
/// @param name Name world
|
/// @param name Name world
|
||||||
/// @param seed Seed world
|
/// @param seed Seed world
|
||||||
|
|
@ -202,7 +198,6 @@ const luaL_Reg corelib[] = {
|
||||||
{"blank", lua::wrap<l_blank>},
|
{"blank", lua::wrap<l_blank>},
|
||||||
{"load_content", lua::wrap<l_load_content>},
|
{"load_content", lua::wrap<l_load_content>},
|
||||||
{"reset_content", lua::wrap<l_reset_content>},
|
{"reset_content", lua::wrap<l_reset_content>},
|
||||||
{"is_content_loaded", lua::wrap<l_is_content_loaded>},
|
|
||||||
{"new_world", lua::wrap<l_new_world>},
|
{"new_world", lua::wrap<l_new_world>},
|
||||||
{"open_world", lua::wrap<l_open_world>},
|
{"open_world", lua::wrap<l_open_world>},
|
||||||
{"reopen_world", lua::wrap<l_reopen_world>},
|
{"reopen_world", lua::wrap<l_reopen_world>},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue