diff options
author | Alexander Tkachev | 2019-07-15 22:14:23 +0700 |
---|---|---|
committer | Matan Bareket | 2019-07-30 14:51:41 -0400 |
commit | 60504dce7539863a207610fd636236c7035ade3e (patch) | |
tree | dc4eee3a5740f206e08edb2d93fa6df0eefe4ed2 /backends/cloud/dropbox | |
parent | 4a427faf9cc817cfce8e293c22cc470339b6e3c7 (diff) | |
download | scummvm-rg350-60504dce7539863a207610fd636236c7035ade3e.tar.gz scummvm-rg350-60504dce7539863a207610fd636236c7035ade3e.tar.bz2 scummvm-rg350-60504dce7539863a207610fd636236c7035ade3e.zip |
CLOUD: Update storages to refresh token via cloud.scummvm.org
Diffstat (limited to 'backends/cloud/dropbox')
-rw-r--r-- | backends/cloud/dropbox/dropboxstorage.cpp | 2 | ||||
-rw-r--r-- | backends/cloud/dropbox/dropboxstorage.h | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/backends/cloud/dropbox/dropboxstorage.cpp b/backends/cloud/dropbox/dropboxstorage.cpp index 459f4dc67a..8941dff94a 100644 --- a/backends/cloud/dropbox/dropboxstorage.cpp +++ b/backends/cloud/dropbox/dropboxstorage.cpp @@ -52,6 +52,8 @@ Common::String DropboxStorage::cloudProvider() { return "dropbox"; } uint32 DropboxStorage::storageIndex() { return kStorageDropboxId; } +bool DropboxStorage::needsRefreshToken() { return false; } + void DropboxStorage::saveConfig(Common::String keyPrefix) { ConfMan.set(keyPrefix + "access_token", _token, ConfMan.kCloudDomain); } diff --git a/backends/cloud/dropbox/dropboxstorage.h b/backends/cloud/dropbox/dropboxstorage.h index b82e38e554..bd9f284f72 100644 --- a/backends/cloud/dropbox/dropboxstorage.h +++ b/backends/cloud/dropbox/dropboxstorage.h @@ -45,6 +45,8 @@ protected: */ virtual uint32 storageIndex(); + virtual bool needsRefreshToken(); + public: /** This constructor uses OAuth code flow to get tokens. */ DropboxStorage(Common::String code); |