From c220e400436703c71adf2b49a04a863b72c41d29 Mon Sep 17 00:00:00 2001 From: Treeki Date: Sun, 17 Nov 2013 20:42:06 +0100 Subject: broken translations and shit, possibly final commit before public release --- include/common.h | 9 ++++++++- include/game.h | 11 +++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/common.h b/include/common.h index b002dca..9e90dbc 100644 --- a/include/common.h +++ b/include/common.h @@ -165,5 +165,12 @@ namespace nw4r { namespace db { void Exception_Printf_(const char *msg, ...); }} - +typedef struct { + char gpr; + char fpr; + char reserved[2]; + char *input_arg_area; + char *reg_save_area; +} __va_list[1]; +typedef __va_list va_list; #endif diff --git a/include/game.h b/include/game.h index c0477b7..5adbe0f 100755 --- a/include/game.h +++ b/include/game.h @@ -815,6 +815,8 @@ namespace lyt { Vec2 GetVtxPos() const; + u16 GetExtUserDataNum() const; // 802AC5A0 + ut::LinkListNode parentLink; Pane *parent; @@ -3761,6 +3763,15 @@ class MessageClass { dScript::Res_c *GetBMG(); // 800CDD50 void WriteBMGToTextBox(nw4r::lyt::TextBox *textBox, dScript::Res_c *res, int category, int message, int argCount, ...); // 0x800C9B50 +// My version ignores the Font and Font Scale fields in BMG +void Newer_WriteBMGToTextBox_VAList(nw4r::lyt::TextBox *textBox, dScript::Res_c *res, int category, int message, int argCount, va_list *args); +void Newer_WriteBMGToTextBox(nw4r::lyt::TextBox *textBox, dScript::Res_c *res, int category, int message, int argCount, ...); + +// support functions needed for it +void CheckForUSD1ShadowEntry(nw4r::lyt::TextBox *textBox); // 800C9BF0 +void WriteParsedStringToTextBox(nw4r::lyt::TextBox *textBox, const wchar_t *str, int vaCount, va_list *args, dScript::Res_c *res); + + extern "C" dAc_Py_c* GetSpecificPlayerActor(int number); extern "C" dStageActor_c *CreateActor(u16 classID, int settings, Vec pos, char rot, char layer); extern "C" dStageActor_c *Actor_SearchByID(u32 actorID); -- cgit v1.2.3