From 8a225aaf6c3ef8341032041f1a95197e75087c05 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Thu, 5 Nov 2026 22:50:25 +0000 Subject: [PATCH] Decompile fn_04233 (CMCStoreInfoBackup::ImportData) Batch #11082 by cremane: 0 byte-identical, 1 confirmed by peer review. - fn_04233 CMCStoreInfoBackup::ImportData: logic confirmed by peer review Peer-reviewed-by: Yommy, alisonrag, gordaoprogramas, KWDev, kyoshi Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/Contents/Store/StoreBackupData.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Source/Contents/Store/StoreBackupData.cpp b/Source/Contents/Store/StoreBackupData.cpp index d8dc5736..c2036228 100644 --- a/Source/Contents/Store/StoreBackupData.cpp +++ b/Source/Contents/Store/StoreBackupData.cpp @@ -15,6 +15,7 @@ void CMCStoreInfoBackup::ImportData(Json::Value& data) { this->items.clear(); this->title = FromUtf8(data.get("Title", "").asString(), g_textCodePage); Json::Value values = data["Item"]; + const std::string styledText = values.toStyledString(); if (values.isNull() && this->title.empty()) { return; @@ -28,7 +29,7 @@ void CMCStoreInfoBackup::ImportData(Json::Value& data) { } ITEM_INFO item; - item.itemId = std::to_string(value.get("ID", 0).asInt()); + item.SetItemId(value.get("ID", 0).asInt()); item.quantity = value.get("Count", 0).asInt(); item.identified = value.get("Identified", 0).asBool(); item.unknown_0060 = value.get("RefiningLevel", 0).asInt(); @@ -42,8 +43,8 @@ void CMCStoreInfoBackup::ImportData(Json::Value& data) { } item.unknown_0098 = value.get("RandomOptionCount", 0).asInt(); - Json::Value& options = value["RandomOptionList"]; - unsigned index = 0; + Json::Value options = value["RandomOptionList"]; + int index = 0; for (auto option = options.begin(); option != options.end() && index <= 5; ++option, ++index) { const auto id = static_cast((*option).get("OptIndex", 0).asInt());