diff options
author | Colin Noga <Tempus@chronometry.ca> | 2013-06-05 12:31:53 -0500 |
---|---|---|
committer | Colin Noga <Tempus@chronometry.ca> | 2013-06-05 12:31:53 -0500 |
commit | 4f8866bed88d7e8e184a285dc855590bc618230e (patch) | |
tree | 15103dca2d355dc8c8d8e7738e121a9b1184f29e /src/newer.cpp | |
parent | d8d037539f1e648e34137e6bb96cff47c7861c8d (diff) | |
parent | 53b4cabb097291545b95115a4e430105e9295613 (diff) | |
download | kamek-4f8866bed88d7e8e184a285dc855590bc618230e.tar.gz kamek-4f8866bed88d7e8e184a285dc855590bc618230e.zip |
Merge branch 'level-select' of ssh://treeki.rustedlogic.net:30000/Kamek into level-select
Diffstat (limited to '')
-rw-r--r-- | src/newer.cpp | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/src/newer.cpp b/src/newer.cpp index edbbf3b..f1da7fc 100644 --- a/src/newer.cpp +++ b/src/newer.cpp @@ -10,6 +10,42 @@ int lastLevelIDs[] = { }; +/* +extern "C" void FuckUpYoshi(void *_this) { + dEn_c *koopa = (dEn_c*)fBase_c::search(EN_NOKONOKO, 0); + static int thing = 0; + thing++; + nw4r::db::Exception_Printf_("Fruit eaten: %d\n", thing); + if (thing == 5) { + nw4r::db::Exception_Printf_("5th fruit eaten\n"); + nw4r::db::Exception_Printf_("Let's try fucking up Yoshi!\n"); + daPlBase_c *yoshi = (daPlBase_c*)fBase_c::search(YOSHI, 0); + nw4r::db::Exception_Printf_("Fruit: %p ; Koopa: %p ; Yoshi: %p\n", _this, koopa, yoshi); + koopa->_vf220(yoshi); + nw4r::db::Exception_Printf_("Yoshi fucked up. Yay.\n"); + thing = 0; + } +} + +extern "C" void FuckUpYoshi2() { + dEn_c *koopa = (dEn_c*)fBase_c::search(EN_NOKONOKO, 0); + nw4r::db::Exception_Printf_("Let's try fucking up Yoshi!\n"); + daPlBase_c *yoshi = (daPlBase_c*)fBase_c::search(YOSHI, 0); + koopa->_vf220(yoshi); + nw4r::db::Exception_Printf_("Yoshi fucked up. Yay.\n"); +} + +extern "C" void StartAnimOrig(dPlayerModelBase_c *_this, int id, float updateRate, float unk, float frame); +extern "C" void YoshiStartAnimWrapper(dPlayerModelBase_c *_this, int id, float updateRate, float unk, float frame) { + nw4r::db::Exception_Printf_("[%d] anim %d (%f, %f, %f)\n", GlobalTickCount, id, updateRate, unk, frame); + StartAnimOrig(_this, id, updateRate, unk, frame); +} +extern "C" void YoshiStateOrig(daPlBase_c *_this, dStateBase_c *state, void *param); +extern "C" void YoshiStateWrapper(daPlBase_c *_this, dStateBase_c *state, void *param) { + nw4r::db::Exception_Printf_("[%d] %s,%p\n", GlobalTickCount, state->getName(), param); + YoshiStateOrig(_this, state, param); +} +*/ void WriteAsciiToTextBox(nw4r::lyt::TextBox *tb, const char *source) { |