- Grunt login ported end to end (SRP6 challenge/proof, version checksum, realm list) and tested against a live server: authenticates, connects to the world server (auth session with proof-of-work, header crypt), receives the character list and shows character select - Glue: realm list UI, character select (list, models, scripts), character create screen + name generator, delete/rename/decline, Enter World up to the loading screen; loading screen drawing and progress - AccountData (times, update, upload/download), BannedAddOns, addon scan and addon info, client cache version, tutorial flags - Shutdown path at login state: world/map/liquid/weather teardown, NetClient, ComSat, streaming stop; Logitech LCD no-device path in Ui/UILCD/Windows - PCRE 5.0 vendored (core stock; chartables and the posix layer from 12340), ValidateName - Fixes: TSGrowableArray::CalcChunkSize clamps to >= 8 (crash on char list), CWorldScene liquid renderer allocation, CMapFootprintTexture element ctor, pointer render states on x64, CFrustum/CWFrustum layout, M2 draw callback arguments, 37 class/struct forward-declaration mismatches - IDB name sync (1217 names), verify aliases, harness large-element instantiation Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
49 lines
1.5 KiB
C++
49 lines
1.5 KiB
C++
#include <cstdint>
|
|
#include "ConsoleDevice.h"
|
|
#include "_Triage/GxRestart.h"
|
|
#include "Engine/Source/ConsoleBase/IConsole.h"
|
|
#include "Engine/Source/Gx/CGxDevice/CGxDevice.h"
|
|
#include "Engine/Source/Gx/CGxFormat.h"
|
|
#include "Engine/Source/Os/Gui.h"
|
|
#include "Engine/Source/Services/Texture.h"
|
|
|
|
// VERIFY: 6674b551 auto
|
|
// OFFSET: 0x00769FF0
|
|
int32_t CCGxRestart(const char* command, const char* arguments) {
|
|
OnGxRestartClearWorld();
|
|
ValidateFormatMonitor(s_requestedFormat);
|
|
|
|
if (g_theGxDevicePtr->DeviceSetFormat(s_requestedFormat)) {
|
|
s_lastGoodFormat = s_requestedFormat;
|
|
UpdateGxCVars();
|
|
} else {
|
|
ConsoleWrite("unable to set requested display mode", DEFAULT_COLOR);
|
|
s_requestedFormat = s_lastGoodFormat;
|
|
|
|
if (!g_theGxDevicePtr->DeviceSetFormat(s_requestedFormat)) {
|
|
ConsoleWrite("unable to set last good mode", DEFAULT_COLOR);
|
|
s_requestedFormat = s_desktopFormat;
|
|
|
|
if (!g_theGxDevicePtr->DeviceSetFormat(s_requestedFormat)) {
|
|
ConsoleWrite("unable to set default format", DEFAULT_COLOR);
|
|
s_requestedFormat = s_fallbackFormat;
|
|
|
|
if (!g_theGxDevicePtr->DeviceSetFormat(s_requestedFormat)) {
|
|
goto done;
|
|
}
|
|
}
|
|
|
|
s_lastGoodFormat = s_requestedFormat;
|
|
}
|
|
|
|
SetGxCVars(s_requestedFormat);
|
|
}
|
|
|
|
done:
|
|
OsGuiSetGxWindow(g_theGxDevicePtr->DeviceWindow());
|
|
OsGuiSetWindowTitle(g_theGxDevicePtr->DeviceWindow(), s_windowTitle);
|
|
TextureNotifyGxRestart();
|
|
|
|
return 1;
|
|
}
|