aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/3ds/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'backends/platform/3ds/main.cpp')
-rw-r--r--backends/platform/3ds/main.cpp10
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();