diff options
author | Bastien Bouclet | 2019-11-03 19:14:15 +0100 |
---|---|---|
committer | Bastien Bouclet | 2019-11-03 19:14:15 +0100 |
commit | 036d61cbd62dc7907f4eeb36764bef9f794588f4 (patch) | |
tree | 37379e8b4a8e1c3a52029e8e606ba2b925da4df6 /backends/platform/3ds/main.cpp | |
parent | 2d11974c28b50c5c0a65be71caa4c93be24ab468 (diff) | |
download | scummvm-rg350-036d61cbd62dc7907f4eeb36764bef9f794588f4.tar.gz scummvm-rg350-036d61cbd62dc7907f4eeb36764bef9f794588f4.tar.bz2 scummvm-rg350-036d61cbd62dc7907f4eeb36764bef9f794588f4.zip |
3DS: Implement cloud sync support
Diffstat (limited to 'backends/platform/3ds/main.cpp')
-rw-r--r-- | backends/platform/3ds/main.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/backends/platform/3ds/main.cpp b/backends/platform/3ds/main.cpp index ce549b67c4..18df14b93d 100644 --- a/backends/platform/3ds/main.cpp +++ b/backends/platform/3ds/main.cpp @@ -22,6 +22,7 @@ #include "osystem.h" #include <3ds.h> +#include <malloc.h> int main(int argc, char *argv[]) { // Initialize basic libctru stuff @@ -31,6 +32,12 @@ int main(int argc, char *argv[]) { osSetSpeedupEnable(true); // consoleInit(GFX_TOP, NULL); +#ifdef USE_LIBCURL + const uint32 soc_sharedmem_size = 0x10000; + void *soc_sharedmem = memalign(0x1000, soc_sharedmem_size); + socInit((u32 *)soc_sharedmem, soc_sharedmem_size); +#endif + g_system = new _3DS::OSystem_3DS(); assert(g_system); @@ -51,6 +58,9 @@ int main(int argc, char *argv[]) { gspLcdExit(); } +#ifdef USE_LIBCURL + socExit(); +#endif romfsExit(); cfguExit(); gfxExit(); |