Attempting to load cert from package
This commit is contained in:
@@ -53,7 +53,9 @@ bool ArchipelagoClient::StartClient() {
|
||||
uri = CVarGetString(CVAR_REMOTE_ARCHIPELAGO("ServerAddress"), "localhost:38281");
|
||||
password = CVarGetString(CVAR_REMOTE_ARCHIPELAGO("Password"), "");
|
||||
|
||||
apClient = std::unique_ptr<APClient>(new APClient(uuid, AP_Client_consts::AP_GAME_NAME, uri, "networking/cacert.pem"));
|
||||
const std::string cert = Ship::Context::LocateFileAcrossAppDirs("networking/cacert.pem");
|
||||
SPDLOG_DEBUG("Location of cert: " + cert);
|
||||
apClient = std::unique_ptr<APClient>(new APClient(uuid, AP_Client_consts::AP_GAME_NAME, uri, cert));
|
||||
|
||||
CVarSetInteger(CVAR_REMOTE_ARCHIPELAGO("ConnectionStatus"), 1); // Connecting
|
||||
|
||||
|
||||
Reference in New Issue
Block a user