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
}\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
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
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