mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-07-15 04:45:52 +00:00
39 lines
1.0 KiB
C++
39 lines
1.0 KiB
C++
#ifndef _DNAMP1_CMDL_HPP_
|
|
#define _DNAMP1_CMDL_HPP_
|
|
|
|
#include "../DNACommon/DNACommon.hpp"
|
|
#include "../DNACommon/CMDL.hpp"
|
|
#include "CMDLMaterials.hpp"
|
|
#include "DNAMP1.hpp"
|
|
#include "CINF.hpp"
|
|
#include "CSKR.hpp"
|
|
|
|
namespace Retro
|
|
{
|
|
namespace DNAMP1
|
|
{
|
|
|
|
struct CMDL
|
|
{
|
|
static bool Extract(const SpecBase& dataSpec,
|
|
PAKEntryReadStream& rs,
|
|
const HECL::ProjectPath& outPath,
|
|
PAKRouter<PAKBridge>& pakRouter,
|
|
const PAK::Entry& entry,
|
|
bool force,
|
|
std::function<void(const HECL::SystemChar*)> fileChanged)
|
|
{
|
|
HECL::BlenderConnection& conn = HECL::BlenderConnection::SharedConnection();
|
|
if (!conn.createBlend(outPath.getAbsolutePath()))
|
|
return false;
|
|
DNACMDL::ReadCMDLToBlender<PAKRouter<PAKBridge>, MaterialSet, std::pair<CSKR*,CINF*>, 2>
|
|
(conn, rs, pakRouter, entry, dataSpec);
|
|
return conn.saveBlend();
|
|
}
|
|
};
|
|
|
|
}
|
|
}
|
|
|
|
#endif // _DNAMP1_CMDL_HPP_
|