sourcemm/sourcemm.cpp
changeset 215 e3b5d251a9dd
parent 205 08964c08d894
child 216 baece18f381f
     1.1 --- a/sourcemm/sourcemm.cpp	Tue Jun 27 22:39:42 2006 +0000
     1.2 +++ b/sourcemm/sourcemm.cpp	Wed Jun 28 18:33:00 2006 +0000
     1.3 @@ -314,10 +314,13 @@
     1.4  				size_t ptr_len = strlen(ptr);
     1.5  				if (ptr[ptr_len] == '/' || ptr[ptr_len] == '\\')
     1.6  					ptr[--ptr_len] = '\0';
     1.7 +
     1.8  				//no need to append "bin"
     1.9  				if (gamebin)
    1.10  				{
    1.11  					g_SmmAPI.PathFormat(temp_path, sizeof(temp_path)-1, "%s/%s/%s", lptr, ptr, SERVER_DLL);
    1.12 +				} else if (ptr[0] == NULL) {
    1.13 +					g_SmmAPI.PathFormat(temp_path, sizeof(temp_path)-1, "%s/%s/%s", lptr, "bin", SERVER_DLL);
    1.14  				} else {
    1.15  					g_SmmAPI.PathFormat(temp_path, sizeof(temp_path)-1, "%s/%s/%s/%s", lptr, ptr, "bin", SERVER_DLL);
    1.16  				}
    1.17 @@ -361,6 +364,7 @@
    1.18  					pInfo->pGameDLL = NULL;
    1.19  					pInfo->pGameClients = (IServerGameClients *)((fn)(INTERFACEVERSION_SERVERGAMECLIENTS, NULL));
    1.20  					gamedll_list.push_back(pInfo);
    1.21 +					break;
    1.22  				}
    1.23  			}
    1.24  		}
    1.25 @@ -374,7 +378,7 @@
    1.26  
    1.27  		if (strncmp(iface, str, len) == 0)
    1.28  		{
    1.29 -			//This is the interface we want!  Right now we support versions 3 and 4.
    1.30 +			//This is the interface we want!  Right now we support versions 3 through 5.
    1.31  			int version = atoi(&(iface[len]));
    1.32  			int sizeTooBig = 0;	//rename this to sizeWrong in the future!
    1.33  			if (version < MIN_GAMEDLL_VERSION || version > MAX_GAMEDLL_VERSION)