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

Method OnConnect

src/bootstrap_gui.cpp:312–321  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

310 }
311
312 void OnConnect(bool success) override
313 {
314 if (!success) {
315 EM_ASM({ if (window["openttd_bootstrap_failed"]) openttd_bootstrap_failed(); });
316 return;
317 }
318
319 /* Once connected, request the metadata. */
320 _network_content_client.RequestContentList(CONTENT_TYPE_BASE_GRAPHICS);
321 }
322
323 void OnReceiveContentInfo(const ContentInfo &ci) override
324 {

Callers

nothing calls this directly

Calls 1

RequestContentListMethod · 0.80

Tested by

no test coverage detected