Commit 0e673e1f authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

EffectsEngine: Blind fix for Win32 effects loading.

parent 72b3e0dc
......@@ -140,7 +140,16 @@ EffectsEngine::loadEffects()
#elif defined ( Q_OS_WIN32 )
TCHAR appDir[128];
if ( GetModuleFileName( NULL, appDir, 128 ) > 0 )
{
wchat_t *pos = wcsrchr( appDir, '\\' );
if ( pos == NULL )
{
qWarning() << "Can't use ModuleFileName:" << appDir;
return ;
}
*pos = 0;
pathList << QString( appDir );
}
else
{
qWarning() << "Failed to get application directory. Using current path.";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment