SendMessage(tMsg, wait);
}
-void CApplicationMessenger::ExecBuiltIn(const CStdString &command)
+void CApplicationMessenger::ExecBuiltIn(const CStdString &command, bool wait)
{
ThreadMessage tMsg = {TMSG_EXECUTE_BUILT_IN};
tMsg.strParam = command;
- SendMessage(tMsg);
+ SendMessage(tMsg, wait);
}
void CApplicationMessenger::MediaPlay(string filename)
CStdString GetResponse();
int SetResponse(CStdString response);
void HttpApi(std::string cmd, bool wait = false);
- void ExecBuiltIn(const CStdString &command);
+ void ExecBuiltIn(const CStdString &command, bool wait = false);
void NetworkMessage(DWORD dwMessage, DWORD dwParam = 0);
{ "SlideShow", true, "Run a slideshow from the specified directory" },
{ "RecursiveSlideShow", true, "Run a slideshow from the specified directory, including all subdirs" },
{ "ReloadSkin", false, "Reload XBMC's skin" },
+ { "UnloadSkin", false, "Unload XBMC's skin" },
{ "RefreshRSS", false, "Reload RSS feeds from RSSFeeds.xml"},
{ "PlayerControl", true, "Control the music or video player" },
{ "Playlist.PlayOffset", true, "Start playing from a particular offset in the playlist" },
// Reload the skin
g_application.ReloadSkin();
}
+ else if (execute.Equals("unloadskin"))
+ {
+ g_application.UnloadSkin();
+ }
else if (execute.Equals("refreshrss"))
{
g_rssManager.Stop();