1.1 --- a/core-legacy/CSmmAPI.cpp Sun Nov 23 21:21:49 2008 -0600
1.2 +++ b/core-legacy/CSmmAPI.cpp Sun Nov 23 21:22:04 2008 -0600
1.3 @@ -460,11 +460,12 @@
1.4 }
1.5 }
1.6
1.7 - const char *usepath = g_SmmPath.c_str();
1.8 - if (UTIL_Relatize(rel_path, sizeof(rel_path), engine_file, g_SmmPath.c_str()))
1.9 - {
1.10 + char our_path[PATH_SIZE];
1.11 + GetFileOfAddress((void*)LoadAsGameDLL, our_path, sizeof(our_path));
1.12 +
1.13 + const char *usepath = our_path;
1.14 + if (UTIL_Relatize(rel_path, sizeof(rel_path), engine_file, our_path))
1.15 usepath = rel_path;
1.16 - }
1.17
1.18 char command[PATH_SIZE * 2];
1.19 g_VspListener.SetLoadable(true);
1.20 @@ -475,7 +476,7 @@
1.21 void CSmmAPI::EnableVSPListener()
1.22 {
1.23 /* If GameInit already passed and we're not already enabled or loaded, go ahead and LoadAsVSP load */
1.24 - if (bGameInit && !m_VSP && !g_VspListener.IsLoaded() && !g_bIsBridgedAsVsp)
1.25 + if (g_bGameInit && !m_VSP && !g_VspListener.IsLoaded() && !g_bIsBridgedAsVsp)
1.26 {
1.27 LoadAsVSP();
1.28 }