sourcemm/CSmmAPI.cpp
changeset 338 3f8caf9ea756
parent 334 f45f8e4c4bd0
child 345 600e30820ea7
     1.1 --- a/sourcemm/CSmmAPI.cpp	Wed May 16 07:26:10 2007 +0000
     1.2 +++ b/sourcemm/CSmmAPI.cpp	Tue May 29 21:53:58 2007 +0000
     1.3 @@ -456,6 +456,7 @@
     1.4  {
     1.5  	size_t len;
     1.6  	char engine_file[PATH_SIZE];
     1.7 +	char engine_path[PATH_SIZE];
     1.8  	char rel_path[PATH_SIZE * 2];
     1.9  
    1.10  	GetFileOfAddress(g_Engine.engine, engine_file, sizeof(engine_file));
    1.11 @@ -471,9 +472,10 @@
    1.12  			break;
    1.13  		}
    1.14  	}
    1.15 +	abspath(engine_path, engine_file);
    1.16  
    1.17  	const char *usepath = g_SmmPath.c_str();
    1.18 -	if (UTIL_Relatize(rel_path, sizeof(rel_path), engine_file, g_SmmPath.c_str()))
    1.19 +	if (UTIL_Relatize(rel_path, sizeof(rel_path), engine_path, g_SmmPath.c_str()))
    1.20  	{
    1.21  		usepath = rel_path;
    1.22  	}