2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-05-15 00:31:20 +00:00
metaforce/Runtime/GuiSys/CStringTable.hpp
Lioncash 36d04456dd General: Normalize RuntimeCommonB include paths
Finishes the normalizing of all of includes within the RuntimeCommonB target's headers.
2019-09-23 17:22:37 -04:00

27 lines
645 B
C++

#pragma once
#include <memory>
#include "Runtime/IFactory.hpp"
#include "Runtime/RetroTypes.hpp"
namespace urde {
class CStringTable {
static FourCC mCurrentLanguage;
u32 x0_stringCount = 0;
std::unique_ptr<u8[]> x4_data;
u32 m_bufLen;
public:
CStringTable(CInputStream& in);
void LoadStringTable(CInputStream& in);
const char16_t* GetString(s32) const;
u32 GetStringCount() const { return x0_stringCount; }
static void SetLanguage(s32);
};
CFactoryFnReturn FStringTableFactory(const SObjectTag&, CInputStream&, const CVParamTransfer&,
CObjectReference* selfRef);
} // namespace urde