diff options
author | Treeki <treeki@gmail.com> | 2013-11-17 20:42:06 +0100 |
---|---|---|
committer | Treeki <treeki@gmail.com> | 2013-11-17 20:42:06 +0100 |
commit | c220e400436703c71adf2b49a04a863b72c41d29 (patch) | |
tree | 5d615b6834ee24233549a5ee4860f363c6e50185 /src/newer.cpp | |
parent | d55debf80b417793ce924ec977ed3a16413fd5d6 (diff) | |
download | kamek-level-select.tar.gz kamek-level-select.zip |
broken translations and shit, possibly final commit before public releaselevel-select
Diffstat (limited to 'src/newer.cpp')
-rw-r--r-- | src/newer.cpp | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/newer.cpp b/src/newer.cpp index f1da7fc..4183bf5 100644 --- a/src/newer.cpp +++ b/src/newer.cpp @@ -165,3 +165,25 @@ extern "C" GEIFS *GrabExitInfoForFileSelect(GEIFS *out, SaveBlock *save) { } +void Newer_WriteBMGToTextBox_VAList(nw4r::lyt::TextBox *textBox, dScript::Res_c *res, int category, int message, int argCount, va_list *args) { + GameMgrP->layoutShadowFlag = false; + if (textBox->GetExtUserDataNum()) + CheckForUSD1ShadowEntry(textBox); + + GameMgrP->msgCategory = category; + GameMgrP->msgID = message; + + const wchar_t *str = res->findStringForMessageID(category, message); + WriteParsedStringToTextBox(textBox, str, argCount, args, res); +} +void Newer_WriteBMGToTextBox(nw4r::lyt::TextBox *textBox, dScript::Res_c *res, int category, int message, int argCount, ...) { + va_list vl; + + // from CW PPC cstdarg + ((void)argCount, __builtin_va_info(&vl)); + + Newer_WriteBMGToTextBox_VAList(textBox, res, category, message, argCount, &vl); + + // CW PPC cstdarg defines this to (void)0 + //va_end(vl); +} |