mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 11:31:49 +00:00
remove core.get_version
This commit is contained in:
parent
13d13e89cf
commit
5260062181
3 changed files with 9 additions and 8 deletions
|
|
@ -18,6 +18,12 @@
|
|||
|
||||
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) {
|
||||
if (!engine->getProject().permissions.has(Permissions::DEBUGGING)) {
|
||||
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[] = {
|
||||
{"get_version", lua::wrap<l_get_version>},
|
||||
{"start_debug_instance", lua::wrap<l_start_debug_instance>},
|
||||
{"focus", lua::wrap<l_focus>},
|
||||
{"create_memory_device", lua::wrap<l_create_memory_device>},
|
||||
|
|
|
|||
|
|
@ -24,12 +24,6 @@
|
|||
|
||||
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) {
|
||||
content_control->loadContent();
|
||||
return 0;
|
||||
|
|
@ -274,7 +268,6 @@ static int l_capture_output(lua::State* L) {
|
|||
|
||||
const luaL_Reg corelib[] = {
|
||||
{"blank", lua::wrap<l_blank>},
|
||||
{"get_version", lua::wrap<l_get_version>},
|
||||
{"load_content", lua::wrap<l_load_content>},
|
||||
{"reset_content", lua::wrap<l_reset_content>},
|
||||
{"is_content_loaded", lua::wrap<l_is_content_loaded>},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue