Decompile 10 functions in Source/Client/Replay.cpp, Source/Client/Session.cpp, ...
Batch #14976 by KWDev: 10 byte-identical, 0 confirmed by peer review. - fn_22397 CBlurPC::OnProcess: byte-identical - fn_22401 CHalluPC2::OnProcess: byte-identical - fn_07568 NAsyncWorkRequestQueue::Complete: byte-identical - fn_09371 UICashEmotionListChildWnd_Purchase::UpdateExpiry: byte-identical - fn_04291 CReputeMgr::GetGroupReputes: byte-identical - fn_04292 CReputeMgr::GetAllReputes: byte-identical - fn_23574 CSession::HasUnknown809C: byte-identical - fn_06988 CEZ2STREffectMgr::FindById: byte-identical - fn_19313 ReplayFileList::FileName: byte-identical - fn_05438 RenewQuestOngoingInfo::GetDateString: byte-identical Merged automatically: every function is byte-identical to the original.
This commit is contained in:
parent
5821c5dc95
commit
6cc9472ff2
8 changed files with 13 additions and 11 deletions
|
|
@ -707,7 +707,7 @@ void ReplayFileList::Refresh() {
|
|||
// OFFSET: 0x00B84300
|
||||
// FUNCTION: fn_19313
|
||||
const char* ReplayFileList::FileName(int index) const {
|
||||
if (static_cast<unsigned>(index) >= this->files.size()) {
|
||||
if (this->files.size() <= static_cast<unsigned>(index)) {
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -2442,7 +2442,7 @@ bool CSession::HasItem1740Number(int value) const {
|
|||
// FUNCTION: fn_23574
|
||||
bool CSession::HasUnknown809C(std::string name) {
|
||||
for (std::vector<std::string>::iterator it = this->characterNames.begin(); it != this->characterNames.end(); ++it) {
|
||||
if (*it == name) {
|
||||
if (name == *it) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1943,7 +1943,7 @@ void UICashEmotionListChildWnd_Purchase::UpdateExpiry(int packId, Timestamp* exp
|
|||
}
|
||||
}
|
||||
|
||||
if (it != this->m_items.end()) {
|
||||
if (this->m_items.end() != it) {
|
||||
(*it)->UpdateExpiry(expiry);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -529,11 +529,12 @@ void CEZ2STREffectMgr::InfoInserter::operator()(const std::pair<const std::strin
|
|||
// FUNCTION: fn_06988
|
||||
EZ2STREffectInfo* CEZ2STREffectMgr::FindById(int id) {
|
||||
auto it = this->effects.begin();
|
||||
while (it != this->effects.end() && id != it->second.id + 10000) {
|
||||
const auto end = this->effects.end();
|
||||
while (it != end && id != it->second.id + 10000) {
|
||||
++it;
|
||||
}
|
||||
|
||||
return it != this->effects.end() ? &it->second : nullptr;
|
||||
return it != end ? &it->second : nullptr;
|
||||
}
|
||||
|
||||
// OFFSET: 0x00700A90
|
||||
|
|
|
|||
|
|
@ -178,7 +178,7 @@ void CRenewQuestMgr::RemoveStatusRequest(unsigned int id) {
|
|||
// OFFSET: 0x00677D80
|
||||
// FUNCTION: fn_05438
|
||||
std::string RenewQuestOngoingInfo::GetDateString() const {
|
||||
return this->m_year > 1970 ? std::format("{0} [{1:04}/{2:02}/{3:02} {4:02}:{5:02}]", LookupMessage(MSI_NAVIGATION_ROUTEINFO), this->m_year,
|
||||
return 1970 < this->m_year ? std::format("{0} [{1:04}/{2:02}/{3:02} {4:02}:{5:02}]", LookupMessage(MSI_NAVIGATION_ROUTEINFO), this->m_year,
|
||||
this->m_month, this->m_day, this->m_hour, this->m_minute)
|
||||
: std::string("");
|
||||
}
|
||||
|
|
|
|||
|
|
@ -191,7 +191,7 @@ std::vector<const ReputeInfo*> CReputeMgr::GetGroupReputes(const std::string& gr
|
|||
}
|
||||
|
||||
const ReputeVisibility visibility = found->second.visibility;
|
||||
if (visibility == REPUTE_VISIBLE || (visibility == REPUTE_VISIBLE_WITH_POINT && found->second.point != 0)) {
|
||||
if (REPUTE_VISIBLE == visibility || (visibility == REPUTE_VISIBLE_WITH_POINT && 0 != found->second.point)) {
|
||||
reputes.push_back(&found->second);
|
||||
}
|
||||
}
|
||||
|
|
@ -213,7 +213,7 @@ std::vector<const ReputeInfo*> CReputeMgr::GetAllReputes() const {
|
|||
}
|
||||
|
||||
const ReputeVisibility visibility = found->second.visibility;
|
||||
if (visibility == REPUTE_VISIBLE || (visibility == REPUTE_VISIBLE_WITH_POINT && found->second.point != 0)) {
|
||||
if (REPUTE_VISIBLE == visibility || (visibility == REPUTE_VISIBLE_WITH_POINT && 0 != found->second.point)) {
|
||||
reputes.push_back(&found->second);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -307,7 +307,7 @@ bool CBlurPC::OnProcess() {
|
|||
CWorld* scene = static_cast<CGameMode*>(g_modeMgr.GetGameMode())->scene;
|
||||
if (scene) {
|
||||
const CRenderObject* owner = scene->GetGameActorByAidIncludeMe(this->render.accountId);
|
||||
if (owner && (owner->render.flags & 0x10) != 0) {
|
||||
if (owner && 0 != (owner->render.flags & 0x10)) {
|
||||
this->render.flags = 0x10;
|
||||
this->render.pulsePhases[0] = 45;
|
||||
}
|
||||
|
|
@ -327,7 +327,7 @@ bool CHalluPC2::OnProcess() {
|
|||
CWorld* scene = static_cast<CGameMode*>(g_modeMgr.GetGameMode())->scene;
|
||||
if (scene) {
|
||||
const CRenderObject* owner = scene->GetGameActorByAidIncludeMe(this->render.accountId);
|
||||
if (owner && (owner->render.flags & 0x10) != 0) {
|
||||
if (owner && 0 != (owner->render.flags & 0x10)) {
|
||||
this->render.flags = 0x10;
|
||||
this->render.pulsePhases[0] = 45;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -72,7 +72,8 @@ void NAsyncWorkRequestQueue::PushFront(NAsyncWorkPtr& work) {
|
|||
// FUNCTION: fn_07568
|
||||
void NAsyncWorkRequestQueue::Complete(std::uint32_t group, std::uint32_t key) {
|
||||
NSyncObject held(&this->m_criticalSection);
|
||||
for (auto active = this->m_active.begin(); active != this->m_active.end(); ++active) {
|
||||
const auto end = this->m_active.end();
|
||||
for (auto active = this->m_active.begin(); active != end; ++active) {
|
||||
if (active->first == group && active->second == key) {
|
||||
this->m_active.erase(active);
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue