From 78f9c93739b0815d6f3207d5b5eaf56fb44e0003 Mon Sep 17 00:00:00 2001 From: tt2468 Date: Mon, 30 Aug 2021 01:31:43 -0700 Subject: [PATCH] Requests: Fix global realm storage on persistent data req's --- src/requesthandler/RequestHandler_Config.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/requesthandler/RequestHandler_Config.cpp b/src/requesthandler/RequestHandler_Config.cpp index 50448f0f..cecca5a9 100644 --- a/src/requesthandler/RequestHandler_Config.cpp +++ b/src/requesthandler/RequestHandler_Config.cpp @@ -16,7 +16,7 @@ RequestResult RequestHandler::GetPersistentData(const Request& request) std::string persistentDataPath = Utils::Obs::StringHelper::GetCurrentProfilePath(); if (realm == "OBS_WEBSOCKET_DATA_REALM_GLOBAL") - persistentDataPath += "../../../obsWebSocketPersistentData.json"; + persistentDataPath += "/../../../obsWebSocketPersistentData.json"; else if (realm == "OBS_WEBSOCKET_DATA_REALM_PROFILE") persistentDataPath += "/obsWebSocketPersistentData.json"; else @@ -45,7 +45,7 @@ RequestResult RequestHandler::SetPersistentData(const Request& request) std::string persistentDataPath = Utils::Obs::StringHelper::GetCurrentProfilePath(); if (realm == "OBS_WEBSOCKET_DATA_REALM_GLOBAL") - persistentDataPath += "../../../obsWebSocketPersistentData.json"; + persistentDataPath += "/../../../obsWebSocketPersistentData.json"; else if (realm == "OBS_WEBSOCKET_DATA_REALM_PROFILE") persistentDataPath += "/obsWebSocketPersistentData.json"; else