Cloud Support

Alexander Tkachev <[email protected]>
Newsgroups gmane.games.devel.scummvm
Message-ID <[email protected]>
Hi everyone,

Eugene asked me to write a short note for porters. We've merged my PR recently, which adds two features in ScummVM: Cloud support and local webserver.

The first one needs libcurl, which is detected using curl-config in configure. If it is found, USE_LIBCURL is defined and backends/cloud files are used.

The second one needs SDL_net and USE_SDL_NET is defined if it's found. Local webserver could be found within backends/networking/sdl_net.

There are some interactive tests in testbed, mostly for Cloud.

There are also some minor additional features, which make user experience a bit better. Those are URL opening and Connection::isLimited() function. Cloud works fine without these, but you can implement these if you want and it's available for the platform. There is an interactive test for urlOpen() in testbed too.

Finally, I've updated OSD to show Cloud sync icon. But I didn't update it in some backends, and thus buildbot fails to build these. I might have time to fix these soon, but I won't be able to test whether it works as it should.

Also, as we haven't set up official ScummVM Cloud apps yet, you'd have to register your own test apps in order to test how Cloud API works. App's KEY/SECRET should be added to the [cloud] section of your scummvm.ini file:

DROPBOX_KEY=...

DROPBOX_SECRET=...

ONEDRIVE_KEY=...

ONEDRIVE_SECRET=...

GOOGLE_DRIVE_KEY=...

GOOGLE_DRIVE_SECRET=...

BOX_KEY=...

BOX_SECRET=...

As Cloud feature works with these providers similarly, you don't have to register all four apps. I'd recommend Dropbox, as it's really simple to create an app there. Short links to scummvm.org are redirecting to my app, so instead of typing those you'd have to make a link on your own. For example, this link template could be used for Dropbox app:

https://www.dropbox.com/1/oauth2/authorize?response_type=code&redirect_uri=https://www.scummvm.org/c/code&client_id=<DROPBOX_KEY>

That link redirects to https://www.scummvm.org/c/code. If you want to test auth using local webserver, you should put http://localhost:12345/ in redirect_uri instead.

These redirect_uris should be allowed in application settings on developer's page.

— Alexander

_______________________________________________
Scummvm-devel mailing list
[email protected]
http://lists.scummvm.org/listinfo/scummvm-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.