mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-12-12 03:02:30 +00:00
chore: initial commit
This commit is contained in:
commit
70b00c5c38
965 changed files with 264882 additions and 0 deletions
29
src/net/login/Login.cpp
Normal file
29
src/net/login/Login.cpp
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
#include "net/login/Login.hpp"
|
||||
#include <cstring>
|
||||
#include <storm/Memory.hpp>
|
||||
#include <storm/String.hpp>
|
||||
|
||||
Login::~Login() {
|
||||
// TODO
|
||||
}
|
||||
|
||||
bool Login::IsReconnect() {
|
||||
return this->m_reconnect;
|
||||
}
|
||||
|
||||
bool Login::OnlineIdle() {
|
||||
// TODO
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
void Login::SetLogonCreds(const char* accountName, const char* password) {
|
||||
SStrCopy(this->m_accountName, accountName, 1280);
|
||||
|
||||
if (this->m_password) {
|
||||
memset(this->m_password, 0, SStrLen(this->m_password));
|
||||
SMemFree(this->m_password, __FILE__, __LINE__, 0x0);
|
||||
}
|
||||
|
||||
this->m_password = SStrDupA(password, __FILE__, __LINE__);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue