#include "PAK.hpp" #include "AGSC.hpp" namespace DataSpec::DNAMP2 { std::string PAK::bestEntryName(const nod::Node& pakNode, const Entry& entry, bool& named) const { std::unordered_map::const_iterator search; if (entry.type == FOURCC('AGSC') && (search = m_entries.find(entry.id)) != m_entries.cend()) { /* Use internal AGSC name for entry */ auto rs = search->second.beginReadStream(pakNode); AGSC::Header header; header.read(rs); named = true; return header.groupName; } return DNAMP1::PAK::bestEntryName(pakNode, entry, named); } } // namespace DataSpec::DNAMP2