Files
wowdecomp/WoW/Source/ConsoleDevice/ConsoleDevice_Console.cpp
T
SatyandClaude Opus 5.5 2e418f9e08 Client bring-up: glue screen, EULA/TOS, shutdown chain, LCD, x64 fixes
- Stand-in client reaches the glue screens (intro movie, EULA/TOS accept,
  login screen) at 16:9; stand-ins are report-only on x64
- Ports on the startup/idle path: GlueScriptEvents/CharacterSelection/
  CharacterCreation/RealmList/AccountMsg/VideoOptions _Scripts, CGlueMgr
  (Initialize/Resume/Idle/Accept*/Shutdown), ClientServices, NetClient/
  WowConnection, DBCache + instances, WorldParam/World/Map/Liquid/Weather/
  shadow, InputControl, Scrn, ConsoleClient, SysMessage, LoadingScreen,
  SystemRegisterFunctions, CGameTime, Screen::GetAspectRatio
- Shutdown chain: BeginCloseGame, DestroyEngineCallback, DBCache save/
  destroy, SpellVisuals/Effect/World/Glue teardown
- Logitech LCD no-device path in Ui/UILCD/Windows (Windows-only dir);
  lgLcd is a stub library in ThirdParty/lgLcd
- CVar and console commands split into <Module>_CVar.cpp / _Console.cpp
- DivxDecoder.dll (Win32, original) and XvidDecoder.dll (x64, port with
  vendored xvidcore) both copied to the build folder
- Warden: Win32 faithful port, Win64 stub
- x64 fixes: lua_newstate gcusage/gctime init, pointer render states reset
  with nullptr, g_rndSeed defined
- 37 class/struct forward-declaration mismatches fixed (false stand-ins)

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-09-27 21:47:34 +02:00

48 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"
// 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;
}