]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
Made gecko bindings a bit more chatty in developer mode.
authorres <res@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 4 Jan 2008 17:45:53 +0000 (17:45 +0000)
committerres <res@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 4 Jan 2008 17:45:53 +0000 (17:45 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7899 d7cf8633-e32d-0410-b094-e92efae38249

cl_gecko.c

index c4a6f7a5eae383308a1e76487a99211ffe0d688d..7b7b2d8bafbd301ebf965be2b76446bddece15cd 100644 (file)
@@ -38,6 +38,9 @@ static clgecko_t * cl_gecko_findunusedinstance( void ) {
                        return instance;\r
                }\r
        }\r
+       if( developer.integer > 0 ) {\r
+               Con_Printf( "cl_gecko_findunusedinstance: out of geckos\n" );\r
+       }\r
        return NULL;\r
 }\r
 \r
@@ -58,6 +61,10 @@ clgecko_t * CL_Gecko_FindBrowser( const char *name ) {
                }\r
        }\r
 \r
+       if( developer.integer > 0 ) {\r
+               Con_Printf( "CL_Gecko_FindBrowser: No browser named '%s'!\n", name );\r
+       }\r
+\r
        return NULL;\r
 }\r
 \r
@@ -135,8 +142,13 @@ clgecko_t * CL_Gecko_CreateBrowser( const char *name ) {
        if( cl_geckoembedding == NULL ) {\r
                char profile_path [MAX_OSPATH];\r
                OSGK_GeckoResult grc;\r
+               OSGK_EmbeddingOptions *options;\r
+\r
+               if( developer.integer > 0 ) {\r
+                       Con_Printf( "CL_Gecko_CreateBrowser: setting up gecko embedding\n" );\r
+               }\r
 \r
-               OSGK_EmbeddingOptions *options = osgk_embedding_options_create();\r
+               options = osgk_embedding_options_create();\r
                osgk_embedding_options_add_search_path( options, "./xulrunner/" );\r
                dpsnprintf (profile_path, sizeof (profile_path), "%s/xulrunner_profile/", fs_gamedir);\r
                osgk_embedding_options_set_profile_dir( options, profile_path, 0 );\r
@@ -146,6 +158,8 @@ clgecko_t * CL_Gecko_CreateBrowser( const char *name ) {
                if( cl_geckoembedding == NULL ) {\r
                        Con_Printf( "CL_Gecko_CreateBrowser: Couldn't retrieve gecko embedding object (%.8x)!\n", grc );\r
                        return NULL;\r
+               } else if( developer.integer > 0 ) {\r
+                       Con_Printf( "CL_Gecko_CreateBrowser: Embedding set up correctly\n" );\r
                }\r
        }\r
 \r