MCPcopy Create free account
hub / github.com/ClassiCube/ClassiCube / Process_StartOpen

Function Process_StartOpen

src/Platform_BeOS.cpp:25–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23}
24
25cc_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/*########################################################################################################################*

Callers

nothing calls this directly

Calls 2

String_EncodeUtf8Function · 0.85
String_CaselessStartsFunction · 0.85

Tested by

no test coverage detected