updated the GEOIP API

This commit is contained in:
Borja Ferrer
2006-09-09 11:41:48 +00:00
parent 5286672268
commit b5498818a3
4 changed files with 244 additions and 86 deletions

View File

@ -41,7 +41,7 @@ static cell AMX_NATIVE_CALL amx_geoip_country(AMX *amx, cell *params)
void OnAmxxAttach()
{
char *path = MF_BuildPathname("%s/GeoIP.dat",MF_GetLocalInfo("amxx_datadir", "addons/amxmodx/data"));
gi = GeoIP_open(path, GEOIP_STANDARD);
gi = GeoIP_open(path, GEOIP_MEMORY_CACHE);
if (gi == NULL) {
MF_Log("Failed to instantiate GeoIP!");
return;