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 /include | |
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 'include')
-rw-r--r-- | include/common.h | 9 | ||||
-rwxr-xr-x | include/game.h | 11 |
2 files changed, 19 insertions, 1 deletions
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);
|