MCPcopy Create free account
hub / github.com/diasurgical/devilution / multi_event_handler

Function multi_event_handler

Source/multi.cpp:571–587  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

569}
570
571void multi_event_handler(BOOL add)
572{
573 DWORD i;
574 BOOL(STORMAPI * fn)
575 (int, SEVTHANDLER);
576
577 if (add)
578 fn = SNetRegisterEventHandler;
579 else
580 fn = SNetUnregisterEventHandler;
581
582 for (i = 0; i < 3; i++) {
583 if (!fn(event_types[i], multi_handle_events) && add) {
584 app_fatal("SNetRegisterEventHandler:\n%s", TraceLastError());
585 }
586 }
587}
588
589void multi_handle_events(_SNETEVENT *pEvt)
590{

Callers 2

NetCloseFunction · 0.85
multi_init_multiFunction · 0.85

Calls 1

app_fatalFunction · 0.85

Tested by

no test coverage detected