Commit 7c4d20cf0494cca7f3cdefaa43156b7ba82c1880

Ivan Epifanov 2021-02-12T23:57:43

Fix for dolcesdk

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
diff --git a/src/misc/vita/SDL_sysurl.c b/src/misc/vita/SDL_sysurl.c
index 42f6c45..788480e 100644
--- a/src/misc/vita/SDL_sysurl.c
+++ b/src/misc/vita/SDL_sysurl.c
@@ -34,8 +34,13 @@ SDL_SYS_OpenURL(const char *url)
     SDL_zero(boot_param);
     sceAppUtilInit(&init_param, &boot_param);
     SDL_zero(browser_param);
+#if DOLCEVITA
+    browser_param.wbstr = (SceChar8*)url;
+    browser_param.wbstrLength = strlen(url);
+#else
     browser_param.str = url;
     browser_param.strlen = strlen(url);
+#endif
     sceAppUtilLaunchWebBrowser(&browser_param);
     return 0;
 }