diff options
author | Jim Carroll <thecarrolls@jiminger.com> | 2011-03-28 19:38:48 -0400 |
---|---|---|
committer | Jim Carroll <thecarrolls@jiminger.com> | 2011-03-28 19:38:48 -0400 |
commit | 1abd0b4a7e9caf2a7a162e997c4962b6523c85f8 (patch) | |
tree | 5bd19e938b63cbba4da39d6a1d4d7cfc13a75585 | |
parent | 15dcb7b09179f3dad3e8a9f135891d843ebe9c94 (diff) |
Revert "changed: deprecate the RunPlugin() built-in"
This reverts commit a6413398d271a88068ee15747c9ad8c5eb2658ab.
and fixes trac #11353
-rw-r--r-- | xbmc/interfaces/Builtins.cpp | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/xbmc/interfaces/Builtins.cpp b/xbmc/interfaces/Builtins.cpp index f834b5a2cf..50a377d8c3 100644 --- a/xbmc/interfaces/Builtins.cpp +++ b/xbmc/interfaces/Builtins.cpp @@ -122,7 +122,7 @@ const BUILT_IN commands[] = { #if defined(__APPLE__) { "RunAppleScript", true, "Run the specified AppleScript command" }, #endif - { "RunPlugin", true, "Run the specified plugin. This command is deprecated, use PlayMedia instead" }, + { "RunPlugin", true, "Run the specified plugin" }, { "RunAddon", true, "Run the specified plugin/script" }, { "Extract", true, "Extracts the specified archive" }, { "PlayMedia", true, "Play the specified media file (or playlist)" }, @@ -433,13 +433,14 @@ int CBuiltins::Execute(const CStdString& execString) } else if (execute.Equals("runplugin")) { - CLog::Log(LOGWARNING,"RunPlugin() is deprecated, use PlayMedia() instead"); - if (params.size()) { - CStdString cmd(execString); - cmd.Replace("RunPlugin","PlayMedia"); - return Execute(cmd); + CFileItem item(params[0]); + if (!item.m_bIsFolder) + { + item.m_strPath = params[0]; + CPluginDirectory::RunScriptWithParams(item.m_strPath); + } } else { |