- 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]>
45 lines
963 B
C++
45 lines
963 B
C++
#include "MapWeather.h"
|
|
#include "Engine/Source/ConsoleBase/IConsole.h"
|
|
#include "Engine/Source/Storm/H/storm.h"
|
|
#include "WoW/Source/WorldClient/World.h"
|
|
|
|
// STATIC: 0x00CD852C
|
|
CVar* s_useShaders;
|
|
|
|
// VERIFY: 01bb4d2e auto
|
|
// OFFSET: 0x00784040
|
|
bool CVarHandler_weatherDensity(CVar* var, const char* oldValue, const char* value, void* arg) {
|
|
switch (SStrToInt(value)) {
|
|
case 0: {
|
|
s_weatherDensity = 0.1f;
|
|
break;
|
|
}
|
|
|
|
case 1: {
|
|
s_weatherDensity = 0.33f;
|
|
break;
|
|
}
|
|
|
|
case 2: {
|
|
s_weatherDensity = 0.66f;
|
|
break;
|
|
}
|
|
|
|
case 3: {
|
|
s_weatherDensity = 1.0f;
|
|
break;
|
|
}
|
|
|
|
default: {
|
|
ConsoleWriteA("Value out of range (%d - %d)\n", DEFAULT_COLOR, 0, 3);
|
|
return false;
|
|
}
|
|
}
|
|
|
|
if (World::s_weather) {
|
|
World::s_weather->m_densityChanged = 1;
|
|
}
|
|
|
|
return true;
|
|
}
|