2016-08-16 21:05:33 +00:00
|
|
|
#ifndef __URDE_CSTRINGTABLE_HPP__
|
|
|
|
#define __URDE_CSTRINGTABLE_HPP__
|
|
|
|
|
|
|
|
#include "RetroTypes.hpp"
|
2016-08-16 21:12:27 +00:00
|
|
|
#include "IFactory.hpp"
|
2016-08-16 21:05:33 +00:00
|
|
|
|
|
|
|
namespace urde
|
|
|
|
{
|
|
|
|
class CStringTable
|
|
|
|
{
|
|
|
|
static const std::vector<FourCC> skLanguages;
|
|
|
|
static FourCC mCurrentLanguage;
|
|
|
|
u32 x0_stringCount = 0;
|
|
|
|
std::unique_ptr<u8[]> x4_data = 0;
|
|
|
|
u32 m_bufLen;
|
|
|
|
public:
|
|
|
|
CStringTable(CInputStream& in);
|
|
|
|
void LoadStringTable(CInputStream& in);
|
|
|
|
|
2017-01-22 01:40:12 +00:00
|
|
|
const wchar_t* GetString(s32) const;
|
2016-08-16 21:05:33 +00:00
|
|
|
static void SetLanguage(s32);
|
|
|
|
};
|
2016-08-16 21:12:27 +00:00
|
|
|
|
2016-09-02 19:32:57 +00:00
|
|
|
CFactoryFnReturn FStringTableFactory(const SObjectTag&, CInputStream&, const CVParamTransfer&,
|
|
|
|
CObjectReference* selfRef);
|
2016-08-16 21:05:33 +00:00
|
|
|
}
|
|
|
|
#endif // __URDE_CSTRINGTABLE_HPP__
|