Automatically open the connection settings when failing to autoconnect

This commit is contained in:
Jerom Venneker
2025-07-18 13:13:39 +02:00
parent 0101a4d842
commit 4f1ebbc3d5

View File

@@ -18,6 +18,7 @@
#include "soh/ShipInit.hpp"
#include "soh/SaveManager.h"
#include "soh/util.h"
#include "soh/SohGui/SohGui.hpp"
extern "C" {
#include "variables.h"
@@ -64,6 +65,10 @@ bool ArchipelagoClient::StartClient() {
"server address and slot name correct?");
CVarSetInteger(CVAR_REMOTE_ARCHIPELAGO("ConnectionStatus"), 2); // Connection error
disconnecting = true;
if(GameInteractor::IsSaveLoaded) {
SohGui::ShowArchipelagoSettingsMenu();
}
return;
}
ArchipelagoConsole_SendMessage("[ERROR] Could not connect to server, retrying...");