2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-10 17:07:42 +00:00

Script Object DNAs

This commit is contained in:
2015-09-10 13:30:35 -07:00
parent eed44c8230
commit c3ee18abf5
136 changed files with 5744 additions and 4 deletions

View File

@@ -1,4 +1,5 @@
#include "MREA.hpp"
#include "SCLY.hpp"
#include "DeafBabe.hpp"
#include "../DNACommon/BabeDead.hpp"
@@ -37,7 +38,7 @@ bool MREA::Extract(const SpecBase& dataSpec,
const HECL::ProjectPath& outPath,
PAKRouter<PAKBridge>& pakRouter,
const PAK::Entry& entry,
bool,
bool force,
std::function<void(const HECL::SystemChar*)>)
{
using RigPair = std::pair<CSKR*, CINF*>;
@@ -114,8 +115,12 @@ bool MREA::Extract(const SpecBase& dataSpec,
/* Skip AROT */
rs.seek(head.secSizes[curSec++], Athena::Current);
/* Skip SCLY (for now) */
rs.seek(head.secSizes[curSec++], Athena::Current);
/* Read SCLY layers */
secStart = rs.position();
SCLY scly;
scly.read(rs);
scly.exportToLayerDirectories(entry, pakRouter, force);
rs.seek(secStart + head.secSizes[curSec++], Athena::Begin);
/* Read collision meshes */
DeafBabe collision;