mirror of
https://github.com/Palakis/obs-websocket.git
synced 2024-08-30 18:12:16 +00:00
Requests: Fix global realm storage on persistent data req's
This commit is contained in:
parent
96c5818395
commit
78f9c93739
@ -16,7 +16,7 @@ RequestResult RequestHandler::GetPersistentData(const Request& request)
|
|||||||
|
|
||||||
std::string persistentDataPath = Utils::Obs::StringHelper::GetCurrentProfilePath();
|
std::string persistentDataPath = Utils::Obs::StringHelper::GetCurrentProfilePath();
|
||||||
if (realm == "OBS_WEBSOCKET_DATA_REALM_GLOBAL")
|
if (realm == "OBS_WEBSOCKET_DATA_REALM_GLOBAL")
|
||||||
persistentDataPath += "../../../obsWebSocketPersistentData.json";
|
persistentDataPath += "/../../../obsWebSocketPersistentData.json";
|
||||||
else if (realm == "OBS_WEBSOCKET_DATA_REALM_PROFILE")
|
else if (realm == "OBS_WEBSOCKET_DATA_REALM_PROFILE")
|
||||||
persistentDataPath += "/obsWebSocketPersistentData.json";
|
persistentDataPath += "/obsWebSocketPersistentData.json";
|
||||||
else
|
else
|
||||||
@ -45,7 +45,7 @@ RequestResult RequestHandler::SetPersistentData(const Request& request)
|
|||||||
|
|
||||||
std::string persistentDataPath = Utils::Obs::StringHelper::GetCurrentProfilePath();
|
std::string persistentDataPath = Utils::Obs::StringHelper::GetCurrentProfilePath();
|
||||||
if (realm == "OBS_WEBSOCKET_DATA_REALM_GLOBAL")
|
if (realm == "OBS_WEBSOCKET_DATA_REALM_GLOBAL")
|
||||||
persistentDataPath += "../../../obsWebSocketPersistentData.json";
|
persistentDataPath += "/../../../obsWebSocketPersistentData.json";
|
||||||
else if (realm == "OBS_WEBSOCKET_DATA_REALM_PROFILE")
|
else if (realm == "OBS_WEBSOCKET_DATA_REALM_PROFILE")
|
||||||
persistentDataPath += "/obsWebSocketPersistentData.json";
|
persistentDataPath += "/obsWebSocketPersistentData.json";
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user