Attempting to load cert from package

This commit is contained in:
Jerom Venneker
2025-08-06 19:50:23 +02:00
parent bd90e56a6a
commit 9774826ad2

View File

@@ -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