Autoconnects to a game or starts one, based on the directplay lobby stuff
| 1027 | |
| 1028 | // Autoconnects to a game or starts one, based on the directplay lobby stuff |
| 1029 | bool 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 | } |
no outgoing calls
no test coverage detected