From 69b2b83ac585121b6cc37ff8fdcddf9ebd5cd5ce Mon Sep 17 00:00:00 2001 From: Treeki Date: Sat, 15 Sep 2012 17:48:38 +0200 Subject: initial version of file select --- include/game.h | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) (limited to 'include/game.h') diff --git a/include/game.h b/include/game.h index f3b14c3..29bb6d6 100755 --- a/include/game.h +++ b/include/game.h @@ -137,10 +137,21 @@ public: u8 worlds_available[10]; // 0x32 u32 ambush_countdown[10]; // 0x3C u16 field_64; // 0x64 - u16 credits_hiscore; // 0x66 + union { + u16 credits_hiscore; // 0x66 + u16 spentStarCoins; + }; u16 score; // 0x68 u32 completions[10][0x2A]; // 0x6C - u8 hint_movie_bought[70]; // 0x6FC + union { + u8 hint_movie_bought[70]; // 0x6FC + + struct { + // ALL Newer additions should go here + // This array has been verified as safe to replace + u8 currentNewerWorld; // 0x6FC + }; + }; u8 toad_location[10]; // 0x742 u8 field_74C[10][4]; // 0x74C u8 field_774[10][4]; // 0x774 @@ -2590,7 +2601,7 @@ namespace m2d { class AnmResHandler_c { public: AnmResHandler_c(); - ~AnmResHandler_c(); + virtual ~AnmResHandler_c(); struct Thing { nw4r::lyt::Group *group; @@ -3057,6 +3068,7 @@ namespace mHeap { void WriteNumberToTextBox(int *number, const int *fieldLength, nw4r::lyt::TextBox *textBox, bool unk); // 800B3B60 +#include "newer.h" #endif -- cgit v1.2.3 From 7404c596e96bf18f458f10fb8f23ca6e1a25ca7d Mon Sep 17 00:00:00 2001 From: Treeki Date: Sun, 16 Sep 2012 04:59:03 +0200 Subject: go speed! a terrible hack to make builds far faster --- include/game.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'include/game.h') diff --git a/include/game.h b/include/game.h index 29bb6d6..169b01d 100755 --- a/include/game.h +++ b/include/game.h @@ -3067,6 +3067,28 @@ namespace mHeap { }; void WriteNumberToTextBox(int *number, const int *fieldLength, nw4r::lyt::TextBox *textBox, bool unk); // 800B3B60 +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); + +struct DoSomethingCool { + u32 unk_01; //0000 + Vec3 pos; //0004 + Vec3 scale; //0010 + f32 unk_02; //001C + f32 unk_03; //0020 + f32 unk_04; //0024 + f32 unk_05; //0028 + f32 unk_06; //002C + f32 unk_07; //0030 + f32 unk_08; //0034 + f32 unk_09; //0038 +}; +extern "C" u8 dSprite_c__getXDirectionOfFurthestPlayerRelativeToVEC3(dEn_c *, Vec pos); +extern "C" void *ShakeScreen(void *, unsigned int, unsigned int, unsigned int, unsigned int); +extern "C" void *PlaySound(dStageActor_c *, int soundID); +extern "C" void *PlaySoundAsync(dStageActor_c *, int soundID); +extern "C" u32 GetActivePlayerCount(); #include "newer.h" -- cgit v1.2.3