3#include <game/bases/d_msg_res.hpp>
4#include <game/bases/d_dvd.hpp>
17 static bool create(EGG::Heap *heap);
18 static wchar_t *
getMsg(ulong messageGroup, ulong messageID);
33 static void numToString(
int num,
wchar_t *dst,
size_t writeLimit,
int digitCount,
int suppressLeadingZero);
37 static void numToFullWidth(
int num,
wchar_t *dst,
size_t writeLimit,
int digitCount,
int suppressLeadingZero);
A simple wrapper around EGG::MsgRes.
static void numToString(int num, wchar_t *dst, size_t writeLimit, int digitCount, int suppressLeadingZero)
Writes num into dst with digitCount decimal digits, replacing suppressed leading zeros with spaces....
static wchar_t * getMsg(ulong messageGroup, ulong messageID)
Gets a message from the group number and ID.
MsgRes_c * mpMsgRes
The message resource instance used to retrieve messages.
void buildMsgRes(EGG::Heap *heap)
Creates a new MsgRes_c instance from the loaded message resource file.
static MsgRes_c * getMesRes()
Gets the MsgRes_c instance used.
~dMessage_c()
Destroys the dMessage_c instance.
void * mpFileData
The raw message resource file data.
static void numToFullWidth(int num, wchar_t *dst, size_t writeLimit, int digitCount, int suppressLeadingZero)
Same as numToString, but uses full-width characters.
dDvd::loader_c mLoader
The loader for loading the message resource file from disk.
static void changetoFullSize(wchar_t *str)
Converts regular ASCII characters in str to full-width characters.
dMessage_c()
Constructs a new dMessage_c instance.
static bool create(EGG::Heap *heap)
Loads the message resource file from disk and initializes it.