2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-05-17 14:31:21 +00:00
Luke Street 9ca1a38171 Use UTF-8 exclusively internally
This removes SystemString, SystemChar, etc.
All filepaths and log strings are assumed to be UTF-8,
with conversions to UTF-16 for Windows APIs as appropriate.

Updates amuse, athena, boo, kabufua and nod
2021-06-30 14:20:45 -04:00

28 lines
985 B
C++

#pragma once
#include "DataSpec/DNACommon/PAK.hpp"
#include "DataSpec/DNACommon/MAPA.hpp"
#include "DNAMP2.hpp"
namespace DataSpec::DNAMP2 {
struct MAPA : DNAMAPA::MAPA {
static bool Extract(const SpecBase& dataSpec, PAKEntryReadStream& rs, const hecl::ProjectPath& outPath,
PAKRouter<PAKBridge>& pakRouter, const DNAMP2::PAK::Entry& entry, bool force,
hecl::blender::Token& btok, std::function<void(const char*)> fileChanged) {
MAPA mapa;
mapa.read(rs);
hecl::blender::Connection& conn = btok.getBlenderConnection();
return DNAMAPA::ReadMAPAToBlender(conn, mapa, outPath, pakRouter, entry, force);
}
static bool Cook(const hecl::blender::MapArea& mapa, const hecl::ProjectPath& out) {
return DNAMAPA::Cook<MAPA>(mapa, out);
}
static uint32_t Version() { return 3; }
using Header = DNAMAPA::MAPA::HeaderMP2;
using MappableObject = DNAMAPA::MAPA::MappableObjectMP1_2;
};
} // namespace DataSpec::DNAMP2