From: res Date: Tue, 18 Dec 2007 02:41:46 +0000 (+0000) Subject: Gecko: set a profile path X-Git-Tag: xonotic-v0.1.0preview~2674 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=cda0acf9ec20a121d407156db09aa7257cfd29d4;p=xonotic%2Fdarkplaces.git Gecko: set a profile path git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7817 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/cl_gecko.c b/cl_gecko.c index ba45235b..007ab107 100644 --- a/cl_gecko.c +++ b/cl_gecko.c @@ -133,8 +133,12 @@ clgecko_t * CL_Gecko_CreateBrowser( const char *name ) { // TODO: assert != NULL if( cl_geckoembedding == NULL ) { + char profile_path [MAX_OSPATH]; + OSGK_EmbeddingOptions *options = osgk_embedding_options_create(); osgk_embedding_options_add_search_path( options, "./xulrunner/" ); + dpsnprintf (profile_path, sizeof (profile_path), "%s/xulrunner_profile/", fs_gamedir); + osgk_embedding_options_set_profile_dir( options, profile_path, 0 ); cl_geckoembedding = osgk_embedding_create_with_options( options, NULL ); osgk_release( options );