mirror of
https://github.com/HarbourMasters/Shipwright
synced 2026-08-01 00:18:58 -04:00
Fix quest type bleeding through saves (#3241)
This commit is contained in:
@@ -220,8 +220,9 @@ void Sram_InitSave(FileChooseContext* fileChooseCtx) {
|
||||
|
||||
gSaveContext.n64ddFlag = fileChooseCtx->n64ddFlag;
|
||||
|
||||
if (fileChooseCtx->questType[fileChooseCtx->buttonIndex] == 2 && strnlen(CVarGetString("gSpoilerLog", ""), 1) != 0) {
|
||||
gSaveContext.questId = 2;
|
||||
if (fileChooseCtx->questType[fileChooseCtx->buttonIndex] == QUEST_RANDOMIZER &&
|
||||
strnlen(CVarGetString("gSpoilerLog", ""), 1) != 0) {
|
||||
gSaveContext.questId = QUEST_RANDOMIZER;
|
||||
|
||||
Randomizer_InitSaveFile();
|
||||
}
|
||||
|
||||
@@ -989,7 +989,8 @@ void DrawSeedHashSprites(FileChooseContext* this) {
|
||||
gDPSetPrimColor(POLY_OPA_DISP++, 0, 0, 0xFF, 0xFF, 0xFF, alpha);
|
||||
|
||||
// Draw Seed Icons for spoiler log
|
||||
if (this->configMode == CM_QUEST_MENU && this->questType[this->buttonIndex] == QUEST_RANDOMIZER && strnlen(CVarGetString("gSpoilerLog", ""), 1) != 0 && fileSelectSpoilerFileLoaded) {
|
||||
if (this->configMode == CM_QUEST_MENU && this->questType[this->buttonIndex] == QUEST_RANDOMIZER &&
|
||||
strnlen(CVarGetString("gSpoilerLog", ""), 1) != 0 && fileSelectSpoilerFileLoaded) {
|
||||
u16 xStart = 64;
|
||||
for (unsigned int i = 0; i < 5; i++) {
|
||||
SpriteLoad(this, GetSeedTexture(gSaveContext.seedIcons[i]));
|
||||
@@ -2818,7 +2819,7 @@ void FileChoose_ConfirmFile(GameState* thisx) {
|
||||
Audio_PlaySoundGeneral(NA_SE_SY_FSEL_DECIDE_L, &D_801333D4, 4, &D_801333E0, &D_801333E0, &D_801333E8);
|
||||
// Reset Boss Rush because it's only ever saved in memory.
|
||||
if (IS_BOSS_RUSH) {
|
||||
gSaveContext.questId = 0;
|
||||
gSaveContext.questId = QUEST_NORMAL;
|
||||
}
|
||||
this->selectMode = SM_FADE_OUT;
|
||||
func_800F6964(0xF);
|
||||
|
||||
@@ -4181,7 +4181,7 @@ void KaleidoScope_Update(PlayState* play)
|
||||
} else {
|
||||
play->state.running = 0;
|
||||
if (IS_BOSS_RUSH) {
|
||||
gSaveContext.questId = 0;
|
||||
gSaveContext.questId = QUEST_NORMAL;
|
||||
}
|
||||
SET_NEXT_GAMESTATE(&play->state, Opening_Init, OpeningContext);
|
||||
GameInteractor_ExecuteOnExitGame(gSaveContext.fileNum);
|
||||
|
||||
Reference in New Issue
Block a user