added default file pathes

This commit is contained in:
Felix Geyer
2004-08-20 13:20:53 +00:00
parent 40b5e7e817
commit f512ff25d8
6 changed files with 10 additions and 10 deletions

View File

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

View File

@ -19,7 +19,7 @@
#endif // __DATE__
// metamod plugin?
// #define USE_METAMOD
#define USE_METAMOD
// - AMXX Init functions
// Also consider using FN_META_*