mirror of
https://github.com/HarbourMasters/Shipwright
synced 2026-08-29 17:32:47 -04:00
Added the ability to connect to the server and download the item locations
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user