aboutsummaryrefslogtreecommitdiff
path: root/backends/cloud/box/boxstorage.cpp
diff options
context:
space:
mode:
authorAlexander Tkachev2016-07-21 12:06:00 +0600
committerAlexander Tkachev2016-08-24 16:07:55 +0600
commit772d8ee42b820a5c19a8d9a9efb215f17606fb8f (patch)
treec1bc3232d74fce1bdb12910e35b26c5de1f5d919 /backends/cloud/box/boxstorage.cpp
parent438ba985a4a97a8695a6e6fdda6930694976c07b (diff)
downloadscummvm-rg350-772d8ee42b820a5c19a8d9a9efb215f17606fb8f.tar.gz
scummvm-rg350-772d8ee42b820a5c19a8d9a9efb215f17606fb8f.tar.bz2
scummvm-rg350-772d8ee42b820a5c19a8d9a9efb215f17606fb8f.zip
CLOUD: Fix `redirect_uri` selection code
Now it's not hardcoded based on USE_SDL_NET, but one or another value is used depending on currently selected LocalWebserver's port.
Diffstat (limited to 'backends/cloud/box/boxstorage.cpp')
-rw-r--r--backends/cloud/box/boxstorage.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/backends/cloud/box/boxstorage.cpp b/backends/cloud/box/boxstorage.cpp
index 6d4b5efd8e..873e4fabc1 100644
--- a/backends/cloud/box/boxstorage.cpp
+++ b/backends/cloud/box/boxstorage.cpp
@@ -88,11 +88,11 @@ void BoxStorage::getAccessToken(BoolCallback callback, Networking::ErrorCallback
request->addPostField("client_id=" + Common::String(KEY));
request->addPostField("client_secret=" + Common::String(SECRET));
/*
-#ifdef USE_SDL_NET
- request->addPostField("&redirect_uri=http%3A%2F%2Flocalhost%3A12345");
-#else
- request->addPostField("&redirect_uri=https%3A%2F%2Fwww.scummvm.org/c/code");
-#endif
+ if (Cloud::CloudManager::couldUseLocalServer()) {
+ request->addPostField("&redirect_uri=http%3A%2F%2Flocalhost%3A12345");
+ } else {
+ request->addPostField("&redirect_uri=https%3A%2F%2Fwww.scummvm.org/c/code");
+ }
*/
addRequest(request);
}