From 9774826ad27d5f7c2f6bb72911e48b3d48a75e11 Mon Sep 17 00:00:00 2001 From: Jerom Venneker Date: Wed, 6 Aug 2025 19:50:23 +0200 Subject: [PATCH] Attempting to load cert from package --- soh/soh/Network/Archipelago/Archipelago.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/soh/soh/Network/Archipelago/Archipelago.cpp b/soh/soh/Network/Archipelago/Archipelago.cpp index a75a93cbd..73a715a45 100644 --- a/soh/soh/Network/Archipelago/Archipelago.cpp +++ b/soh/soh/Network/Archipelago/Archipelago.cpp @@ -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(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(new APClient(uuid, AP_Client_consts::AP_GAME_NAME, uri, cert)); CVarSetInteger(CVAR_REMOTE_ARCHIPELAGO("ConnectionStatus"), 1); // Connecting