2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-12 23:26:09 +00:00

Shared extract only applies to world paks now

This commit is contained in:
Jack Andersen
2015-09-21 15:42:03 -10:00
parent bd3cf2b847
commit 45494ec9aa
6 changed files with 49 additions and 23 deletions

View File

@@ -16,9 +16,11 @@ LogVisor::LogModule Log("Retro::DNAMP3");
static bool GetNoShare(const std::string& name)
{
if (!name.compare("RS5.PAK"))
return true;
return false;
std::string lowerName = name;
std::transform(lowerName.begin(), lowerName.end(), lowerName.begin(), tolower);
if (!name.compare(0, 7, "metroid"))
return false;
return true;
}
PAKBridge::PAKBridge(HECL::Database::Project& project, const NOD::DiscBase::IPartition::Node& node)
@@ -29,7 +31,7 @@ PAKBridge::PAKBridge(HECL::Database::Project& project, const NOD::DiscBase::IPar
/* Append Level String */
std::set<HECL::SystemString, CaseInsensitiveCompare> uniq;
for (const PAK::Entry& entry : m_pak.m_entries)
for (PAK::Entry& entry : m_pak.m_entries)
{
if (entry.type == FOURCC('MLVL'))
{