mirror of
https://github.com/CTR-tools/CTR-ModSDK.git
synced 2025-02-23 23:00:57 +00:00
credits progress
This commit is contained in:
parent
8248987ec8
commit
21835d6be5
@ -68,7 +68,7 @@ void CS_Credits_Init()
|
||||
PROC_BirthWithObject(0x30d, CS_Credits_ThTick, 0, 0);
|
||||
|
||||
memset(creditsObj, 0, sizeof(struct CreditsObj));
|
||||
creditsObj->countdown = 360;
|
||||
creditsObj->countdown = FPS_DOUBLE(360);
|
||||
|
||||
// === 5 instances ===
|
||||
for(i = 0; i < 5; i++)
|
||||
|
17
decompile/General/233/233_48_CS_Credits_IsTextValid.c
Normal file
17
decompile/General/233/233_48_CS_Credits_IsTextValid.c
Normal file
@ -0,0 +1,17 @@
|
||||
#include <common.h>
|
||||
|
||||
// temporary workaround
|
||||
extern struct Ovr233_Credits_BSS* creditsBSS;
|
||||
|
||||
int CS_Credits_IsTextValid()
|
||||
{
|
||||
// This dang byte budget
|
||||
//struct CreditsObj* creditsObj = &creditsBSS->creditsObj;
|
||||
struct CreditsObj* creditsObj = 0x800b94bc;
|
||||
|
||||
if(creditsObj->epilogue_topString != 0)
|
||||
return 0;
|
||||
|
||||
creditsObj->countdown = FPS_DOUBLE(360);
|
||||
return 1;
|
||||
}
|
@ -16,7 +16,7 @@ void CS_Credits_NewDancer(struct Thread* dancerTh, int dancerModelID)
|
||||
creditsBSS->dancerInst_invisible = dancerTh->inst;
|
||||
creditsBSS->dancerInst_invisible->flags |= 0x80;
|
||||
|
||||
creditsObj->countdown = 360;
|
||||
creditsObj->countdown = FPS_DOUBLE(360);
|
||||
|
||||
char** ptrStrings = creditsBSS->ptrStrings;
|
||||
|
||||
|
@ -141,6 +141,7 @@ common, 233, CS_Podium_FullScene_Init, 0x0, General/233/233_33_CS_Podium_FullSce
|
||||
common, 233, CS_Garage_ZoomOut, 0x0, General/233/233_37_40_CS_Garage.c
|
||||
// skip credits (41-46)
|
||||
common, 233, CS_Credits_Init, 0x0, General/233/233_47_CS_Credits_Init.c
|
||||
common, 233, CS_Credits_IsTextValid, 0x0, General/233/233_48_CS_Credits_IsTextValid.c
|
||||
common, 233, CS_Credits_NewDancer, 0x0, General/233/233_49_CS_Credits_NewDancer.c
|
||||
common, 233, CS_Credits_End, 0x0, General/233/233_51_CS_Credits_End.c
|
||||
|
||||
|
@ -2162,7 +2162,7 @@ void FUN_800ae318(int param_1)
|
||||
// if there is room in primMem
|
||||
if (puVar4 + 6 < puVar2)
|
||||
{
|
||||
// pushBuffer offset 0x28 (400 = 0x190 = 0x168+0x28)
|
||||
// pushBuffer offset 0x28 (400 equals 0x190 equals 0x168+0x28)
|
||||
setCopControlWord(2,0,*(undefined4 *)(PTR_DAT_8008d2ac + 400));
|
||||
setCopControlWord(2,0x800,*(undefined4 *)(PTR_DAT_8008d2ac + 0x194));
|
||||
setCopControlWord(2,0x1000,*(undefined4 *)(PTR_DAT_8008d2ac + 0x198));
|
||||
|
Loading…
x
Reference in New Issue
Block a user