Project

General

Profile

Bug #146 ยป pluginsettingsfix.diff

nuka1195, 29/11/2010 04:05 PM

View differences:

xbmc/GUIDialogPluginSettings.cpp (working copy)
{
CStdString normalPath = value;
CStdString path = m_url.Get();
CUtil::RemoveSlashAtEnd(path);
// we need to change plugin:// protocol if we are using runscript
if (m_url.GetProtocol().Equals("plugin") && normalPath.Left(10).Equals("runscript("))
if (m_url.GetProtocol().Equals("plugin") && !normalPath.Left(10).Equals("runplugin("))
path.Replace("plugin://", "Q:\\plugins\\");
// replace $CWD with the addon's path
normalPath.Replace("$CWD", path);
    (1-1/1)