last blind fixup for llmediaplugintest.

meow-7.2.2
Tofu Linden 2009-12-09 14:55:45 -08:00
parent 9b0825be5c
commit 9abe779c8a
1 changed files with 15 additions and 1 deletions

View File

@ -1766,7 +1766,21 @@ void LLMediaPluginTest::replaceMediaPanel( mediaPanel* panel, 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).
#if LL_WINDOWS
std::string user_data_path = ".\\";
#else
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 ) + "/";
#endif
media_source->init( launcher_name, plugin_name, false, user_data_path );
media_source->setDisableTimeout(mDisableTimeout);
// make a new panel and save parameters