Skip to content

Commit

Permalink
allow afterplayback settings to be preserved (#505)
Browse files Browse the repository at this point in the history
  • Loading branch information
adipose committed Jun 28, 2020
1 parent 0b6b68f commit 1435a76
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/mpc-hc/AppSettings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2167,6 +2167,7 @@ CString CAppSettings::ParseFileName(CString const& param)

void CAppSettings::ParseCommandLine(CAtlList<CString>& cmdln)
{
UINT64 existingAfterPlaybackCL = nCLSwitches & CLSW_AFTERPLAYBACK_MASK;
nCLSwitches = 0;
slFiles.RemoveAll();
slDubs.RemoveAll();
Expand Down Expand Up @@ -2354,6 +2355,9 @@ void CAppSettings::ParseCommandLine(CAtlList<CString>& cmdln)
}
}
}
if (0 == (nCLSwitches & CLSW_AFTERPLAYBACK_MASK)) { //no changes to playback mask, so let's preserve existing
nCLSwitches |= existingAfterPlaybackCL;
}
}

void CAppSettings::GetFav(favtype ft, CAtlList<CString>& sl) const
Expand Down

0 comments on commit 1435a76

Please sign in to comment.