#ifndef __COMMON_STRG_HPP__ #define __COMMON_STRG_HPP__ #include #include #include #include #include #include #include "DNACommon.hpp" namespace Retro { struct ISTRG { virtual ~ISTRG() {} virtual size_t count() const=0; virtual std::string getUTF8(const FourCC& lang, size_t idx) const=0; virtual std::wstring getUTF16(const FourCC& lang, size_t idx) const=0; virtual HECL::SystemString getSystemString(const FourCC& lang, size_t idx) const=0; virtual int32_t lookupIdx(const std::string& name) const=0; virtual bool readAngelScript(const AngelScript::asIScriptModule& in)=0; virtual void writeAngelScript(std::ofstream& out) const=0; }; std::unique_ptr LoadSTRG(Athena::io::IStreamReader& reader); extern HECL::Database::ASListType ASTYPE_STRGLanguage; } #endif // __COMMON_STRG_HPP__