Skip to content

Commit

Permalink
Add extra days
Browse files Browse the repository at this point in the history
  • Loading branch information
louist103 committed May 19, 2024
1 parent 6d52d0d commit 37bc13a
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 17 additions & 1 deletion mm/src/overlays/gamestates/ovl_file_choose/z_file_choose_NES.c
Original file line number Diff line number Diff line change
Expand Up @@ -1314,18 +1314,32 @@ u16 D_80814654[] = {
0x194,
0x2A0,
};

#define dgFileSelFourthDayTex "__OTR__misc/title_static/gFileSelFourthDayTex"
static const ALIGN_ASSET(2) char gFileSelFourthDayTex[] = dgFileSelFourthDayTex;

#define dgFileSelCheatingDayTex "__OTR__misc/title_static/gFileSelCheatingDayTex"
static const ALIGN_ASSET(2) char gFileSelCheatinghDayTex[] = dgFileSelCheatingDayTex;

TexturePtr sFileSelRemainsTextures[] = {
gFileSelOdolwasRemainsTex,
gFileSelGohtsRemainsTex,
gFileSelGyorgsRemainsTex,
gFileSelTwinmoldsRemainsTex,
};

// 2S2H [Port] When making an owl save on day 4 the texture was currupt. We also decided to add a texture for going past
// day 4.

TexturePtr sFileSelDayENGTextures[] = {
gFileSelFirstDayENGTex,
gFileSelFirstDayENGTex,
gFileSelSecondDayENGTex,
gFileSelFinalDayENGTex,
gFileSelFourthDayTex,
gFileSelCheatinghDayTex,
};

TexturePtr sFileSelHeartPieceTextures[] = {
gFileSel0QuarterHeartENGTex,
gFileSel1QuarterHeartENGTex,
Expand Down Expand Up @@ -1573,8 +1587,10 @@ void FileSelect_DrawFileInfo(GameState* thisx, s16 fileIndex) {
gSPVertex(POLY_OPA_DISP++, &this->windowContentVtx[D_80814654[fileIndex] + 0xDC], 8, 0);

gDPSetPrimColor(POLY_OPA_DISP++, 0x00, 0x00, 0, 0, 0, this->fileInfoAlpha[fileIndex]);
// 2S2H [Port] When making an owl save on day 4 the texture was currupt. We also decided to add a texture for going past day 4.
uint32_t dayIndex = CLAMP_MAX(this->day[sp20C], 5);

gDPLoadTextureBlock_4b(POLY_OPA_DISP++, sFileSelDayENGTextures[this->day[sp20C]], G_IM_FMT_I, 48, 24, 0,
gDPLoadTextureBlock_4b(POLY_OPA_DISP++, sFileSelDayENGTextures[dayIndex], G_IM_FMT_I, 48, 24, 0,
G_TX_NOMIRROR | G_TX_CLAMP, G_TX_NOMIRROR | G_TX_CLAMP, G_TX_NOMASK, G_TX_NOMASK,
G_TX_NOLOD, G_TX_NOLOD);
gSP1Quadrangle(POLY_OPA_DISP++, 4, 6, 7, 5, 0);
Expand Down

0 comments on commit 37bc13a

Please sign in to comment.