Decompile 5 functions in Source/Contents/ClientItemLists.cpp

Batch #10806 by kyoshi: 5 byte-identical, 0 confirmed by peer review.

- fn_23343 CSession::RemoveItem1758: byte-identical
- fn_23344 CSession::RemoveItem1760: byte-identical
- fn_23346 CSession::RemoveItem1718: byte-identical
- fn_23349 CSession::RemoveItem1730: byte-identical
- fn_23350 CSession::ReduceItem1718: byte-identical

Merged automatically: every function is byte-identical to the original.
This commit is contained in:
ragnarok-clanker 2026-11-04 17:30:29 +00:00
commit bca90a1c20

View file

@ -30,6 +30,8 @@
#include <utility>
#include <vector>
extern template std::list<ITEM_INFO>::iterator std::list<ITEM_INFO>::erase(std::list<ITEM_INFO>::const_iterator) noexcept;
namespace {
struct EquipSlotDecoder {
EquipSlots Decode(int mask) const;
@ -1600,7 +1602,7 @@ void CSession::RemoveItem1758(ITEM_INFO& item) {
if (it->unknown_0000[1] == item.unknown_0000[1]) {
item.itemId = it->itemId;
it->quantity -= item.quantity;
if (it->quantity < 1) {
if (it->quantity <= 0) {
this->unknown_1758.erase(it);
}
return;
@ -1614,7 +1616,7 @@ void CSession::RemoveItem1760(const ITEM_INFO& item) {
for (auto it = this->unknown_1760.begin(); it != this->unknown_1760.end(); ++it) {
if (it->unknown_0000[1] == item.unknown_0000[1]) {
it->quantity -= item.quantity;
if (it->quantity < 1) {
if (it->quantity <= 0) {
this->unknown_1760.erase(it);
}
return;
@ -1645,7 +1647,7 @@ void CSession::RemoveItem1718(const ITEM_INFO& item) {
if (it->unknown_0000[1] == item.unknown_0000[1]) {
if (it->quantity != -1) {
it->quantity -= item.quantity;
if (it->quantity < 1) {
if (it->quantity <= 0) {
this->unknown_1718.erase(it);
}
}
@ -1674,7 +1676,7 @@ void CSession::RemoveItem1730(const ITEM_INFO& item) {
for (auto it = this->unknown_1730.begin(); it != this->unknown_1730.end(); ++it) {
if (it->unknown_0000[1] == item.unknown_0000[1]) {
it->quantity -= item.quantity;
if (it->quantity < 1) {
if (it->quantity <= 0) {
this->unknown_1730.erase(it);
}
return;
@ -1688,7 +1690,7 @@ void CSession::ReduceItem1718(const ITEM_INFO& item) {
for (auto it = this->unknown_1718.begin(); it != this->unknown_1718.end(); ++it) {
if (it->unknown_0000[1] == item.unknown_0000[1]) {
it->quantity -= item.quantity;
if (it->quantity < 1) {
if (it->quantity <= 0) {
this->unknown_1718.erase(it);
}
return;