#define FORMATS_IMPL_EXPLICIT_FORMAT_INSTANTIATIONS_INTENDED #include #include "3dsx.hpp" #include "bcfnt.hpp" #include "cia.hpp" #include "dsp1.hpp" #include "ncch.hpp" namespace FileFormat { // 3DSX structures template struct SerializationInterface; template struct SerializationInterface; template struct SerializationInterface; // BCFNT structures template struct SerializationInterface; template struct SerializationInterface; template struct SerializationInterface; template struct SerializationInterface; template struct SerializationInterface; template struct SerializationInterface; // CIA structures template struct SerializationInterface; template struct SerializationInterface>; template struct SerializationInterface>; template struct SerializationInterface; template struct SerializationInterface; template struct SerializationInterface; template struct SerializationInterface; template struct SerializationInterface; template struct SerializationInterface; template struct SerializationInterface; template struct SerializationInterface; // DSP structures template struct SerializationInterface; // NCCH structures template struct SerializationInterface; template struct SerializationInterface; template struct SerializationInterface; template<> uint32_t SerializationInterface::Load(std::function reader) { return ConstructFromReadCallback>{}(reader); } template<> uint64_t SerializationInterface::Load(std::function reader) { return ConstructFromReadCallback>{}(reader); } template<> boost::endian::little_uint32_t SerializationInterface::Load(std::function reader) { struct Tags : little_endian_tag {}; return ConstructFromReadCallback>{}(reader); } template<> boost::endian::big_uint32_t SerializationInterface::Load(std::function reader) { struct Tags : big_endian_tag {}; return ConstructFromReadCallback>{}(reader); } template<> void SerializationInterface::Save(const boost::endian::big_uint32_t& data, std::function writer) { struct Tags : big_endian_tag {}; SaveWithWriteCallback>{}(data, writer); } } // namespace FileFormat