@@ -277,33 +277,37 @@ void *jumpOnWater(void *ptr)
277
277
}
278
278
}
279
279
280
- void displayTitleScreenAndFileSelectScreenInfo ( )
280
+ void Mod::displayTitleScreenInfo (ttyd::seqdrv::SeqInfo *seqInfo )
281
281
{
282
- if (checkForSpecificSeq (ttyd::seqdrv::SeqIndex::kTitle ))
282
+ // Check to see if the title screen is ready
283
+ // Check to see if the curtain is fully displayed or not
284
+ uint32_t TitleMainCheck = *reinterpret_cast <uint32_t *>(
285
+ reinterpret_cast <uint32_t >(ttyd::seq_title::seqTitleWorkPointer2) + 0x8 );
286
+
287
+ if ((TitleMainCheck >= 2 ) && (TitleMainCheck < 12 ))
283
288
{
284
- // Check to see if the title screen is ready
285
- // Check to see if the curtain is fully displayed or not
286
- uint32_t TitleMainCheck = *reinterpret_cast <uint32_t *>(
287
- reinterpret_cast <uint32_t >(ttyd::seq_title::seqTitleWorkPointer2) + 0x8 );
288
-
289
- if ((TitleMainCheck >= 2 ) && (TitleMainCheck < 12 ))
290
- {
291
- // Curtain is not fully displayed
292
- // Draw the title screen info
293
- drawFunctionOn2DLayerWithOrder (drawTitleScreenInfo, -1 .f );
294
- }
289
+ // Curtain is not fully displayed
290
+ // Draw the title screen info
291
+ drawFunctionOn2DLayerWithOrder (drawTitleScreenInfo, -1 .f );
295
292
}
296
- else if (checkForSpecificSeq (ttyd::seqdrv::SeqIndex::kLoad ))
293
+
294
+ // Call original function
295
+ mPFN_titleMain_trampoline (seqInfo);
296
+ }
297
+
298
+ void Mod::displayFileSelectScreenInfo (ttyd::seqdrv::SeqInfo *seqInfo)
299
+ {
300
+ // Check to see if the curtain is down or not
301
+ uint32_t SeqMainCheck = ttyd::seqdrv::seqWork.wFileSelectScreenProgress ;
302
+
303
+ if (SeqMainCheck == 2 )
297
304
{
298
- // Check to see if the curtain is down or not
299
- uint32_t SeqMainCheck = ttyd::seqdrv::seqWork.wFileSelectScreenProgress ;
300
-
301
- if (SeqMainCheck == 2 )
302
- {
303
- // Draw the file select screen info
304
- drawFunctionOn2DLayerWithOrder (drawFileSelectScreenInfo, -1 .f );
305
- }
305
+ // Draw the file select screen info
306
+ drawFunctionOn2DLayerWithOrder (drawFileSelectScreenInfo, -1 .f );
306
307
}
308
+
309
+ // Call original function
310
+ mPFN_seq_loadMain_trampoline (seqInfo);
307
311
}
308
312
309
313
int32_t Mod::pauseMenuPreventUnpause (void *pauseMenuPointer)
@@ -1013,9 +1017,6 @@ void initAddressOverwrites()
1013
1017
1014
1018
void Mod::run ()
1015
1019
{
1016
- // Display the title screen and file select screen info
1017
- displayTitleScreenAndFileSelectScreenInfo ();
1018
-
1019
1020
// Update the On-Screen Timer variables if the display is on
1020
1021
updateOnScreenTimerVars ();
1021
1022
0 commit comments