Write proper information in case of the error if client game or client gui module is missing

Write proper information in case of the error if client game or client gui module is missing

diff --git a/src/engine/client/clientGUI.cpp b/src/engine/client/clientGUI.cpp
index 0bbf138..3707408 100644
--- a/src/engine/client/clientGUI.cpp
+++ b/src/engine/client/clientGUI.cpp
@@ -328,14 +328,14 @@ void idClientGUISystemLocal::InitGUI( void )
     uivm = idsystem->LoadDll( "gui" );
     if( !uivm )
     {
-        Com_Error( ERR_DROP, "vm on gui failed" );
+        Com_Error( ERR_DROP, "cannot load client gui dynamic module.\n" );
     }
     
     // Load in the entry point.
     dllEntry = ( idUserInterfaceManager * ( QDECL* )( guiImports_t* ) )idsystem->GetProcAddress( uivm, "dllEntry" );
     if( !dllEntry )
     {
-        Com_Error( ERR_DROP, "cgdllEntry on cgame failed" );
+        Com_Error( ERR_DROP, "error loading entry point on client gui.\n" );
     }
     
     // Create the export table.
diff --git a/src/engine/client/clientGame.cpp b/src/engine/client/clientGame.cpp
index f8f0206..1e5a247 100644
--- a/src/engine/client/clientGame.cpp
+++ b/src/engine/client/clientGame.cpp
@@ -892,14 +892,14 @@ void idClientGameSystemLocal::InitCGame( void )
     cgvm = idsystem->LoadDll( "cgame" );
     if( !cgvm )
     {
-        Com_Error( ERR_DROP, "cgvm on cgame failed" );
+        Com_Error( ERR_DROP, "cannot load cgame dynamic module.\n" );
     }
     
     // Load in the entry point.
     cgdllEntry = ( idCGame * ( QDECL* )( cgameImports_t* ) )idsystem->GetProcAddress( cgvm, "dllEntry" );
     if( !cgdllEntry )
     {
-        Com_Error( ERR_DROP, "cgdllEntry on clientGame failed" );
+        Com_Error( ERR_DROP, "error loading entry point on clientGame.\n" );
     }
     
     // Create the export table.

GitHub
sha: 3356f00c

© GrangerHub. All rights reserved. Tremulous © Darklegion Development. Granger by err-overflow and MoP licensed CC-BY-SA-2.5