mirror of https://github.com/AxioDL/metaforce.git
33 lines
836 B
C++
33 lines
836 B
C++
|
#ifndef __DNAMP3_MAPA_HPP__
|
||
|
#define __DNAMP3_MAPA_HPP__
|
||
|
|
||
|
#include "../DNACommon/PAK.hpp"
|
||
|
#include "../DNACommon/MAPA.hpp"
|
||
|
#include "DNAMP3.hpp"
|
||
|
|
||
|
namespace Retro
|
||
|
{
|
||
|
namespace DNAMP3
|
||
|
{
|
||
|
struct MAPA : DNAMAPA::MAPA
|
||
|
{
|
||
|
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)
|
||
|
{
|
||
|
MAPA mapa;
|
||
|
mapa.read(rs);
|
||
|
HECL::BlenderConnection& conn = HECL::BlenderConnection::SharedConnection();
|
||
|
return DNAMAPA::ReadMAPAToBlender(conn, mapa, outPath, pakRouter, entry, force);
|
||
|
}
|
||
|
};
|
||
|
|
||
|
}
|
||
|
}
|
||
|
|
||
|
#endif
|