MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / OpenBrowser

Function OpenBrowser

src/openttd.cpp:365–371  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

363}
364
365void OpenBrowser(const std::string &url)
366{
367 /* Make sure we only accept urls that are sure to open a browser. */
368 if (url.starts_with("http://") || url.starts_with("https://")) {
369 OSOpenBrowser(url);
370 }
371}
372
373/** Callback structure of statements to be executed after the NewGRF scan. */
374struct AfterNewGRFScan : NewGRFScanCallback {

Callers 9

OnClickMethod · 0.85
OnHyperlinkClickMethod · 0.85
OnClickMethod · 0.85
OnClickMethod · 0.85
OnClickMethod · 0.85
OpenExternalSearchMethod · 0.85
OnClickMethod · 0.85
OnClickMethod · 0.85
OnClickMethod · 0.85

Calls 1

OSOpenBrowserFunction · 0.50

Tested by

no test coverage detected