Automatically open the connection settings when failing to autoconnect
This commit is contained in:
@@ -18,6 +18,7 @@
|
|||||||
#include "soh/ShipInit.hpp"
|
#include "soh/ShipInit.hpp"
|
||||||
#include "soh/SaveManager.h"
|
#include "soh/SaveManager.h"
|
||||||
#include "soh/util.h"
|
#include "soh/util.h"
|
||||||
|
#include "soh/SohGui/SohGui.hpp"
|
||||||
|
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#include "variables.h"
|
#include "variables.h"
|
||||||
@@ -64,6 +65,10 @@ bool ArchipelagoClient::StartClient() {
|
|||||||
"server address and slot name correct?");
|
"server address and slot name correct?");
|
||||||
CVarSetInteger(CVAR_REMOTE_ARCHIPELAGO("ConnectionStatus"), 2); // Connection error
|
CVarSetInteger(CVAR_REMOTE_ARCHIPELAGO("ConnectionStatus"), 2); // Connection error
|
||||||
disconnecting = true;
|
disconnecting = true;
|
||||||
|
|
||||||
|
if(GameInteractor::IsSaveLoaded) {
|
||||||
|
SohGui::ShowArchipelagoSettingsMenu();
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
ArchipelagoConsole_SendMessage("[ERROR] Could not connect to server, retrying...");
|
ArchipelagoConsole_SendMessage("[ERROR] Could not connect to server, retrying...");
|
||||||
|
|||||||
Reference in New Issue
Block a user