mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-11-20 09:29:44 +00:00
update app.get_version
This commit is contained in:
parent
3e22dd6329
commit
5390541334
1 changed files with 7 additions and 2 deletions
|
|
@ -328,10 +328,15 @@ static int l_delete_world(lua::State* L) {
|
|||
}
|
||||
|
||||
/// @brief Get engine version
|
||||
/// @return major, minor
|
||||
/// @return major, minor, [patch]
|
||||
static int l_get_version(lua::State* L) {
|
||||
return lua::pushvec_stack(
|
||||
L, glm::vec2(ENGINE_VERSION_MAJOR, ENGINE_VERSION_MINOR)
|
||||
L,
|
||||
#ifdef VC_VERSION_PATCH
|
||||
glm::vec3(ENGINE_VERSION_MAJOR, ENGINE_VERSION_MINOR, ENGINE_VERSION_PATCH)
|
||||
#else
|
||||
glm::vec2(ENGINE_VERSION_MAJOR, ENGINE_VERSION_MINOR)
|
||||
#endif
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue