diff --git a/src/unlocker/spoofing.cpp b/src/unlocker/spoofing.cpp index 9780645..f9eb0fd 100644 --- a/src/unlocker/spoofing.cpp +++ b/src/unlocker/spoofing.cpp @@ -102,6 +102,17 @@ bool Spoofer::parseCatalog(std::string data) return false; } + std::string outPath = utils::getExePath() + "catalog.json"; + std::ofstream file(outPath); + if (file.is_open()) + { + file << data; + file.close(); + Log::verbose("Raw catalog saved to {}", outPath); + } + else + Log::error("Unable to write to catalog.json"); + try { const auto& catalogData = doc.at("data");