mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-01 16:22:45 +03:00
feat(ui): implement Script_GetBuildInfo
This commit is contained in:
parent
526fe4e8cb
commit
ee0dbb3f92
@ -18,7 +18,19 @@ int32_t Script_IsShiftKeyDown(lua_State* L) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
int32_t Script_GetBuildInfo(lua_State* L) {
|
int32_t Script_GetBuildInfo(lua_State* L) {
|
||||||
WHOA_UNIMPLEMENTED(0);
|
// TODO use compile-time defines to control these values
|
||||||
|
|
||||||
|
auto versionText = FrameScript_GetText("VERSION", -1, GENDER_NOT_APPLICABLE);
|
||||||
|
lua_pushstring(L, versionText);
|
||||||
|
|
||||||
|
auto releaseText = FrameScript_GetText("RELEASE_BUILD", -1, GENDER_NOT_APPLICABLE);
|
||||||
|
lua_pushstring(L, releaseText);
|
||||||
|
|
||||||
|
lua_pushstring(L, "3.3.5");
|
||||||
|
lua_pushstring(L, "12340");
|
||||||
|
lua_pushstring(L, "Jun 24 2010");
|
||||||
|
|
||||||
|
return 5;
|
||||||
}
|
}
|
||||||
|
|
||||||
int32_t Script_GetLocale(lua_State* L) {
|
int32_t Script_GetLocale(lua_State* L) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user