From 91c13a333827c041fe1e827ecff82e8dd79f86c8 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Sat, 7 Nov 2026 06:21:17 +0000 Subject: [PATCH] Decompile 2 functions in Source/Contents/Jobs/JobInheritance.cpp Batch #14222 by Yommy: 0 byte-identical, 2 confirmed by peer review. - fn_19758 EquipmentResourceMgr::GetWeaponEffectResourceName: logic confirmed by peer review - fn_19759 EquipmentResourceMgr::GetWeaponResourceName: logic confirmed by peer review Peer-reviewed-by: secret, KWDev, codeplay Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/Contents/Jobs/JobInheritance.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Source/Contents/Jobs/JobInheritance.cpp b/Source/Contents/Jobs/JobInheritance.cpp index d589c2701..8affe2357 100644 --- a/Source/Contents/Jobs/JobInheritance.cpp +++ b/Source/Contents/Jobs/JobInheritance.cpp @@ -1031,11 +1031,11 @@ std::string EquipmentResourceMgr::GetWeaponResourceName(int type, int job, int s if (weaponItem == -1) { weaponName = static_cast(g_session.GetWeaponName(weapon)); - result = this->GetBodyRacePrefix(spriteJob) + - FormatOwnedString("\\%s_%s%s.%s", jobName.c_str(), sexName.c_str(), weaponName.c_str(), g_equipmentResourceExtensions[type]); + result = static_cast(this->GetBodyRacePrefix(spriteJob)) + + static_cast(FormatOwnedString("\\%s_%s%s.%s", jobName.c_str(), sexName.c_str(), weaponName.c_str(), g_equipmentResourceExtensions[type])); } else { - result = this->GetBodyRacePrefix(spriteJob + 3950) + - FormatOwnedString("\\%s_%s%s.%s", jobName.c_str(), sexName.c_str(), g_session.GetWeaponClassName(weaponItem), g_equipmentResourceExtensions[type]); + result = static_cast(this->GetBodyRacePrefix(spriteJob + 3950)) + + static_cast(FormatOwnedString("\\%s_%s%s.%s", jobName.c_str(), sexName.c_str(), g_session.GetWeaponClassName(weaponItem), g_equipmentResourceExtensions[type])); } return result; @@ -1057,11 +1057,11 @@ std::string EquipmentResourceMgr::GetWeaponEffectResourceName(int type, int job, const char* const suffix = effects[effect]; if (weaponItem == -1) { - result = this->GetBodyRacePrefix(spriteJob) + - FormatOwnedString("\\%s_%s%s%s.%s", jobName.c_str(), sexName.c_str(), weaponName.c_str(), suffix, g_equipmentResourceExtensions[type]); + result = static_cast(this->GetBodyRacePrefix(spriteJob)) + + static_cast(FormatOwnedString("\\%s_%s%s%s.%s", jobName.c_str(), sexName.c_str(), weaponName.c_str(), suffix, g_equipmentResourceExtensions[type])); } else { - result = this->GetBodyRacePrefix(spriteJob) + - FormatOwnedString("\\%s_%s%s%s.%s", jobName.c_str(), sexName.c_str(), g_session.GetWeaponClassName(weaponItem), suffix, g_equipmentResourceExtensions[type]); + result = static_cast(this->GetBodyRacePrefix(spriteJob)) + + static_cast(FormatOwnedString("\\%s_%s%s%s.%s", jobName.c_str(), sexName.c_str(), g_session.GetWeaponClassName(weaponItem), suffix, g_equipmentResourceExtensions[type])); } return result;