mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-04-14 08:23:52 +00:00
refactor: promote static const arrays to constexpr across audio/core/rendering
audio: birdPaths, cricketPaths, races core/application: componentDirs (4 instances), compDirs rendering/character_preview: componentDirs rendering/character_renderer: regionCoords256, regionSizes256
This commit is contained in:
parent
d6769172d1
commit
c762688202
5 changed files with 10 additions and 10 deletions
|
|
@ -5997,7 +5997,7 @@ void Application::spawnOnlineCreature(uint64_t guid, uint32_t displayId, float x
|
|||
// --- Equipment region layers (ItemDisplayInfo DBC) ---
|
||||
auto idiDbc = am->loadDBC("ItemDisplayInfo.dbc");
|
||||
if (idiDbc) {
|
||||
static const char* componentDirs[] = {
|
||||
static constexpr const char* componentDirs[] = {
|
||||
"ArmUpperTexture", "ArmLowerTexture", "HandTexture",
|
||||
"TorsoUpperTexture", "TorsoLowerTexture",
|
||||
"LegUpperTexture", "LegLowerTexture", "FootTexture",
|
||||
|
|
@ -7438,7 +7438,7 @@ void Application::setOnlinePlayerEquipment(uint64_t guid,
|
|||
charRenderer->setActiveGeosets(st.instanceId, geosets);
|
||||
|
||||
// --- Textures (skin atlas compositing) ---
|
||||
static const char* componentDirs[] = {
|
||||
static constexpr const char* componentDirs[] = {
|
||||
"ArmUpperTexture",
|
||||
"ArmLowerTexture",
|
||||
"HandTexture",
|
||||
|
|
@ -8221,7 +8221,7 @@ void Application::processCreatureSpawnQueue(bool unlimited) {
|
|||
// Equipment region textures
|
||||
auto idiDbc = am->loadDBC("ItemDisplayInfo.dbc");
|
||||
if (idiDbc) {
|
||||
static const char* compDirs[] = {
|
||||
static constexpr const char* compDirs[] = {
|
||||
"ArmUpperTexture", "ArmLowerTexture", "HandTexture",
|
||||
"TorsoUpperTexture", "TorsoLowerTexture",
|
||||
"LegUpperTexture", "LegLowerTexture", "FootTexture",
|
||||
|
|
@ -8439,7 +8439,7 @@ std::vector<std::string> Application::resolveEquipmentTexturePaths(uint64_t guid
|
|||
const auto* idiL = pipeline::getActiveDBCLayout()
|
||||
? pipeline::getActiveDBCLayout()->getLayout("ItemDisplayInfo") : nullptr;
|
||||
|
||||
static const char* componentDirs[] = {
|
||||
static constexpr const char* componentDirs[] = {
|
||||
"ArmUpperTexture", "ArmLowerTexture", "HandTexture",
|
||||
"TorsoUpperTexture", "TorsoLowerTexture",
|
||||
"LegUpperTexture", "LegLowerTexture", "FootTexture",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue