2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-11 03:47:50 +00:00

Added pak isolation feature for trilogy paks

This commit is contained in:
Jack Andersen
2015-09-21 13:36:15 -10:00
parent 9f05f40994
commit bd3cf2b847
7 changed files with 44 additions and 15 deletions

View File

@@ -12,11 +12,17 @@ namespace Retro
{
namespace DNAMP3
{
LogVisor::LogModule Log("Retro::DNAMP3");
static bool GetNoShare(const std::string& name)
{
if (!name.compare("RS5.PAK"))
return true;
return false;
}
PAKBridge::PAKBridge(HECL::Database::Project& project, const NOD::DiscBase::IPartition::Node& node)
: m_project(project), m_node(node)
: m_project(project), m_node(node), m_pak(GetNoShare(node.getName()))
{
NOD::AthenaPartReadStream rs(node.beginReadStream());
m_pak.read(rs);