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

Method ViewLink

src/engine/client/client.cpp:5238–5246  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5236}
5237
5238bool CClient::ViewLink(const char *pLink)
5239{
5240 if(!str_startswith(pLink, "https://"))
5241 {
5242 log_error("client", "Failed to open link '%s': only https-links are allowed", pLink);
5243 return false;
5244 }
5245 return ViewLinkImpl(pLink);
5246}
5247
5248bool CClient::ViewFile(const char *pFilename)
5249{

Callers 4

RenderStartMenuMethod · 0.80
RenderSettingsTeeMethod · 0.80
PopupConfirmOpenWikiMethod · 0.80
ShowHelpMethod · 0.80

Calls 2

str_startswithFunction · 0.85
ViewLinkImplFunction · 0.85

Tested by

no test coverage detected