diff options
author | Alexander Tkachev | 2016-06-18 14:25:55 +0600 |
---|---|---|
committer | Alexander Tkachev | 2016-08-24 16:07:55 +0600 |
commit | 1addefad7e29ff674828c6dad5330c87a4203f29 (patch) | |
tree | 94f0c5913e98679bae14c84267375e9dcb08f08f /backends/cloud/onedrive | |
parent | 6ac69729d5c93899a3b1f5d82b6c5b008f030a7c (diff) | |
download | scummvm-rg350-1addefad7e29ff674828c6dad5330c87a4203f29.tar.gz scummvm-rg350-1addefad7e29ff674828c6dad5330c87a4203f29.tar.bz2 scummvm-rg350-1addefad7e29ff674828c6dad5330c87a4203f29.zip |
CLOUD: Use correct redirect_uris
Usage of #ifdef there (and in StorageWizardDialog) means that ScummVM
doesn't support both local webserver and scummvm.org paths at the same
time. It's either built with SDL_net (thus supporting localhost path) or
without it (thus using scummvm.org).
Diffstat (limited to 'backends/cloud/onedrive')
-rw-r--r-- | backends/cloud/onedrive/onedrivestorage.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/backends/cloud/onedrive/onedrivestorage.cpp b/backends/cloud/onedrive/onedrivestorage.cpp index 5c230366a8..0d2f91c3a8 100644 --- a/backends/cloud/onedrive/onedrivestorage.cpp +++ b/backends/cloud/onedrive/onedrivestorage.cpp @@ -83,7 +83,11 @@ void OneDriveStorage::getAccessToken(BoolCallback callback, Common::String code) } 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%2F"); +#else + request->addPostField("&redirect_uri=https%3A%2F%2Fwww.scummvm.org/c/code"); +#endif addRequest(request); } |