mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-14 07:21:51 +00:00
remove core.get_version
This commit is contained in:
parent
13d13e89cf
commit
5260062181
3 changed files with 9 additions and 8 deletions
|
|
@ -51,7 +51,6 @@ local function complete_app_lib(app)
|
||||||
app.get_setting = core.get_setting
|
app.get_setting = core.get_setting
|
||||||
app.set_setting = core.set_setting
|
app.set_setting = core.set_setting
|
||||||
app.tick = __app_tick
|
app.tick = __app_tick
|
||||||
app.get_version = core.get_version
|
|
||||||
app.get_setting_info = core.get_setting_info
|
app.get_setting_info = core.get_setting_info
|
||||||
|
|
||||||
local function call_in_app_script_co(func, ...)
|
local function call_in_app_script_co(func, ...)
|
||||||
|
|
@ -585,3 +584,5 @@ require "core:internal/deprecated"
|
||||||
|
|
||||||
ffi = nil
|
ffi = nil
|
||||||
__vc_lock_internal_modules()
|
__vc_lock_internal_modules()
|
||||||
|
|
||||||
|
debug.print(core)
|
||||||
|
|
|
||||||
|
|
@ -18,6 +18,12 @@
|
||||||
|
|
||||||
using namespace scripting;
|
using namespace scripting;
|
||||||
|
|
||||||
|
static int l_get_version(lua::State* L) {
|
||||||
|
return lua::pushvec_stack(
|
||||||
|
L, glm::vec2(ENGINE_VERSION_MAJOR, ENGINE_VERSION_MINOR)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
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");
|
||||||
|
|
@ -131,6 +137,7 @@ static int l_open_url(lua::State* L) {
|
||||||
}
|
}
|
||||||
|
|
||||||
const luaL_Reg applib[] = {
|
const luaL_Reg applib[] = {
|
||||||
|
{"get_version", lua::wrap<l_get_version>},
|
||||||
{"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>},
|
||||||
|
|
|
||||||
|
|
@ -24,12 +24,6 @@
|
||||||
|
|
||||||
using namespace scripting;
|
using namespace scripting;
|
||||||
|
|
||||||
static int l_get_version(lua::State* L) {
|
|
||||||
return lua::pushvec_stack(
|
|
||||||
L, glm::vec2(ENGINE_VERSION_MAJOR, ENGINE_VERSION_MINOR)
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
static int l_load_content(lua::State* L) {
|
static int l_load_content(lua::State* L) {
|
||||||
content_control->loadContent();
|
content_control->loadContent();
|
||||||
return 0;
|
return 0;
|
||||||
|
|
@ -274,7 +268,6 @@ static int l_capture_output(lua::State* L) {
|
||||||
|
|
||||||
const luaL_Reg corelib[] = {
|
const luaL_Reg corelib[] = {
|
||||||
{"blank", lua::wrap<l_blank>},
|
{"blank", lua::wrap<l_blank>},
|
||||||
{"get_version", lua::wrap<l_get_version>},
|
|
||||||
{"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>},
|
{"is_content_loaded", lua::wrap<l_is_content_loaded>},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue