--check: 938/3256 method bodies compile for x86_64 (28.8%), 32-bit layout asserts hold; boot path 3/626 curated. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
60 lines
2.1 KiB
C++
60 lines
2.1 KiB
C++
#include "classes.h"
|
|
|
|
// 0085b050
|
|
void LobbySettings::reset()
|
|
{
|
|
std_string *passwordData;
|
|
std_string *seedData;
|
|
void *local_10;
|
|
uint8_t *puStack_c;
|
|
uint32_t local_8;
|
|
MenuManager *menuManager;
|
|
|
|
puStack_c = &LAB_00b03826;
|
|
local_10 = ExceptionList;
|
|
ExceptionList = &local_10;
|
|
(this->_seed)._buf[0] = '\0';
|
|
(this->_seed)._buf[1] = '\0';
|
|
(this->_seed)._buf[2] = '\0';
|
|
(this->_seed)._buf[3] = '\0';
|
|
(this->_seed)._size = 0;
|
|
(this->_seed)._capacity = 0xf;
|
|
(this->_seed)._buf[0] = '\0';
|
|
(this->_password)._buf[0] = '\0';
|
|
(this->_password)._buf[1] = '\0';
|
|
(this->_password)._buf[2] = '\0';
|
|
(this->_password)._buf[3] = '\0';
|
|
(this->_password)._size = 0;
|
|
(this->_password)._capacity = 0xf;
|
|
(this->_password)._buf[0] = '\0';
|
|
*GHIDRA_CAST<uint32_t *>((this + 1)) = 0;
|
|
*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[1])) + 0x4)))) = 0;
|
|
this[1]._challenge = 0;
|
|
local_8 = 2;
|
|
seedData = &this->_seed;
|
|
*GHIDRA_CAST<uint32_t *>(this) = 0;
|
|
*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x4)))) = 0;
|
|
this->_challenge = 0;
|
|
this->_maxPlayers = 4;
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x10))) = 1;
|
|
*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((this)) + 0x14)))) = 0;
|
|
if (0xf < (this->_seed)._capacity) {
|
|
seedData = *GHIDRA_CAST<std_string **>((this->_seed)._buf);
|
|
}
|
|
(this->_seed)._size = 0;
|
|
passwordData = &this->_password;
|
|
seedData->_buf[0] = '\0';
|
|
if (0xf < (this->_password)._capacity) {
|
|
passwordData = *GHIDRA_CAST<std_string **>((this->_password)._buf);
|
|
}
|
|
(this->_password)._size = 0;
|
|
passwordData->_buf[0] = '\0';
|
|
menuManager = g_menuManager;
|
|
*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[1])) + 0x4)))) = *GHIDRA_CAST<uint32_t *>((this + 1));
|
|
if ((menuManager != GHIDRA_CAST<MenuManager *>(0x0)) && (this == &g_manager->_lobbySettings)) {
|
|
(GHIDRA_CAST<Menu_OnlineLobby *>((&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((menuManager)) + 0xdce8))))))->Menu_OnlineLobby::init_lobby_view();
|
|
}
|
|
ExceptionList = local_10;
|
|
return;
|
|
}
|