From cda0acf9ec20a121d407156db09aa7257cfd29d4 Mon Sep 17 00:00:00 2001 From: res Date: Tue, 18 Dec 2007 02:41:46 +0000 Subject: [PATCH] Gecko: set a profile path git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7817 d7cf8633-e32d-0410-b094-e92efae38249 --- cl_gecko.c | 4 ++++ 1 file changed, 4 insertions(+) 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 ); -- 2.39.2