diff options
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); +} |