|
|
@ -77,10 +77,11 @@ networkmenu_options ()
|
|
|
|
{1, "Game Name:"},
|
|
|
|
{1, "Game Name:"},
|
|
|
|
{1, "Max Players:"},
|
|
|
|
{1, "Max Players:"},
|
|
|
|
{2, "Network"},
|
|
|
|
{2, "Network"},
|
|
|
|
{3, "Notify Masterserver"},
|
|
|
|
{3, "UDP Port"},
|
|
|
|
{4, "Masterserver"},
|
|
|
|
{4, "Notify Masterserver"},
|
|
|
|
{5, "Behind a Firewall"},
|
|
|
|
{5, "Masterserver"},
|
|
|
|
{6, "Return To Multiplayer Menu"},
|
|
|
|
{6, "Behind a Firewall"},
|
|
|
|
|
|
|
|
{7, "Return To Multiplayer Menu"},
|
|
|
|
{-1, ""}
|
|
|
|
{-1, ""}
|
|
|
|
};
|
|
|
|
};
|
|
|
|
#ifdef _WIN32
|
|
|
|
#ifdef _WIN32
|
|
|
@ -96,17 +97,19 @@ networkmenu_options ()
|
|
|
|
else
|
|
|
|
else
|
|
|
|
sprintf (menu[2].text, "Network: IPv6");
|
|
|
|
sprintf (menu[2].text, "Network: IPv6");
|
|
|
|
|
|
|
|
|
|
|
|
if (bman.firewall)
|
|
|
|
sprintf (menu[3].text, "UDP Port: %s", bman.port);
|
|
|
|
sprintf (menu[5].text, "Firewall: ON");
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
sprintf (menu[5].text, "Firewall: OFF");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (bman.notifygamemaster)
|
|
|
|
if (bman.notifygamemaster)
|
|
|
|
sprintf (menu[3].text, "Notify MasterServer: Yes");
|
|
|
|
sprintf (menu[4].text, "Notify MasterServer: Yes");
|
|
|
|
else
|
|
|
|
else
|
|
|
|
sprintf (menu[3].text, "Notify MasterServer: No");
|
|
|
|
sprintf (menu[4].text, "Notify MasterServer: No");
|
|
|
|
|
|
|
|
|
|
|
|
sprintf (menu[4].text, "MasterServer %s", bman.gamemaster);
|
|
|
|
sprintf (menu[5].text, "MasterServer %s", bman.gamemaster);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (bman.firewall)
|
|
|
|
|
|
|
|
sprintf (menu[6].text, "Firewall: ON");
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
sprintf (menu[6].text, "Firewall: OFF");
|
|
|
|
|
|
|
|
|
|
|
|
menuselect = menu_loop ("Multiplayer Options", menu, menuselect);
|
|
|
|
menuselect = menu_loop ("Multiplayer Options", menu, menuselect);
|
|
|
|
|
|
|
|
|
|
|
@ -135,26 +138,31 @@ networkmenu_options ()
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
|
|
case (3): // Change the Notification
|
|
|
|
case (3): // UDP Port
|
|
|
|
|
|
|
|
menu_get_text ("UDP Port", bman.port,
|
|
|
|
|
|
|
|
LEN_PORT + 1);
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
case (4): // Change the Notification
|
|
|
|
if (bman.notifygamemaster)
|
|
|
|
if (bman.notifygamemaster)
|
|
|
|
bman.notifygamemaster = 0;
|
|
|
|
bman.notifygamemaster = 0;
|
|
|
|
else
|
|
|
|
else
|
|
|
|
bman.notifygamemaster = 1;
|
|
|
|
bman.notifygamemaster = 1;
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
|
|
case (4): // Masterserver Address
|
|
|
|
case (5): // Masterserver Address
|
|
|
|
menu_get_text ("Address of the MasterServer", bman.gamemaster,
|
|
|
|
menu_get_text ("Address of the MasterServer", bman.gamemaster,
|
|
|
|
LEN_SERVERNAME + LEN_PORT + 2);
|
|
|
|
LEN_SERVERNAME + LEN_PORT + 2);
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
|
|
case (5): // Firewall Option
|
|
|
|
case (6): // Firewall Option
|
|
|
|
if (bman.firewall)
|
|
|
|
if (bman.firewall)
|
|
|
|
bman.firewall = 0;
|
|
|
|
bman.firewall = 0;
|
|
|
|
else
|
|
|
|
else
|
|
|
|
bman.firewall = 1;
|
|
|
|
bman.firewall = 1;
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
|
|
case (6):
|
|
|
|
case (7):
|
|
|
|
menuselect = -1;
|
|
|
|
menuselect = -1;
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|