|
4 | 4 | #include <ttyd/mariost.h>
|
5 | 5 | #include <ttyd/fontmgr.h>
|
6 | 6 | #include <ttyd/dispdrv.h>
|
| 7 | +#include <ttyd/seqdrv.h> |
| 8 | +#include <ttyd/seq_logo.h> |
7 | 9 |
|
8 | 10 | #include "patch.h"
|
9 | 11 |
|
@@ -36,6 +38,12 @@ void Mod::init()
|
36 | 38 | // Initialize typesetting early
|
37 | 39 | ttyd::fontmgr::fontmgrTexSetup();
|
38 | 40 | patch::hookFunction(ttyd::fontmgr::fontmgrTexSetup, [](){});
|
| 41 | + |
| 42 | + // Skip the logo |
| 43 | + patch::hookFunction(ttyd::seq_logo::seq_logoMain, [](ttyd::seqdrv::SeqInfo *) |
| 44 | + { |
| 45 | + ttyd::seqdrv::seqSetSeq(1, nullptr, nullptr); |
| 46 | + }); |
39 | 47 | }
|
40 | 48 |
|
41 | 49 | void Mod::updateEarly()
|
@@ -81,13 +89,12 @@ void Mod::draw()
|
81 | 89 | #else
|
82 | 90 | #error Mario position and velocity not implemented for this version
|
83 | 91 | #endif
|
84 |
| - |
85 | 92 |
|
86 | 93 | sprintf(mDisplayBuffer,
|
87 |
| - "Pos: %.2f %.2f %.2f\r\nSpdY: %.2f\r\nPST: %lu", |
88 |
| - marioPos[0], marioPos[1], marioPos[2], |
89 |
| - marioVel[0], |
90 |
| - mPalaceSkipTimer.getValue()); |
| 94 | + "Pos: %.2f %.2f %.2f\r\nSpdY: %.2f\r\nPST: %lu", |
| 95 | + marioPos[0], marioPos[1], marioPos[2], |
| 96 | + marioVel[0], |
| 97 | + mPalaceSkipTimer.getValue()); |
91 | 98 | ttyd::fontmgr::FontDrawStart();
|
92 | 99 | uint32_t color = 0xFFFFFFFF;
|
93 | 100 | ttyd::fontmgr::FontDrawColor(reinterpret_cast<uint8_t *>(&color));
|
|
0 commit comments