MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / dp_ShutdownDirectPlay

Function dp_ShutdownDirectPlay

networking/directplay.cpp:778–800  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

776}
777
778void dp_ShutdownDirectPlay() {
779 int i;
780 mprintf(0, "Freeing DirectPlay memory\n");
781 for (i = 0; i < MAX_DIRECTPLAY_CONNECTIONS; i++) {
782 if (dpconns[i].conn != NULL) {
783 mem_free(dpconns[i].conn);
784 dpconns[i].conn = NULL;
785 dpconns[i].name[0] = NULL;
786 }
787 }
788 if (lpdplconnection)
789 mem_free(lpdplconnection);
790 if (lpAddress)
791 mem_free(lpAddress);
792 lpAddress = NULL;
793 lpdplconnection = NULL;
794 // Delete any previous directplay instance
795 mprintf(0, "Releasing DirectPlay COM object (lpDirectPlay4A)\n");
796 // if(lpDirectPlay4A)
797 // lpDirectPlay4A->Release();
798 // lpDirectPlay4A = NULL;
799 mprintf(0, "Done shutting down DirectPlay.\n");
800}
801
802// ---------------------------------------------------------------------------
803// EnumModemAddress

Callers 1

CloseNetworkingFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected