| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -36,10 +36,11 @@ | |||
| 36 | 36 | // Generates a symlink without the colon symbol (":"). | |
| 37 | 37 | // | |
| 38 | 38 | // Thanks to Hedgehog for this! | |
| 39 | - // http://forums.sourcepython.com/showthread.php?581-Server-crash-on-SP-loading&p=2967&viewfull=1#post2967 | ||
| 39 | + // http://forums.sourcepython.com/viewtopic.php?p=2967#p2967 | ||
| 40 | 40 | //----------------------------------------------------------------------------- | |
| 41 | 41 | inline void _GenerateSymlink(char* path) | |
| 42 | 42 | { | |
| 43 | + DevMsg(1, MSG_PREFIX "Generating symlink: %s\n", path); | ||
| 43 | 44 | #if __linux__ | |
| 44 | 45 | int pathLen = V_strlen(path) + 1; | |
| 45 | 46 | char symlinkOrigin[pathLen]; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -77,6 +77,7 @@ CSourcePython::~CSourcePython() | |||
| 77 | 77 | //--------------------------------------------------------------------------------- | |
| 78 | 78 | void* SPLoadLibrary( IVEngineServer* engine, const char* libraryPath ) | |
| 79 | 79 | { | |
| 80 | + DevMsg(1, MSG_PREFIX "Loading library: %s\n", libraryPath); | ||
| 80 | 81 | char szFullPath[MAX_PATH_LENGTH]; | |
| 81 | 82 | char szGamePath[MAX_PATH_LENGTH]; | |
| 82 | 83 | char szError[MAX_PATH_LENGTH]; | |
@@ -178,7 +179,9 @@ bool CSourcePython::Load( CreateInterfaceFn interfaceFactory, CreateInterfaceFn | |||
| 178 | 179 | // ------------------------------------------------------------------ | |
| 179 | 180 | // Get the game directory. | |
| 180 | 181 | // ------------------------------------------------------------------ | |
| 182 | + DevMsg(1, MSG_PREFIX "Retrieving game directory...\n"); | ||
| 181 | 183 | engine->GetGameDir(szGameDir, MAX_PATH_LENGTH); | |
| 184 | + DevMsg(1, MSG_PREFIX "Game directory: %s\n", szGameDir); | ||
| 182 | 185 | GenerateSymlink(szGameDir); | |
| 183 | 186 | ||
| 184 | 187 | // ------------------------------------------------------------------ | |
@@ -213,6 +216,10 @@ bool CSourcePython::Load( CreateInterfaceFn interfaceFactory, CreateInterfaceFn | |||
| 213 | 216 | #else | |
| 214 | 217 | #error Unsupported platform. | |
| 215 | 218 | #endif | |
| 219 | + if (!pFunc) { | ||
| 220 | + Msg(MSG_PREFIX "Failed to retrieve %s.\n", CREATEINTERFACE_PROCNAME); | ||
| 221 | + return false; | ||
| 222 | + } | ||
| 216 | 223 | ||
| 217 | 224 | m_pCorePlugin = static_cast<IServerPluginCallbacks*>(pFunc(INTERFACEVERSION_ISERVERPLUGINCALLBACKS, NULL)); | |
| 218 | 225 | if( !m_pCorePlugin ) { | |
| Back | FazBrowse Home | New Git URL |
0 commit comments