Compare commits

...
1 Commits
Author SHA1 Message Date
Tristan Cormier cfbfecadf5 feat(glue): implement Script_ContestAccepted 2026-02-25 14:03:32 -05:00
3 changed files with 9 additions and 1 deletions

No files matched your search

+1
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
+1
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;
+7 -1
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) {