diff --git a/items_decoder.cpp b/items_decoder.cpp index 2d65592..dcb6c56 100644 --- a/items_decoder.cpp +++ b/items_decoder.cpp @@ -19,7 +19,6 @@ using json = nlohmann::json; int main() { - json jdata; std::ifstream file("items.dat", std::ios::binary | std::ios::ate); int size = file.tellg(); char* data = new char[size]; @@ -44,8 +43,7 @@ int main() memPos += 2; memcpy(&itemCount, data + memPos, 4); memPos += 4; - jdata["itemsdatVersion"] = itemsdatVersion; - jdata["itemCount"] = itemCount; + cout << "Itemcount: " << itemCount << "\nitemsdatVersion: " << itemsdatVersion << endl; for (int i=0;i