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

@ -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") ) );
}
}

View File

@ -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();

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_*

View File

@ -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

View File

@ -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") ) );
}
}