From 809ffeb3d1be1fb2dae68689c51c22d20c209971 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Wed, 11 Nov 2026 23:47:26 +0000 Subject: [PATCH] Decompile fn_04238 (CMCStoreInfoBackup::ExportData) Batch #17495 by eAthena: 0 byte-identical, 1 confirmed by peer review. - fn_04238 CMCStoreInfoBackup::ExportData: logic confirmed by peer review Peer-reviewed-by: Yommy, cremane, bibinir Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/Contents/Store/StoreBackupData.cpp | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/Source/Contents/Store/StoreBackupData.cpp b/Source/Contents/Store/StoreBackupData.cpp index 5d5f67075..96eee8eb0 100644 --- a/Source/Contents/Store/StoreBackupData.cpp +++ b/Source/Contents/Store/StoreBackupData.cpp @@ -90,13 +90,10 @@ void CMCStoreInfoBackup::ExportData(Json::Value& data) const { value["Identified"] = item.identified != 0; value["RefiningLevel"] = item.refiningLevel; value["GradeLevel"] = item.grade; - const char* slotKeys[] = {"Slot_1", "Slot_2", "Slot_3", "Slot_4"}; - - for (unsigned index = 0; index < 4; ++index) { - std::int32_t slot; - std::memcpy(&slot, item.cards + 4 * index, sizeof(slot)); - value[slotKeys[index]] = slot; - } + value["Slot_1"] = LoadField(item.cards + 0); + value["Slot_2"] = LoadField(item.cards + 4); + value["Slot_3"] = LoadField(item.cards + 8); + value["Slot_4"] = LoadField(item.cards + 12); const int count = item.optionCount; value["RandomOptionCount"] = count;