From 6ae6806c0d880f3ee47384661069fd7d6d2903e4 Mon Sep 17 00:00:00 2001 From: Luke Street Date: Tue, 14 Apr 2020 00:19:05 -0400 Subject: [PATCH] DNAMP3: Add FrontEnd.pak to GetNoShare --- DataSpec/DNAMP3/DNAMP3.cpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/DataSpec/DNAMP3/DNAMP3.cpp b/DataSpec/DNAMP3/DNAMP3.cpp index 60b68b85b..e5b4e3461 100644 --- a/DataSpec/DNAMP3/DNAMP3.cpp +++ b/DataSpec/DNAMP3/DNAMP3.cpp @@ -22,15 +22,10 @@ namespace DataSpec::DNAMP3 { logvisor::Module Log("urde::DNAMP3"); static bool GetNoShare(std::string_view name) { - if (name == "UniverseArea.pak"sv) - return false; std::string lowerName(name); std::transform(lowerName.begin(), lowerName.end(), lowerName.begin(), tolower); - if (!lowerName.compare(0, 7, "metroid")) - return false; - if (!lowerName.compare(0, 5, "rs5fe")) - return false; - return true; + return !lowerName.starts_with("metroid"sv) && !lowerName.starts_with("frontend"sv) && + !lowerName.starts_with("rs5fe"sv) && !lowerName.starts_with("universearea"sv); } PAKBridge::PAKBridge(const nod::Node& node, bool doExtract)