]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
Gecko: set a profile path
authorres <res@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 18 Dec 2007 02:41:46 +0000 (02:41 +0000)
committerres <res@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 18 Dec 2007 02:41:46 +0000 (02:41 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7817 d7cf8633-e32d-0410-b094-e92efae38249

cl_gecko.c

index ba45235b55664c1887c7d249df572db0afc8717a..007ab107198b2bcf90ad2ed8976c7898a4702442 100644 (file)
@@ -133,8 +133,12 @@ clgecko_t * CL_Gecko_CreateBrowser( const char *name ) {
        // TODO: assert != NULL\r
        \r
        if( cl_geckoembedding == NULL ) {\r
+               char profile_path [MAX_OSPATH];\r
+\r
                OSGK_EmbeddingOptions *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
                cl_geckoembedding = osgk_embedding_create_with_options( options, NULL );\r
                osgk_release( options );\r
                \r