2015-08-10 01:53:24 +00:00
|
|
|
#ifndef _DNAMP3_CMDL_HPP_
|
|
|
|
#define _DNAMP3_CMDL_HPP_
|
|
|
|
|
|
|
|
#include "../DNACommon/DNACommon.hpp"
|
|
|
|
#include "../DNACommon/CMDL.hpp"
|
|
|
|
#include "CMDLMaterials.hpp"
|
|
|
|
#include "DNAMP3.hpp"
|
2015-08-13 07:29:00 +00:00
|
|
|
#include "CINF.hpp"
|
|
|
|
#include "CSKR.hpp"
|
2015-08-10 01:53:24 +00:00
|
|
|
|
|
|
|
namespace Retro
|
|
|
|
{
|
|
|
|
namespace DNAMP3
|
|
|
|
{
|
|
|
|
|
|
|
|
struct CMDL
|
|
|
|
{
|
|
|
|
static bool Extract(const SpecBase& dataSpec,
|
|
|
|
PAKEntryReadStream& rs,
|
|
|
|
const HECL::ProjectPath& outPath,
|
|
|
|
PAKRouter<PAKBridge>& pakRouter,
|
2015-08-11 23:32:02 +00:00
|
|
|
const PAK::Entry& entry,
|
|
|
|
bool force)
|
2015-08-10 01:53:24 +00:00
|
|
|
{
|
|
|
|
HECL::BlenderConnection& conn = HECL::BlenderConnection::SharedConnection();
|
|
|
|
if (!conn.createBlend(outPath.getAbsolutePath()))
|
|
|
|
return false;
|
2015-08-13 07:29:00 +00:00
|
|
|
DNACMDL::ReadCMDLToBlender<PAKRouter<PAKBridge>, MaterialSet, std::pair<CSKR*,CINF*>, 5>
|
2015-08-16 23:00:33 +00:00
|
|
|
(conn, rs, pakRouter, entry, dataSpec);
|
2015-08-10 01:53:24 +00:00
|
|
|
return conn.saveBlend();
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // _DNAMP3_CMDL_HPP_
|