mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-04-18 19:12:44 +03:00
feat(ui): add Script_GetBuildInfo
This commit is contained in:
parent
a9bb4ccdce
commit
f525e600a2
@ -19,7 +19,15 @@ int32_t Script_IsShiftKeyDown(lua_State* L) {
|
||||
}
|
||||
|
||||
int32_t Script_GetBuildInfo(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
auto version = FrameScript_GetText("VERSION", -1, GENDER_NOT_APPLICABLE);
|
||||
lua_pushstring(L, version);
|
||||
|
||||
auto releaseBuild = FrameScript_GetText("RELEASE_BUILD", -1, GENDER_NOT_APPLICABLE);
|
||||
lua_pushstring(L, releaseBuild);
|
||||
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) {
|
||||
@ -27,7 +35,9 @@ int32_t Script_GetLocale(lua_State* L) {
|
||||
}
|
||||
|
||||
int32_t Script_GetSavedAccountName(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
// TODO
|
||||
lua_pushstring(L, "");
|
||||
return 1;
|
||||
}
|
||||
|
||||
int32_t Script_SetSavedAccountName(lua_State* L) {
|
||||
|
Loading…
Reference in New Issue
Block a user