feat(glue): implement Script_ContestAccepted

This commit is contained in:
Tristan Cormier 2026-01-11 16:56:44 -05:00
parent 68ab5ccced
commit cfbfecadf5
3 changed files with 9 additions and 1 deletions

View File

@ -55,6 +55,7 @@ unsigned char InterfaceKey[256] = {
0x0D, 0x36, 0xEA, 0x01, 0xE0, 0xAA, 0x91, 0x20, 0x54, 0xF0, 0x72, 0xD8, 0x1E, 0xC7, 0x89, 0xD2
};
int32_t CGlueMgr::m_acceptedContest = 1; // TODO
int32_t CGlueMgr::m_acceptedEULA = 1; // TODO
int32_t CGlueMgr::m_acceptedTerminationWithoutNotice;
int32_t CGlueMgr::m_acceptedTOS = 1; // TODO

View File

@ -32,6 +32,7 @@ class CGlueMgr {
};
// Static variables
static int32_t m_acceptedContest;
static int32_t m_acceptedEULA;
static int32_t m_acceptedTerminationWithoutNotice;
static int32_t m_acceptedTOS;

View File

@ -222,7 +222,13 @@ int32_t Script_ShowContestNotice(lua_State* L) {
}
int32_t Script_ContestAccepted(lua_State* L) {
WHOA_UNIMPLEMENTED(0);
if (CGlueMgr::m_acceptedContest) {
lua_pushnumber(L, 1.0);
} else {
lua_pushnil(L);
}
return 1;
}
int32_t Script_AcceptContest(lua_State* L) {