Files
SatyandClaude Opus 5.5 27de58d41e Dissolve _Triage into the source tree
- move triage code to the folders of its binary neighbours (AreaList,
  movement packet types, CClientObjCreate, CWOWClientStatus, SHA1,
  Clamp, EmergencyMem, MippedImg, WowMouse, ...)
- merge HMAC template, OnGxRestartClearWorld and TIMESTAMPSTRUCT into
  their natural headers
- delete superseded duplicates and unk-only placeholders
- tools: drop Triage library, fix Streaming stub signatures, remove
  stubs now provided by BlizzardCore, MapViewer s_liquidTypeId

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-10-03 18:09:53 +02:00

49 lines
1.5 KiB
C++

#include <cstdint>
#include "ConsoleDevice.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"
#include "WoW/Source/Ui/GameUI.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;
}