2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-09 03:07:41 +00:00

CStringTable imps

This commit is contained in:
2016-08-16 14:05:33 -07:00
parent c1e74b6314
commit de7d5f9d59
3 changed files with 105 additions and 1 deletions

View File

@@ -0,0 +1,23 @@
#ifndef __URDE_CSTRINGTABLE_HPP__
#define __URDE_CSTRINGTABLE_HPP__
#include "RetroTypes.hpp"
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);
std::wstring GetString(s32) const;
static void SetLanguage(s32);
};
}
#endif // __URDE_CSTRINGTABLE_HPP__