diff --git a/dlls/csstats2/csstats/meta_api.cpp b/dlls/csstats2/csstats/meta_api.cpp index a34ee0b1..6efa1cca 100755 --- a/dlls/csstats2/csstats/meta_api.cpp +++ b/dlls/csstats2/csstats/meta_api.cpp @@ -289,7 +289,7 @@ void OnMetaAttach() { void OnAmxxAttach(){ MF_AddNatives(stats_Natives); - const char* path = get_localinfo("csstats_score"); + const char* path = get_localinfo("csstats_score","addons/amxx/data/csstats.amxx"); if ( path && *path ) { char error[128]; @@ -299,7 +299,7 @@ void OnAmxxAttach(){ if ( !g_rank.begin() ) { g_rank.loadRank( MF_BuildPathname("%s", - get_localinfo("csstats") ) ); + get_localinfo("csstats","addons/amxx/data/csstats.dat") ) ); } } diff --git a/dlls/dod2/dodx/moduleconfig.cpp b/dlls/dod2/dodx/moduleconfig.cpp index 98917a6a..25603bbb 100755 --- a/dlls/dod2/dodx/moduleconfig.cpp +++ b/dlls/dod2/dodx/moduleconfig.cpp @@ -372,7 +372,7 @@ void OnAmxxAttach() { MF_AddNatives( stats_Natives ); MF_AddNatives( base_Natives ); - const char* path = get_localinfo("dodstats_score"/*,"addons/amxx/dodstats.amx"*/); + const char* path = get_localinfo("dodstats_score","addons/amxx/data/dodstats.amxx"); if ( path && *path ) { char error[128]; g_rank.loadCalc( MF_BuildPathname("%s",path) , error ); @@ -380,7 +380,7 @@ void OnAmxxAttach() { if ( !g_rank.begin() ){ g_rank.loadRank( MF_BuildPathname("%s", - get_localinfo("dodstats"/*,"addons/amxx/dodstats.dat"*/) ) ); + get_localinfo("dodstats","addons/amxx/data/dodstats.dat") ) ); } g_map.Init(); diff --git a/dlls/geoip/geoip_amxx.cpp b/dlls/geoip/geoip_amxx.cpp index 0c498dbd..9674d625 100755 --- a/dlls/geoip/geoip_amxx.cpp +++ b/dlls/geoip/geoip_amxx.cpp @@ -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!"); diff --git a/dlls/geoip/moduleconfig.h b/dlls/geoip/moduleconfig.h index 4667b58c..624a7008 100755 --- a/dlls/geoip/moduleconfig.h +++ b/dlls/geoip/moduleconfig.h @@ -19,7 +19,7 @@ #endif // __DATE__ // metamod plugin? -// #define USE_METAMOD +#define USE_METAMOD // - AMXX Init functions // Also consider using FN_META_* diff --git a/dlls/tfc/tfcx/moduleconfig.cpp b/dlls/tfc/tfcx/moduleconfig.cpp index 51be8f4a..bbc30790 100755 --- a/dlls/tfc/tfcx/moduleconfig.cpp +++ b/dlls/tfc/tfcx/moduleconfig.cpp @@ -326,7 +326,7 @@ void OnAmxxAttach() { MF_AddNatives( stats_Natives ); MF_AddNatives( base_Natives ); - const char* path = get_localinfo("tfcstats_score"); + const char* path = get_localinfo("tfcstats_score","addons/amxx/data/tfcstats.amxx"); if ( path && *path ) { char error[128]; @@ -334,7 +334,7 @@ void OnAmxxAttach() { } if ( !g_rank.begin() ) { - g_rank.loadRank( MF_BuildPathname("%s",get_localinfo("tfcstats") ) ); + g_rank.loadRank( MF_BuildPathname("%s",get_localinfo("tfcstats","addons/amxx/data/tfcstats.dat") ) ); } // set default PrivateData offsets diff --git a/dlls/ts/tsx/moduleconfig.cpp b/dlls/ts/tsx/moduleconfig.cpp index 4b9ae50c..08596727 100755 --- a/dlls/ts/tsx/moduleconfig.cpp +++ b/dlls/ts/tsx/moduleconfig.cpp @@ -295,7 +295,7 @@ void OnAmxxAttach() { MF_AddNatives( stats_Natives ); MF_AddNatives( base_Natives ); - const char* path = get_localinfo("tsstats_score"); + const char* path = get_localinfo("tsstats_score","addons/amxx/data/tsstats.amxx"); if ( path && *path ) { char error[128]; @@ -303,7 +303,7 @@ void OnAmxxAttach() { } if ( !g_rank.begin() ) { - g_rank.loadRank( MF_BuildPathname("%s",get_localinfo("tsstats") ) ); + g_rank.loadRank( MF_BuildPathname("%s",get_localinfo("tsstats","addons/amxx/data/tsstats.dat") ) ); } }