mirror of
https://github.com/whoahq/whoa.git
synced 2026-10-30 19:37:04 +03:00
Compare commits
3
Commits
8ed1fee9e1
...
4056446cf5
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4056446cf5 | ||
|
|
6923b07f6c | ||
|
|
e985629f09 |
No files matched your search
@@ -160,6 +160,11 @@ ClientConnection* ClientServices::Connection() {
|
||||
return ClientServices::s_currentConnection;
|
||||
}
|
||||
|
||||
uint32_t ClientServices::CharacterValidateName(const char* name) {
|
||||
// TODO
|
||||
return 87;
|
||||
}
|
||||
|
||||
void ClientServices::Disconnect() {
|
||||
ClientServices::Connection()->Disconnect();
|
||||
}
|
||||
|
||||
@@ -33,6 +33,7 @@ class ClientServices : public LoginResponse {
|
||||
// Static functions
|
||||
static void ConnectToSelectedServer();
|
||||
static ClientConnection* Connection();
|
||||
static uint32_t CharacterValidateName(const char* name);
|
||||
static void Disconnect();
|
||||
static const char* GetCurrentLoginPortal();
|
||||
static const char* GetCurrentLoginServer();
|
||||
|
||||
@@ -120,7 +120,13 @@ int32_t Script_GetDebugStats(lua_State* L) {
|
||||
}
|
||||
|
||||
int32_t Script_IsDebugBuild(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
#if defined(NDEBUG)
|
||||
lua_pushboolean(L, 0);
|
||||
#else
|
||||
lua_pushboolean(L, 1);
|
||||
#endif
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
int32_t Script_RegisterCVar(lua_State* L) {
|
||||
|
||||
Reference in new issue
Block a user