aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Bouclet2019-11-03 19:14:15 +0100
committerBastien Bouclet2019-11-03 19:14:15 +0100
commit0b74f984de1847e7b76e83592486fc7154f78c85 (patch)
tree174280684cd49d86daf49967010319c8ff4fc21e
parent036d61cbd62dc7907f4eeb36764bef9f794588f4 (diff)
downloadscummvm-rg350-0b74f984de1847e7b76e83592486fc7154f78c85.tar.gz
scummvm-rg350-0b74f984de1847e7b76e83592486fc7154f78c85.tar.bz2
scummvm-rg350-0b74f984de1847e7b76e83592486fc7154f78c85.zip
PS3: Implement the cloud synchronization features
-rw-r--r--backends/platform/sdl/ps3/ps3-main.cpp11
-rw-r--r--backends/platform/sdl/ps3/ps3.mk3
-rw-r--r--dists/ps3/readme-ps3.md4
3 files changed, 18 insertions, 0 deletions
diff --git a/backends/platform/sdl/ps3/ps3-main.cpp b/backends/platform/sdl/ps3/ps3-main.cpp
index 2777497293..23dc740202 100644
--- a/backends/platform/sdl/ps3/ps3-main.cpp
+++ b/backends/platform/sdl/ps3/ps3-main.cpp
@@ -20,14 +20,21 @@
*
*/
+#define FORBIDDEN_SYMBOL_ALLOW_ALL
#include "common/scummsys.h"
#include "backends/platform/sdl/ps3/ps3.h"
#include "backends/plugins/sdl/sdl-provider.h"
#include "base/main.h"
+#include <net/net.h>
+
int main(int argc, char *argv[]) {
+#ifdef USE_LIBCURL
+ netInitialize();
+#endif
+
// Create our OSystem instance
g_system = new OSystem_PS3();
assert(g_system);
@@ -45,5 +52,9 @@ int main(int argc, char *argv[]) {
// Free OSystem
g_system->destroy();
+#ifdef USE_LIBCURL
+ netDeinitialize();
+#endif
+
return res;
}
diff --git a/backends/platform/sdl/ps3/ps3.mk b/backends/platform/sdl/ps3/ps3.mk
index d66028103a..94885d270c 100644
--- a/backends/platform/sdl/ps3/ps3.mk
+++ b/backends/platform/sdl/ps3/ps3.mk
@@ -15,6 +15,9 @@ endif
ifdef DIST_FILES_VKEYBD
cp $(DIST_FILES_VKEYBD) ps3pkg/USRDIR/data/
endif
+ifdef DIST_PS3_EXTRA_FILES
+ @cp -a $(DIST_PS3_EXTRA_FILES) ps3pkg/USRDIR/data/
+endif
cp $(DIST_FILES_DOCS) ps3pkg/USRDIR/doc/
cp $(srcdir)/dists/ps3/readme-ps3.md ps3pkg/USRDIR/doc/
cp $(srcdir)/dists/ps3/ICON0.PNG ps3pkg/
diff --git a/dists/ps3/readme-ps3.md b/dists/ps3/readme-ps3.md
index 698c9259cd..e4d39df450 100644
--- a/dists/ps3/readme-ps3.md
+++ b/dists/ps3/readme-ps3.md
@@ -51,6 +51,10 @@ The dependencies needed to build it are :
- SDL from https://bitbucket.org/bgK/sdl_psl1ght
- ScummVM from https://github.com/scummvm/scummvm
+ScummVM doesn't provide the CA certificates bundle required by the cloud synchronization features.
+It can be downloaded from the curl website: https://curl.haxx.se/ca/cacert.pem, and packaged in the binary using:
+```$ export DIST_PS3_EXTRA_FILES=/path/to/cacert.pem```
+
Once all the dependencies are correctly setup, an installable package can be obtained from source by issuing the following command :
./configure --host=ps3 && make ps3pkg