Decompile 10 functions in Source/Contents/Effects/RagEffect.cpp, Source/Contents/Items/ItemInfo.cpp, ...

Batch #13444 by KWDev: 10 byte-identical, 0 confirmed by peer review.

- fn_23807 CSession::GetPetFood: byte-identical
- fn_23813 CSession::GetPetJobByEggItem: byte-identical
- fn_23816 CSession::GetPetString: byte-identical
- fn_20077 CRagEffect::LexDivina: byte-identical
- fn_06573 ITEM_INFO::Assign: byte-identical
- fn_07702 UIMessengerGroupWnd::DropMember: byte-identical
- fn_10118 UIRPData::~UIRPData: byte-identical
- fn_08276 CPlayerSkillBundle::RemoveExtra: byte-identical
- fn_08129 CRuneSystemMgr::GetGradeFailValue: byte-identical
- fn_02432 CSurfaceDX9::Resize: byte-identical

Merged automatically: every function is byte-identical to the original.
This commit is contained in:
ragnarok-clanker 2026-11-06 17:00:22 +00:00
commit e8b2f375ed
8 changed files with 21 additions and 24 deletions

View file

@ -1999,7 +1999,7 @@ bool CRagEffect::LexDivina() {
PlayEffectWave(*this, "effect\\priest_lexdivina.wav");
}
return this->ProcessEZ2STR(0.0f, -80.0f, 0.0f);
return this->ProcessEZ2STR(0.0f, -80.0f, 0.0f) ? true : false;
}
// OFFSET: 0x00C37A60

View file

@ -149,12 +149,7 @@ std::uint32_t ITEM_INFO::Assign(const RawItemData& item) {
this->identified = item.identified;
this->unknown_0060 = item.unknown_001C;
int count = 0;
if (item.optionCount <= 5) {
count = item.optionCount;
}
this->unknown_0098 = count;
this->unknown_0098 = item.optionCount > 5 ? 0 : item.optionCount;
for (int index = 0; index < this->unknown_0098; ++index) {
std::memcpy(this->unknown_009C + index * 5, item.options + index * 5, 5);
@ -165,7 +160,7 @@ std::uint32_t ITEM_INFO::Assign(const RawItemData& item) {
this->unknown_0000[2] = item.unknown_00B0;
this->unknown_0070 = item.unknown_00B8;
return item.unknown_00B8;
return this->unknown_0070;
}
// OFFSET: 0x006D8A90

View file

@ -290,7 +290,7 @@ int CRuneSystemMgr::GetCurSlotCount() const {
int CRuneSystemMgr::GetGradeFailValue(RuneSetData* runeSet) {
if (runeSet) {
const auto found = this->m_gradeFailTypes.find(runeSet->m_gradeFailType);
if (this->m_gradeFailTypes.end() != found && static_cast<unsigned int>(runeSet->m_grade) < found->second.size()) {
if (this->m_gradeFailTypes.end() != found && found->second.size() > static_cast<unsigned int>(runeSet->m_grade)) {
return found->second[runeSet->m_grade];
}
}

View file

@ -721,10 +721,9 @@ __declspec(noinline) void UIMessengerGroupWnd::DropMember(int x, int y, int inde
int cell;
if (x < g_windowMgr.unknown_4F238 + 23 && y > top) {
int row = (y - top) / (g_windowMgr.unknown_4F23C + 3);
cell = row;
if (g_windowMgr.FindSnapExcludedWindow(row)) {
cell = g_windowMgr.FindMiniPartyCell();
} else {
cell = row;
}
} else {
cell = g_windowMgr.FindMiniPartyCell();

View file

@ -19,11 +19,11 @@ const char* CSession::GetPetAccActName(int id) {
// FUNCTION: fn_23807
int CSession::GetPetFood(int job) {
int food = 0;
if (!this->m_hotkeyScript->Call("GetPetFood", "d>d", job, &food)) {
return -1;
if (this->m_hotkeyScript->Call("GetPetFood", "d>d", job, &food)) {
return food;
}
return food;
return -1;
}
// OFFSET: 0x00E0B170
@ -41,20 +41,20 @@ void CSession::GetPetIllustName(int job, int, char* buffer) {
// FUNCTION: fn_23813
int CSession::GetPetJobByEggItem(int eggItemId) {
int job = 0;
if (!this->m_hotkeyScript->Call("GetPetJTID_by_PetEggITID", "d>d", eggItemId, &job)) {
return -1;
if (this->m_hotkeyScript->Call("GetPetJTID_by_PetEggITID", "d>d", eggItemId, &job)) {
return job;
}
return job;
return -1;
}
// OFFSET: 0x00E12780
// FUNCTION: fn_23816
const char* CSession::GetPetString(int id) {
const char* text = nullptr;
if (!this->m_hotkeyScript->Call("GetPetString", "d>s", id, &text)) {
return nullptr;
if (this->m_hotkeyScript->Call("GetPetString", "d>s", id, &text)) {
return text;
}
return text;
return nullptr;
}

View file

@ -181,7 +181,7 @@ void CPlayerSkillBundle::AddExtra(const CSkillInfo& value, WindowManagerWindows&
// FUNCTION: fn_08276
bool CPlayerSkillBundle::RemoveExtra(std::uint32_t id) {
for (auto entry = this->extra.begin(); entry != this->extra.end(); ++entry) {
if (entry->id != id) {
if (id != entry->id) {
continue;
}

View file

@ -96,8 +96,9 @@ bool CSurfaceDX9::Resize(int width, int height) {
this->m_width = AlignDimension(width);
this->m_height = AlignDimension(height);
const D3DFORMAT format = this->m_owner->backBufferDescription.Format;
return SUCCEEDED(this->m_owner->device->CreateOffscreenPlainSurface(
this->m_width, this->m_height, this->m_owner->backBufferDescription.Format, D3DPOOL_DEFAULT, &this->m_surface, nullptr
this->m_width, this->m_height, format, D3DPOOL_DEFAULT, &this->m_surface, nullptr
)) &&
this->m_surface;
}

View file

@ -13,8 +13,10 @@ UIRPData::UIRPData() : m_texture(nullptr) {
// OFFSET: 0x00812800
// FUNCTION: fn_10118
UIRPData::~UIRPData() {
delete this->m_texture;
this->m_texture = nullptr;
if (this->m_texture) {
delete this->m_texture;
this->m_texture = nullptr;
}
this->m_primitives.clear();
}