mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-01 00:02:45 +03:00
Merge b902b5484e into b9f2c60966
This commit is contained in:
commit
654c7a279b
@ -39,6 +39,7 @@
|
|||||||
#include <cstdio>
|
#include <cstdio>
|
||||||
|
|
||||||
int32_t CGlueMgr::m_acceptedEULA = 1; // TODO
|
int32_t CGlueMgr::m_acceptedEULA = 1; // TODO
|
||||||
|
int32_t CGlueMgr::m_acceptedScanning = 1; // TODO
|
||||||
int32_t CGlueMgr::m_acceptedTerminationWithoutNotice;
|
int32_t CGlueMgr::m_acceptedTerminationWithoutNotice;
|
||||||
int32_t CGlueMgr::m_acceptedTOS = 1; // TODO
|
int32_t CGlueMgr::m_acceptedTOS = 1; // TODO
|
||||||
int32_t CGlueMgr::m_accountMsgAvailable;
|
int32_t CGlueMgr::m_accountMsgAvailable;
|
||||||
|
|||||||
@ -33,6 +33,7 @@ class CGlueMgr {
|
|||||||
|
|
||||||
// Static variables
|
// Static variables
|
||||||
static int32_t m_acceptedEULA;
|
static int32_t m_acceptedEULA;
|
||||||
|
static int32_t m_acceptedScanning;
|
||||||
static int32_t m_acceptedTerminationWithoutNotice;
|
static int32_t m_acceptedTerminationWithoutNotice;
|
||||||
static int32_t m_acceptedTOS;
|
static int32_t m_acceptedTOS;
|
||||||
static int32_t m_accountMsgAvailable;
|
static int32_t m_accountMsgAvailable;
|
||||||
|
|||||||
@ -210,7 +210,14 @@ int32_t Script_ShowScanningNotice(lua_State* L) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
int32_t Script_ScanningAccepted(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) {
|
int32_t Script_AcceptScanning(lua_State* L) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user