Strip filename inside of GetExpandedRecordingDirectoryBase
Fixes 'invalid' file name style paths like "C:/foo/%.flv"
This commit is contained in:
parent
f35e835758
commit
1802fd7ddc
@ -147,6 +147,9 @@ String ExpandRecordingFilename(String filename)
|
||||
|
||||
String GetExpandedRecordingDirectoryBase(String path)
|
||||
{
|
||||
if (GetPathExtension(path))
|
||||
path = GetPathDirectory(path);
|
||||
|
||||
String expanded = path;
|
||||
do
|
||||
{
|
||||
|
@ -3339,7 +3339,7 @@ LRESULT CALLBACK OBS::OBSProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lPa
|
||||
{
|
||||
String path = OSGetDefaultVideoSavePath();
|
||||
path = AppConfig->GetString(L"Publish", LOWORD(wParam) == ID_SAVEDREPLAYBUFFERS ? L"ReplayBufferSavePath" : L"SavePath", path.Array());
|
||||
path = GetExpandedRecordingDirectoryBase(GetPathWithoutExtension(path)).FindReplace(L"/", L"\\");
|
||||
path = GetExpandedRecordingDirectoryBase(path).FindReplace(L"/", L"\\");
|
||||
String lastFile = App->lastOutputFile.FindReplace(L"/", L"\\");
|
||||
|
||||
LPITEMIDLIST item = nullptr;
|
||||
|
Loading…
x
Reference in New Issue
Block a user