2006-02-05 16:44:38 +01:00
|
|
|
#include <string.h>
|
2006-03-05 02:28:19 +01:00
|
|
|
#include "modhelper.h"
|
2006-02-05 16:44:38 +01:00
|
|
|
#include "mod_gamespy1.h"
|
|
|
|
|
|
|
|
static struct game_ports port_arr[] = {
|
|
|
|
{ 7777, 7788, ID_UT }, // ut(5), ut2k3(14), rune(18), ut2k4(33), aao(15)
|
|
|
|
{ 22000, 22010, ID_BF1942 }, // bf1942(16)
|
|
|
|
{ 23000, 23010, ID_BFV }, // bfv(35)
|
|
|
|
{ 26001, 26011, ID_IGI2 }, // igi2(19)
|
|
|
|
{ 27888, 27888, ID_AVP2 }, // avp2(17)
|
|
|
|
{ 0,0,0 }
|
|
|
|
};
|
|
|
|
|
|
|
|
static const char scanmsg[] = "\\status\\";
|
|
|
|
|
|
|
|
void ModGameSpy1::scan(MultiSock* msock)
|
|
|
|
{
|
2006-03-05 02:28:19 +01:00
|
|
|
ModHelper::send(msock, port_arr, scanmsg, strlen(scanmsg));
|
2006-02-05 16:44:38 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
int ModGameSpy1::parse(NetPkt* pkt, GameList* slist)
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|