Decompile fn_23391 (CSession::ItemDragResource)
Batch #14965 by Yommy: 0 byte-identical, 1 confirmed by peer review. - fn_23391 CSession::ItemDragResource: logic confirmed by peer review Peer-reviewed-by: ragnarok-clanker, ntrl, codeplay Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
This commit is contained in:
parent
64b5336dca
commit
662db5ca4a
1 changed files with 11 additions and 3 deletions
|
|
@ -8,14 +8,22 @@
|
||||||
|
|
||||||
template int std::_Traits_compare<std::char_traits<char>>(const char*, std::size_t, const char*, std::size_t) noexcept;
|
template int std::_Traits_compare<std::char_traits<char>>(const char*, std::size_t, const char*, std::size_t) noexcept;
|
||||||
|
|
||||||
|
// INLINED
|
||||||
|
static const char* ItemResourceName(const char* id, int identified) {
|
||||||
|
const ITEM_DESC& value = FindItemDescription(std::atoi(id));
|
||||||
|
return identified != 0 ? value.identifiedResource : value.unidentifiedResource;
|
||||||
|
}
|
||||||
|
|
||||||
// OFFSET: 0x00DDDA20
|
// OFFSET: 0x00DDDA20
|
||||||
// FUNCTION: fn_23391
|
// FUNCTION: fn_23391
|
||||||
const char* CSession::ItemDragResource(const char* id, int identified) {
|
const char* CSession::ItemDragResource(const char* id, int identified) {
|
||||||
static std::string resource;
|
static std::string resource;
|
||||||
resource = "아이템\\";
|
resource = "아이템\\";
|
||||||
const ITEM_DESC& value = FindItemDescription(std::atoi(id));
|
if (ItemResourceName(id, identified) == nullptr) {
|
||||||
const char* name = identified != 0 ? value.identifiedResource : value.unidentifiedResource;
|
resource += std::string("사과");
|
||||||
resource += name ? name : "사과";
|
} else {
|
||||||
|
resource += ItemResourceName(id, identified);
|
||||||
|
}
|
||||||
|
|
||||||
return resource.c_str();
|
return resource.c_str();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue