metaforce/Runtime/GuiSys/CStringTable.hpp

26 lines
662 B
C++
Raw Normal View History

2018-10-07 03:42:33 +00:00
#pragma once
2016-08-16 21:05:33 +00:00
#include "RetroTypes.hpp"
2016-08-16 21:12:27 +00:00
#include "IFactory.hpp"
2016-08-16 21:05:33 +00:00
2018-12-08 05:30:43 +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;
2016-08-16 21:05:33 +00:00
public:
2018-12-08 05:30:43 +00:00
CStringTable(CInputStream& in);
void LoadStringTable(CInputStream& in);
2016-08-16 21:05:33 +00:00
2018-12-08 05:30:43 +00:00
const char16_t* GetString(s32) const;
u32 GetStringCount() const { return x0_stringCount; }
static void SetLanguage(s32);
2016-08-16 21:05:33 +00:00
};
2016-08-16 21:12:27 +00:00
CFactoryFnReturn FStringTableFactory(const SObjectTag&, CInputStream&, const CVParamTransfer&,
CObjectReference* selfRef);
2018-12-08 05:30:43 +00:00
} // namespace urde