diff options
author | Tofu Linden <tofu.linden@lindenlab.com> | 2009-12-09 13:59:51 -0800 |
---|---|---|
committer | Tofu Linden <tofu.linden@lindenlab.com> | 2009-12-09 13:59:51 -0800 |
commit | 204ae550d8b70cdae29f5d4504cc35406682c336 (patch) | |
tree | 2bb3a3ca772ea30ff62818a8a822e46076021f2e /indra | |
parent | 2554a88ec17998c092368e814254c6ad3928d920 (diff) |
blindly fix-up llmediaplugintest.cpp with respect to the recent API change.
Diffstat (limited to 'indra')
-rw-r--r-- | indra/test_apps/llplugintest/llmediaplugintest.cpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/indra/test_apps/llplugintest/llmediaplugintest.cpp b/indra/test_apps/llplugintest/llmediaplugintest.cpp index 27cb52a507..c6df77f9a4 100644 --- a/indra/test_apps/llplugintest/llmediaplugintest.cpp +++ b/indra/test_apps/llplugintest/llmediaplugintest.cpp @@ -1529,7 +1529,17 @@ void LLMediaPluginTest::addMediaPanel( std::string url ) #elif LL_WINDOWS std::string launcher_name( "SLPlugin.exe" ); #endif - media_source->init( launcher_name, plugin_name ); + + // for this test app, use the cwd as the user data path (ugh). + char cwd[ FILENAME_MAX ]; + if (NULL == getcwd( cwd, FILENAME_MAX - 1 )) + { + std::cerr << "Couldn't get cwd - probably too long - failing to init." << llendl; + return; + } + std::string user_data_path = std::string( cwd ) + "/"; + + media_source->init( launcher_name, plugin_name, false, user_data_path ); media_source->setDisableTimeout(mDisableTimeout); // make a new panel and save parameters |