Added the ability to connect to the server and download the item locations

This commit is contained in:
Jerom Venneker
2025-02-05 21:14:17 +01:00
parent 668e266ecc
commit e86f75bfc8
19 changed files with 2961 additions and 0 deletions
@@ -1005,6 +1005,7 @@ void DrawSeedHashSprites(FileChooseContext* this) {
u8 generating;
int retries = 0;
bool fileSelectSpoilerFileLoaded = false;
bool fileSelectarchipelagoloaded = false;
void FileChoose_UpdateRandomizer() {
if (CVarGetInteger(CVAR_GENERAL("RandoGenerating"), 0) != 0 && generating == 0) {
@@ -1045,6 +1046,13 @@ void FileChoose_UpdateRandomizer() {
remove(fileLoc);
}
}
if (CVarGetInteger("archipelago_connected", 0) != 0
&& !fileSelectarchipelagoloaded) {
parse_archipelago();
fileSelectarchipelagoloaded = true;
Audio_PlayFanfare(NA_BGM_HORSE_GOAL);
}
}
static s16 sLastFileChooseButtonIndex;
@@ -3711,6 +3719,7 @@ void FileChoose_Init(GameState* thisx) {
this->questType[1] = MIN_QUEST;
this->questType[2] = MIN_QUEST;
fileSelectSpoilerFileLoaded = false;
fileSelectarchipelagoloaded = false;
CVarSetInteger(CVAR_GENERAL("OnFileSelectNameEntry"), 0);
SREG(30) = 1;