#include "STRG.hpp" #include "../Logging.hpp" namespace Retro { namespace DNAMP1 { const HECL::FourCC ENGLfcc("ENGL"); const HECL::FourCC FRENfcc("FREN"); const HECL::FourCC GERMfcc("GERM"); const HECL::FourCC SPANfcc("SPAN"); const HECL::FourCC ITALfcc("ITAL"); const HECL::FourCC JAPNfcc("JAPN"); void STRG::read(Athena::io::IStreamReader& reader) { uint32_t magic = reader.readUint32(); if (magic != 0x87654321) LogModule.report(LogVisor::FatalError, "invalid STRG magic"); version = reader.readUint32(); langCount = reader.readUint32(); strCount = reader.readUint32(); langs.clear(); langs.reserve(langCount); for (uint32_t l=0 ; l