|
|
|
@@ -2,8 +2,12 @@
|
|
|
|
|
|
|
|
|
|
#include "act1state.h"
|
|
|
|
|
#include "define.h"
|
|
|
|
|
#include "dunebuggy.h"
|
|
|
|
|
#include "helicopter.h"
|
|
|
|
|
#include "infocenterstate.h"
|
|
|
|
|
#include "isle.h"
|
|
|
|
|
#include "islepathactor.h"
|
|
|
|
|
#include "jetski.h"
|
|
|
|
|
#include "legoanimationmanager.h"
|
|
|
|
|
#include "legobuildingmanager.h"
|
|
|
|
|
#include "legonavcontroller.h"
|
|
|
|
@@ -18,6 +22,7 @@
|
|
|
|
|
#include "mxobjectfactory.h"
|
|
|
|
|
#include "mxstring.h"
|
|
|
|
|
#include "mxvariabletable.h"
|
|
|
|
|
#include "racecar.h"
|
|
|
|
|
#include "roi/legoroi.h"
|
|
|
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
@@ -90,7 +95,7 @@ LegoGameState::LegoGameState()
|
|
|
|
|
m_currentArea = e_noArea;
|
|
|
|
|
m_previousArea = e_noArea;
|
|
|
|
|
m_unk0x42c = e_noArea;
|
|
|
|
|
m_unk0x26 = 0;
|
|
|
|
|
m_playerCount = 0;
|
|
|
|
|
m_isDirty = FALSE;
|
|
|
|
|
m_loadedAct = e_actNotFound;
|
|
|
|
|
SetCurrentAct(e_act1);
|
|
|
|
@@ -158,6 +163,15 @@ void LegoGameState::SetActor(MxU8 p_actorId)
|
|
|
|
|
SetCurrentActor(newActor);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// FUNCTION: LEGO1 0x10039910
|
|
|
|
|
void LegoGameState::RemoveActor()
|
|
|
|
|
{
|
|
|
|
|
IslePathActor* actor = CurrentActor();
|
|
|
|
|
SetCurrentActor(NULL);
|
|
|
|
|
delete actor;
|
|
|
|
|
m_actorId = 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// FUNCTION: LEGO1 0x10039940
|
|
|
|
|
void LegoGameState::ResetROI()
|
|
|
|
|
{
|
|
|
|
@@ -185,7 +199,7 @@ MxResult LegoGameState::Save(MxULong p_slot)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
MxResult result = FAILURE;
|
|
|
|
|
LegoFile fileStream;
|
|
|
|
|
LegoFile fileStorage;
|
|
|
|
|
MxVariableTable* variableTable = VariableTable();
|
|
|
|
|
MxS16 count = 0;
|
|
|
|
|
MxU32 i;
|
|
|
|
@@ -195,32 +209,32 @@ MxResult LegoGameState::Save(MxULong p_slot)
|
|
|
|
|
MxString savePath;
|
|
|
|
|
GetFileSavePath(&savePath, p_slot);
|
|
|
|
|
|
|
|
|
|
if (fileStream.Open(savePath.GetData(), LegoFile::c_write) == FAILURE) {
|
|
|
|
|
if (fileStorage.Open(savePath.GetData(), LegoFile::c_write) == FAILURE) {
|
|
|
|
|
goto done;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Write(&fileStream, 0x1000c);
|
|
|
|
|
Write(&fileStream, m_unk0x24);
|
|
|
|
|
Write(&fileStream, (MxU16) m_currentAct);
|
|
|
|
|
Write(&fileStream, m_actorId);
|
|
|
|
|
Write(&fileStorage, 0x1000c);
|
|
|
|
|
Write(&fileStorage, m_unk0x24);
|
|
|
|
|
Write(&fileStorage, (MxU16) m_currentAct);
|
|
|
|
|
Write(&fileStorage, m_actorId);
|
|
|
|
|
|
|
|
|
|
for (i = 0; i < _countof(g_colorSaveData); i++) {
|
|
|
|
|
if (WriteVariable(&fileStream, variableTable, g_colorSaveData[i].m_targetName) == FAILURE) {
|
|
|
|
|
if (WriteVariable(&fileStorage, variableTable, g_colorSaveData[i].m_targetName) == FAILURE) {
|
|
|
|
|
goto done;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (WriteVariable(&fileStream, variableTable, "backgroundcolor") == FAILURE) {
|
|
|
|
|
if (WriteVariable(&fileStorage, variableTable, "backgroundcolor") == FAILURE) {
|
|
|
|
|
goto done;
|
|
|
|
|
}
|
|
|
|
|
if (WriteVariable(&fileStream, variableTable, "lightposition") == FAILURE) {
|
|
|
|
|
if (WriteVariable(&fileStorage, variableTable, "lightposition") == FAILURE) {
|
|
|
|
|
goto done;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
WriteEndOfVariables(&fileStream);
|
|
|
|
|
UnkSaveDataWriter()->WriteSaveData3(&fileStream);
|
|
|
|
|
PlantManager()->Save(&fileStream);
|
|
|
|
|
result = BuildingManager()->Save(&fileStream);
|
|
|
|
|
WriteEndOfVariables(&fileStorage);
|
|
|
|
|
UnkSaveDataWriter()->WriteSaveData3(&fileStorage);
|
|
|
|
|
PlantManager()->Save(&fileStorage);
|
|
|
|
|
result = BuildingManager()->Save(&fileStorage);
|
|
|
|
|
|
|
|
|
|
for (j = 0; j < m_stateCount; j++) {
|
|
|
|
|
if (m_stateArray[j]->VTable0x14()) {
|
|
|
|
@@ -228,16 +242,16 @@ MxResult LegoGameState::Save(MxULong p_slot)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Write(&fileStream, count);
|
|
|
|
|
Write(&fileStorage, count);
|
|
|
|
|
|
|
|
|
|
for (j = 0; j < m_stateCount; j++) {
|
|
|
|
|
if (m_stateArray[j]->VTable0x14()) {
|
|
|
|
|
m_stateArray[j]->VTable0x1c(&fileStream);
|
|
|
|
|
m_stateArray[j]->VTable0x1c(&fileStorage);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
area = m_unk0x42c;
|
|
|
|
|
Write(&fileStream, (MxU16) area);
|
|
|
|
|
Write(&fileStorage, (MxU16) area);
|
|
|
|
|
SerializeScoreHistory(2);
|
|
|
|
|
m_isDirty = FALSE;
|
|
|
|
|
|
|
|
|
@@ -272,13 +286,13 @@ MxResult LegoGameState::DeleteState()
|
|
|
|
|
MxResult LegoGameState::Load(MxULong p_slot)
|
|
|
|
|
{
|
|
|
|
|
MxResult result = FAILURE;
|
|
|
|
|
LegoFile fileStream;
|
|
|
|
|
LegoFile fileStorage;
|
|
|
|
|
MxVariableTable* variableTable = VariableTable();
|
|
|
|
|
|
|
|
|
|
MxString savePath;
|
|
|
|
|
GetFileSavePath(&savePath, p_slot);
|
|
|
|
|
|
|
|
|
|
if (fileStream.Open(savePath.GetData(), LegoFile::c_read) == FAILURE) {
|
|
|
|
|
if (fileStorage.Open(savePath.GetData(), LegoFile::c_read) == FAILURE) {
|
|
|
|
|
goto done;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@@ -286,25 +300,25 @@ MxResult LegoGameState::Load(MxULong p_slot)
|
|
|
|
|
MxS16 count, area, act;
|
|
|
|
|
const char* lightPosition;
|
|
|
|
|
|
|
|
|
|
Read(&fileStream, &version);
|
|
|
|
|
Read(&fileStorage, &version);
|
|
|
|
|
|
|
|
|
|
if (version != 0x1000c) {
|
|
|
|
|
OmniError("Saved game version mismatch", 0);
|
|
|
|
|
goto done;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Read(&fileStream, &m_unk0x24);
|
|
|
|
|
Read(&fileStorage, &m_unk0x24);
|
|
|
|
|
|
|
|
|
|
Read(&fileStream, &act);
|
|
|
|
|
Read(&fileStorage, &act);
|
|
|
|
|
SetCurrentAct((Act) act);
|
|
|
|
|
|
|
|
|
|
Read(&fileStream, &m_actorId);
|
|
|
|
|
Read(&fileStorage, &m_actorId);
|
|
|
|
|
if (m_actorId) {
|
|
|
|
|
SetActor(m_actorId);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
do {
|
|
|
|
|
status = ReadVariable(&fileStream, variableTable);
|
|
|
|
|
status = ReadVariable(&fileStorage, variableTable);
|
|
|
|
|
if (status == 1) {
|
|
|
|
|
goto done;
|
|
|
|
|
}
|
|
|
|
@@ -317,13 +331,13 @@ MxResult LegoGameState::Load(MxULong p_slot)
|
|
|
|
|
SetLightPosition(atoi(lightPosition));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (UnkSaveDataWriter()->ReadSaveData3(&fileStream) == FAILURE) {
|
|
|
|
|
if (UnkSaveDataWriter()->ReadSaveData3(&fileStorage) == FAILURE) {
|
|
|
|
|
goto done;
|
|
|
|
|
}
|
|
|
|
|
if (PlantManager()->Load(&fileStream) == FAILURE) {
|
|
|
|
|
if (PlantManager()->Load(&fileStorage) == FAILURE) {
|
|
|
|
|
goto done;
|
|
|
|
|
}
|
|
|
|
|
if (BuildingManager()->Load(&fileStream) == FAILURE) {
|
|
|
|
|
if (BuildingManager()->Load(&fileStorage) == FAILURE) {
|
|
|
|
|
goto done;
|
|
|
|
|
}
|
|
|
|
|
if (DeleteState() != SUCCESS) {
|
|
|
|
@@ -331,13 +345,13 @@ MxResult LegoGameState::Load(MxULong p_slot)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
char stateName[80];
|
|
|
|
|
Read(&fileStream, &count);
|
|
|
|
|
Read(&fileStorage, &count);
|
|
|
|
|
|
|
|
|
|
if (count) {
|
|
|
|
|
for (MxS16 i = 0; i < count; i++) {
|
|
|
|
|
MxS16 stateNameLength;
|
|
|
|
|
Read(&fileStream, &stateNameLength);
|
|
|
|
|
Read(&fileStream, stateName, (MxULong) stateNameLength);
|
|
|
|
|
Read(&fileStorage, &stateNameLength);
|
|
|
|
|
Read(&fileStorage, stateName, (MxULong) stateNameLength);
|
|
|
|
|
stateName[stateNameLength] = 0;
|
|
|
|
|
|
|
|
|
|
LegoState* state = GetState(stateName);
|
|
|
|
@@ -349,11 +363,11 @@ MxResult LegoGameState::Load(MxULong p_slot)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
state->VTable0x1c(&fileStream);
|
|
|
|
|
state->VTable0x1c(&fileStorage);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Read(&fileStream, &area);
|
|
|
|
|
Read(&fileStorage, &area);
|
|
|
|
|
|
|
|
|
|
if (m_currentAct == 0) {
|
|
|
|
|
m_unk0x42c = e_noArea;
|
|
|
|
@@ -397,11 +411,11 @@ MxResult LegoGameState::WriteVariable(LegoStorage* p_storage, MxVariableTable* p
|
|
|
|
|
|
|
|
|
|
if (variableValue) {
|
|
|
|
|
MxU8 length = strlen(p_variableName);
|
|
|
|
|
if (p_storage->Write((char*) &length, 1) == SUCCESS) {
|
|
|
|
|
if (p_storage->Write(&length, sizeof(length)) == SUCCESS) {
|
|
|
|
|
if (p_storage->Write(p_variableName, length) == SUCCESS) {
|
|
|
|
|
length = strlen(variableValue);
|
|
|
|
|
if (p_storage->Write((char*) &length, 1) == SUCCESS) {
|
|
|
|
|
result = p_storage->Write((char*) variableValue, length);
|
|
|
|
|
if (p_storage->Write(&length, sizeof(length)) == SUCCESS) {
|
|
|
|
|
result = p_storage->Write(variableValue, length);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@@ -415,22 +429,20 @@ MxResult LegoGameState::WriteEndOfVariables(LegoStorage* p_storage)
|
|
|
|
|
{
|
|
|
|
|
MxU8 len = strlen(g_endOfVariables);
|
|
|
|
|
|
|
|
|
|
if (p_storage->Write(&len, 1) == SUCCESS) {
|
|
|
|
|
if (p_storage->Write(&len, sizeof(len)) == SUCCESS) {
|
|
|
|
|
return p_storage->Write(g_endOfVariables, len);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return FAILURE;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 95% match, just some instruction ordering differences on the call to
|
|
|
|
|
// MxVariableTable::SetVariable at the end.
|
|
|
|
|
// FUNCTION: LEGO1 0x1003a080
|
|
|
|
|
MxS32 LegoGameState::ReadVariable(LegoStorage* p_storage, MxVariableTable* p_to)
|
|
|
|
|
{
|
|
|
|
|
MxS32 result = 1;
|
|
|
|
|
MxU8 length;
|
|
|
|
|
|
|
|
|
|
if (p_storage->Read((char*) &length, 1) == SUCCESS) {
|
|
|
|
|
if (p_storage->Read(&length, sizeof(length)) == SUCCESS) {
|
|
|
|
|
char nameBuffer[256];
|
|
|
|
|
if (p_storage->Read(nameBuffer, length) == SUCCESS) {
|
|
|
|
|
nameBuffer[length] = '\0';
|
|
|
|
@@ -439,12 +451,12 @@ MxS32 LegoGameState::ReadVariable(LegoStorage* p_storage, MxVariableTable* p_to)
|
|
|
|
|
result = 2;
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
if (p_storage->Read((char*) &length, 1) == SUCCESS) {
|
|
|
|
|
if (p_storage->Read(&length, sizeof(length)) == SUCCESS) {
|
|
|
|
|
char valueBuffer[256];
|
|
|
|
|
if (p_storage->Read(valueBuffer, length) == SUCCESS) {
|
|
|
|
|
result = 0;
|
|
|
|
|
valueBuffer[length] = '\0';
|
|
|
|
|
p_to->SetVariable(nameBuffer, valueBuffer);
|
|
|
|
|
result = SUCCESS;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@@ -455,7 +467,7 @@ MxS32 LegoGameState::ReadVariable(LegoStorage* p_storage, MxVariableTable* p_to)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// FUNCTION: LEGO1 0x1003a170
|
|
|
|
|
void LegoGameState::GetFileSavePath(MxString* p_outPath, MxULong p_slotn)
|
|
|
|
|
void LegoGameState::GetFileSavePath(MxString* p_outPath, MxU8 p_slotn)
|
|
|
|
|
{
|
|
|
|
|
char baseForSlot[2] = "0";
|
|
|
|
|
char path[1024] = "";
|
|
|
|
@@ -475,10 +487,97 @@ void LegoGameState::GetFileSavePath(MxString* p_outPath, MxULong p_slotn)
|
|
|
|
|
*p_outPath = MxString(path);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// STUB: LEGO1 0x1003a2e0
|
|
|
|
|
void LegoGameState::SerializePlayersInfo(MxS16)
|
|
|
|
|
// FUNCTION: LEGO1 0x1003a2e0
|
|
|
|
|
void LegoGameState::SerializePlayersInfo(MxS16 p_flags)
|
|
|
|
|
{
|
|
|
|
|
// TODO
|
|
|
|
|
LegoFile fileStorage;
|
|
|
|
|
MxString playersGSI = MxString(m_savePath);
|
|
|
|
|
|
|
|
|
|
playersGSI += "\\";
|
|
|
|
|
playersGSI += g_playersGSI;
|
|
|
|
|
|
|
|
|
|
if (fileStorage.Open(playersGSI.GetData(), p_flags) == SUCCESS) {
|
|
|
|
|
if (fileStorage.IsReadMode()) {
|
|
|
|
|
Read(&fileStorage, &m_playerCount);
|
|
|
|
|
}
|
|
|
|
|
else if (fileStorage.IsWriteMode()) {
|
|
|
|
|
Write(&fileStorage, m_playerCount);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
for (MxS16 i = 0; i < m_playerCount; i++) {
|
|
|
|
|
m_players[i].ReadWrite(&fileStorage);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// FUNCTION: LEGO1 0x1003a3f0
|
|
|
|
|
MxResult LegoGameState::AddPlayer(Username& p_player)
|
|
|
|
|
{
|
|
|
|
|
MxString from, to;
|
|
|
|
|
|
|
|
|
|
if (m_playerCount == 9) {
|
|
|
|
|
GetFileSavePath(&from, 8);
|
|
|
|
|
DeleteFile(from.GetData());
|
|
|
|
|
m_playerCount--;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
for (MxS16 i = m_playerCount; i > 0; i--) {
|
|
|
|
|
m_players[i] = m_players[i - 1];
|
|
|
|
|
GetFileSavePath(&from, i - 1);
|
|
|
|
|
GetFileSavePath(&to, i);
|
|
|
|
|
MoveFile(from.GetData(), to.GetData());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
m_playerCount++;
|
|
|
|
|
m_players[0].Set(p_player);
|
|
|
|
|
m_unk0x24 = m_history.m_unk0x372;
|
|
|
|
|
m_history.m_unk0x372 = m_unk0x24 + 1;
|
|
|
|
|
m_history.WriteScoreHistory();
|
|
|
|
|
SetCurrentAct(e_act1);
|
|
|
|
|
|
|
|
|
|
return DeleteState();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// FUNCTION: LEGO1 0x1003a540
|
|
|
|
|
void LegoGameState::SwitchPlayer(MxS16 p_playerId)
|
|
|
|
|
{
|
|
|
|
|
if (p_playerId > 0) {
|
|
|
|
|
MxString from, temp, to;
|
|
|
|
|
|
|
|
|
|
GetFileSavePath(&from, p_playerId);
|
|
|
|
|
GetFileSavePath(&temp, 36);
|
|
|
|
|
|
|
|
|
|
Username selectedName(m_players[p_playerId]);
|
|
|
|
|
|
|
|
|
|
MoveFile(from.GetData(), temp.GetData());
|
|
|
|
|
|
|
|
|
|
for (MxS16 i = p_playerId; i > 0; i--) {
|
|
|
|
|
m_players[i] = m_players[i - 1];
|
|
|
|
|
GetFileSavePath(&from, i - 1);
|
|
|
|
|
GetFileSavePath(&to, i);
|
|
|
|
|
MoveFile(from.GetData(), to.GetData());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
m_players[0] = selectedName;
|
|
|
|
|
GetFileSavePath(&from, 0);
|
|
|
|
|
MoveFile(temp.GetData(), from.GetData());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (Load(0) != SUCCESS) {
|
|
|
|
|
Init();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// FUNCTION: LEGO1 0x1003a6e0
|
|
|
|
|
MxS16 LegoGameState::FindPlayer(Username& p_player)
|
|
|
|
|
{
|
|
|
|
|
for (MxS16 i = 0; i < m_playerCount; i++) {
|
|
|
|
|
if (memcmp(&m_players[i], &p_player, sizeof(p_player)) == 0) {
|
|
|
|
|
return i;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return -1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// FUNCTION: LEGO1 0x1003a720
|
|
|
|
@@ -939,6 +1038,60 @@ void LegoGameState::RegisterState(LegoState* p_state)
|
|
|
|
|
m_stateArray[targetIndex] = p_state;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// FUNCTION: LEGO1 0x1003bd00
|
|
|
|
|
void LegoGameState::Init()
|
|
|
|
|
{
|
|
|
|
|
m_backgroundColor->SetValue("set 56 54 68");
|
|
|
|
|
m_backgroundColor->SetLights();
|
|
|
|
|
m_tempBackgroundColor->SetValue("set 56 54 68");
|
|
|
|
|
VariableTable()->SetVariable("lightposition", "2");
|
|
|
|
|
SetLightPosition(2);
|
|
|
|
|
PlantManager()->Init();
|
|
|
|
|
BuildingManager()->Init();
|
|
|
|
|
UnkSaveDataWriter()->InitSaveData();
|
|
|
|
|
AnimationManager()->FUN_1005ee80(TRUE);
|
|
|
|
|
SetColors();
|
|
|
|
|
RemoveActor();
|
|
|
|
|
DeleteState();
|
|
|
|
|
m_isDirty = FALSE;
|
|
|
|
|
FindLoadedAct();
|
|
|
|
|
SetCurrentAct(e_act1);
|
|
|
|
|
|
|
|
|
|
if (m_loadedAct == e_act1) {
|
|
|
|
|
Isle* isle = (Isle*) FindWorld(*g_isleScript, 0);
|
|
|
|
|
|
|
|
|
|
Helicopter* copter = (Helicopter*) isle->Find(*g_copterScript, 1);
|
|
|
|
|
if (copter) {
|
|
|
|
|
isle->FUN_1001fc80(copter);
|
|
|
|
|
isle->VTable0x6c(copter);
|
|
|
|
|
delete copter;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
DuneBuggy* dunebuggy = (DuneBuggy*) isle->Find(*g_dunecarScript, 2);
|
|
|
|
|
if (dunebuggy) {
|
|
|
|
|
isle->FUN_1001fc80(dunebuggy);
|
|
|
|
|
isle->VTable0x6c(dunebuggy);
|
|
|
|
|
delete dunebuggy;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Jetski* jetski = (Jetski*) isle->Find(*g_jetskiScript, 3);
|
|
|
|
|
if (jetski) {
|
|
|
|
|
isle->FUN_1001fc80(jetski);
|
|
|
|
|
isle->VTable0x6c(jetski);
|
|
|
|
|
delete jetski;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
RaceCar* racecar = (RaceCar*) isle->Find(*g_racecarScript, 4);
|
|
|
|
|
if (racecar) {
|
|
|
|
|
isle->FUN_1001fc80(racecar);
|
|
|
|
|
isle->VTable0x6c(racecar);
|
|
|
|
|
delete racecar;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
m_unk0x42c = e_noArea;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// FUNCTION: LEGO1 0x1003c670
|
|
|
|
|
LegoGameState::Username::Username()
|
|
|
|
|
{
|
|
|
|
@@ -964,10 +1117,10 @@ MxResult LegoGameState::Username::ReadWrite(LegoStorage* p_storage)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// FUNCTION: LEGO1 0x1003c710
|
|
|
|
|
LegoGameState::Username* LegoGameState::Username::operator=(const Username* p_other)
|
|
|
|
|
LegoGameState::Username& LegoGameState::Username::operator=(const Username& p_other)
|
|
|
|
|
{
|
|
|
|
|
memcpy(m_letters, p_other->m_letters, sizeof(m_letters));
|
|
|
|
|
return this;
|
|
|
|
|
memcpy(m_letters, p_other.m_letters, sizeof(m_letters));
|
|
|
|
|
return *this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// FUNCTION: LEGO1 0x1003c830
|
|
|
|
|