Decompile 2 functions in Source/Contents/HeadResources.cpp, Source/Contents/RobeResources.cpp

Batch #14315 by Yommy: 0 byte-identical, 2 confirmed by peer review.

- fn_19750 EquipmentResourceMgr::GetHeadPalName: logic confirmed by peer review
- fn_19757 EquipmentResourceMgr::GetShieldResourceName: logic confirmed by peer review

Peer-reviewed-by: secret, KWDev, StrawberrysherbetIX
Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
This commit is contained in:
ragnarok-clanker 2026-11-07 07:11:28 +00:00
commit 64e08b8a89
2 changed files with 8 additions and 8 deletions

View file

@ -255,8 +255,8 @@ std::string EquipmentResourceMgr::GetHeadPalName(int head, int job, int sex, int
}
if (!ResourceMgr::Instance().Exists(result.c_str())) {
sexName = g_session.GetSexName(sex);
result = FormatOwnedString("%s\\머리\\머리%s_%s_%d.pal", this->GetBodyRacePrefix(job).c_str(), headName.c_str(), sexName.c_str(), palette);
sexName = static_cast<const std::string&>(g_session.GetSexName(sex));
result = static_cast<const std::string&>(FormatOwnedString("%s\\머리\\머리%s_%s_%d.pal", this->GetBodyRacePrefix(job).c_str(), headName.c_str(), sexName.c_str(), palette));
}
return result;
@ -269,8 +269,8 @@ std::string EquipmentResourceMgr::GetHeadPalName(int head, int job, int sex, int
headName = g_session.m_humanFemaleHeadNames[head];
}
sexName = g_session.GetSexName(sex);
result = FormatOwnedString("머리\\머리%s_%s_%d.pal", headName.c_str(), sexName.c_str(), palette);
sexName = static_cast<const std::string&>(g_session.GetSexName(sex));
result = static_cast<const std::string&>(FormatOwnedString("머리\\머리%s_%s_%d.pal", headName.c_str(), sexName.c_str(), palette));
return result;
}
}

View file

@ -64,10 +64,10 @@ std::string EquipmentResourceMgr::GetShieldResourceName(int type, int job, int s
std::string shieldName;
const int shieldView = g_session.GetItemDescription40(shield);
sexName = g_session.GetSexName(sex);
sexName = static_cast<const std::string&>(g_session.GetSexName(sex));
bool exists = false;
if (shield >= 5 && g_session.HasJobShieldSprite(job, shield) == true) {
path = FormatOwnedString("방패\\%s_%s_%d_방패.%s", g_session.m_shieldJobNames[spriteJob], sexName.c_str(), shield, g_equipmentResourceExtensions[type]);
path = static_cast<const std::string&>(FormatOwnedString("방패\\%s_%s_%d_방패.%s", g_session.m_shieldJobNames[spriteJob], sexName.c_str(), shield, g_equipmentResourceExtensions[type]));
exists = ResourceMgr::Instance().Exists(path.c_str());
}
@ -76,8 +76,8 @@ std::string EquipmentResourceMgr::GetShieldResourceName(int type, int job, int s
return "";
}
shieldName = g_session.GetRobeName(shieldView);
path = FormatOwnedString("방패\\%s_%s%s.%s", g_session.m_shieldJobNames[spriteJob], sexName.c_str(), shieldName.c_str(), g_equipmentResourceExtensions[type]);
shieldName = static_cast<const std::string&>(g_session.GetRobeName(shieldView));
path = static_cast<const std::string&>(FormatOwnedString("방패\\%s_%s%s.%s", g_session.m_shieldJobNames[spriteJob], sexName.c_str(), shieldName.c_str(), g_equipmentResourceExtensions[type]));
exists = ResourceMgr::Instance().Exists(path.c_str());
}