Decompile 2 functions in Source/UI/Window/FrameFocus.cpp, Source/Client/Session.cpp, ...

Batch #14901 by SapitoSucio: 2 byte-identical, 0 confirmed by peer review.

- fn_17195 UIWindowMgr::IsFriend: byte-identical
- fn_23566 CSession::IsFriendName: byte-identical

Merged automatically: every function is byte-identical to the original.
This commit is contained in:
ragnarok-clanker 2026-11-08 06:22:50 +00:00
commit 71e78b2d37
4 changed files with 6 additions and 6 deletions

View file

@ -648,14 +648,14 @@ bool CSession::HasItem17D4(int itemId) const {
// OFFSET: 0x00DF9D30
// FUNCTION: fn_23566
bool CSession::IsFriendName(const char* name) const {
int CSession::IsFriendName(const char* name) const {
for (const MessengerMember& member : this->m_friends) {
if (member.name == name) {
return true;
return 1;
}
}
return false;
return 0;
}
// OFFSET: 0x00E1DFB0

View file

@ -836,7 +836,7 @@ public:
const char* GetPlayerMapDisplayName();
std::uint32_t GetPartyMemberAid(const char* name);
bool HasItem17D4(int itemId) const;
bool IsFriendName(const char* name) const;
int IsFriendName(const char* name) const;
bool RemoveFriendByCharacterId(std::uint32_t characterId);
void RemovePartyMemberByName(const char* name);
bool IsGuildMemberAccount(std::uint32_t accountId) const;

View file

@ -114,7 +114,7 @@ bool UIWindowMgr::IsHoverParentVisible() {
// OFFSET: 0x00A96E90
// FUNCTION: fn_17195
bool UIWindowMgr::IsFriend(const char* name) {
int UIWindowMgr::IsFriend(const char* name) {
return g_session.IsFriendName(name) != 0;
}

View file

@ -573,7 +573,7 @@ public:
bool IsDropDownChild(const UIWindow* window);
bool HasMiniPartyMember(std::uint32_t accountId);
bool IsHoverParentVisible();
bool IsFriend(const char* name);
int IsFriend(const char* name);
bool IsSharedWindowId(int id);
bool HasNavigationBlocker();
bool Window4F250Ready();