@@ -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 ) {
0 commit comments