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

Function dp_AutoConnect

networking/directplay.cpp:1029–1044  ·  view source on GitHub ↗

Autoconnects to a game or starts one, based on the directplay lobby stuff

Source from the content-addressed store, hash-verified

1027
1028// Autoconnects to a game or starts one, based on the directplay lobby stuff
1029bool dp_AutoConnect() {
1030 if (!Directplay_lobby_launched_game)
1031 return false;
1032
1033 if (lpdplconnection->dwFlags == DPLCONNECTION_CREATESESSION) {
1034 // We are hosting a game
1035 Use_DirectPlay = true;
1036 // What level do we use? what dll? what pps, etc....
1037
1038 } else if (lpdplconnection->dwFlags == DPLCONNECTION_JOINSESSION) {
1039 // We are joining a game
1040 Use_DirectPlay = true;
1041 }
1042
1043 return false;
1044}

Callers 1

ProcessCommandLineFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected