| 23 | } |
| 24 | |
| 25 | cc_result Process_StartOpen(const cc_string* args) { |
| 26 | static const cc_string https_protocol = String_FromConst("https://"); |
| 27 | char str[NATIVE_STR_LEN]; |
| 28 | String_EncodeUtf8(str, args); |
| 29 | |
| 30 | cc_bool https = String_CaselessStarts(args, &https_protocol); |
| 31 | const char* mime = https ? "application/x-vnd.Be.URL.https" : "application/x-vnd.Be.URL.http"; |
| 32 | |
| 33 | char* argv[] = { str, NULL }; |
| 34 | return be_roster->Launch(mime, 1, argv); |
| 35 | } |
| 36 | |
| 37 | |
| 38 | /*########################################################################################################################* |
nothing calls this directly
no test coverage detected