mirror of
https://github.com/whoahq/whoa.git
synced 2026-11-11 08:54:05 +03:00
feat(glue): implement Script_AcceptedScanning
This commit is contained in:
1 parent
68ab5ccced
commit
b902b5484e
3 files changed
+10
-1
No files matched your search
@@ -56,6 +56,7 @@ unsigned char InterfaceKey[256] = {
|
||||
};
|
||||
|
||||
int32_t CGlueMgr::m_acceptedEULA = 1; // TODO
|
||||
int32_t CGlueMgr::m_acceptedScanning = 1; // TODO
|
||||
int32_t CGlueMgr::m_acceptedTerminationWithoutNotice;
|
||||
int32_t CGlueMgr::m_acceptedTOS = 1; // TODO
|
||||
int32_t CGlueMgr::m_accountMsgAvailable;
|
||||
|
||||
@@ -33,6 +33,7 @@ class CGlueMgr {
|
||||
|
||||
// Static variables
|
||||
static int32_t m_acceptedEULA;
|
||||
static int32_t m_acceptedScanning;
|
||||
static int32_t m_acceptedTerminationWithoutNotice;
|
||||
static int32_t m_acceptedTOS;
|
||||
static int32_t m_accountMsgAvailable;
|
||||
|
||||
@@ -210,7 +210,14 @@ int32_t Script_ShowScanningNotice(lua_State* L) {
|
||||
}
|
||||
|
||||
int32_t Script_ScanningAccepted(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
if (CGlueMgr::m_acceptedScanning) {
|
||||
lua_pushnumber(L, 1.0);
|
||||
}
|
||||
else {
|
||||
lua_pushnil(L);
|
||||
}
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
int32_t Script_AcceptScanning(lua_State* L) {
|
||||
|
||||
Reference in new issue
Block a user