Bug #358 » Builtins.cpp.variantA.patch
xbmc/interfaces/Builtins.cpp (working copy) | ||
---|---|---|
g_application.ResetScreenSaver();
|
||
g_application.ResetScreenSaverWindow();
|
||
// ask if we need to check guisettings to resume
|
||
bool askToResume = true;
|
||
// Resume? (init)
|
||
bool autoResume = (g_guiSettings.GetInt("videoplayer.resumeautomatically") == RESUME_YES);
|
||
bool askToResume = (g_guiSettings.GetInt("videoplayer.resumeautomatically") == RESUME_ASK);
|
||
// Params...
|
||
for (unsigned int i = 1 ; i < params.size() ; i++)
|
||
{
|
||
if (params[i].Equals("isdir"))
|
||
... | ... | |
g_settings.m_bStartVideoWindowed = true;
|
||
else if (params[i].Equals("resume"))
|
||
{
|
||
// force the item to resume (if applicable) (see CApplication::PlayMedia)
|
||
item.m_lStartOffset = STARTOFFSET_RESUME;
|
||
askToResume = false;
|
||
autoResume = true;
|
||
askToResume = false;
|
||
}
|
||
else if (params[i].Equals("noresume"))
|
||
{
|
||
// force the item to start at the beginning (m_lStartOffset is initialized to 0)
|
||
autoResume = false;
|
||
askToResume = false;
|
||
}
|
||
else if (params[i].Left(11).Equals("playoffset="))
|
||
... | ... | |
if (!item.m_bIsFolder && item.IsPlugin())
|
||
item.SetProperty("IsPlayable", true);
|
||
if ( askToResume == true )
|
||
// Resume automatically (if the case)...
|
||
if (autoResume)
|
||
{
|
||
// force the item to resume (if applicable) (see CApplication::PlayMedia)
|
||
item.m_lStartOffset = STARTOFFSET_RESUME;
|
||
askToResume = false;
|
||
}
|
||
// Ask to resume...
|
||
else if ( askToResume == true )
|
||
{
|
||
if ( CGUIWindowVideoBase::OnResumeShowMenu(item) == false )
|
||
return false;
|
||
}
|
||
if (item.m_bIsFolder)
|
||
{
|
||
CFileItemList items;
|
||
... | ... | |
else
|
||
return -1;
|
||
return 0;
|
||
}
|
||
}
|