MCPcopy Create free account
hub / github.com/ddnet/ddnet / ViewLinkImpl

Function ViewLinkImpl

src/engine/client/client.cpp:5219–5236  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5217}
5218
5219static bool ViewLinkImpl(const char *pLink)
5220{
5221#if defined(CONF_PLATFORM_ANDROID)
5222 if(SDL_OpenURL(pLink) == 0)
5223 {
5224 return true;
5225 }
5226 log_error("client", "Failed to open link '%s' (%s)", pLink, SDL_GetError());
5227 return false;
5228#else
5229 if(os_open_link(pLink))
5230 {
5231 return true;
5232 }
5233 log_error("client", "Failed to open link '%s'", pLink);
5234 return false;
5235#endif
5236}
5237
5238bool CClient::ViewLink(const char *pLink)
5239{

Callers 2

ViewLinkMethod · 0.85
ViewFileMethod · 0.85

Calls 1

os_open_linkFunction · 0.85

Tested by

no test coverage detected