- 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]>
32 lines
723 B
C++
32 lines
723 B
C++
#include "shadow.h"
|
|
#include <cstdio>
|
|
#include "Engine/Source/ConsoleBase/ConsoleVar.h"
|
|
#include "Engine/Source/ConsoleBase/IConsole.h"
|
|
|
|
// STATIC: 0x00D38048
|
|
CVar* s_cvExtShadowQuality;
|
|
|
|
// STATIC: 0x00D3804C
|
|
CVar* s_cvShadowLOD;
|
|
|
|
// VERIFY: 1c2d78bb auto
|
|
// OFFSET: 0x007E3A20
|
|
bool ShadowLODCallback(CVar* var, const char* oldValue, const char* value, void* arg) {
|
|
uint32_t lod;
|
|
sscanf(value, "%d", &lod);
|
|
|
|
if (lod <= 1) {
|
|
ShadowSetLOD(lod);
|
|
|
|
char buffer[256];
|
|
sprintf(buffer, "Shadow LOD set to %d", s_shadowLOD);
|
|
ConsoleWrite(buffer, DEFAULT_COLOR);
|
|
|
|
return true;
|
|
}
|
|
|
|
ConsoleWrite("Shadow LOD must be in the range (0, 1)", DEFAULT_COLOR);
|
|
|
|
return false;
|
|
}
|