core/sourcemod.cpp
changeset 345 df0b05b4f50d
parent 340 c39c68f4874c
child 347 aa2dfce8bff6
     1.1 --- a/core/sourcemod.cpp	Thu Jan 25 04:36:48 2007 +0000
     1.2 +++ b/core/sourcemod.cpp	Thu Jan 25 04:37:23 2007 +0000
     1.3 @@ -48,6 +48,7 @@
     1.4  {
     1.5  	g_BaseDir.assign(g_SMAPI->GetBaseDir());
     1.6  	g_LibSys.PathFormat(m_SMBaseDir, sizeof(m_SMBaseDir), "%s/addons/sourcemod", g_BaseDir.c_str());
     1.7 +	g_LibSys.PathFormat(m_SMRelDir, sizeof(m_SMRelDir), "addons/sourcemod");
     1.8  
     1.9  	/* Attempt to load the JIT! */
    1.10  	char file[PLATFORM_MAX_PATH];
    1.11 @@ -229,6 +230,8 @@
    1.12  		base = GetModPath();
    1.13  	} else if (type == Path_SM) {
    1.14  		base = GetSourceModPath();
    1.15 +	} else if (type == Path_SM_Rel) {
    1.16 +		base = m_SMRelDir;
    1.17  	}
    1.18  
    1.19  	if (base)