From 4ee17543def85a1467413604563109a12d7c9472 Mon Sep 17 00:00:00 2001 From: baldurk Date: Mon, 22 Jan 2018 12:20:26 +0000 Subject: [PATCH] Create parent folder for any captures created. --- renderdoc/core/core.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/renderdoc/core/core.cpp b/renderdoc/core/core.cpp index 644bfa914..9eb14beac 100644 --- a/renderdoc/core/core.cpp +++ b/renderdoc/core/core.cpp @@ -731,6 +731,8 @@ RDCFile *RenderDoc::CreateRDC(RDCDriver driver, uint32_t frameNum, void *thpixel ret->SetData(driver, ToStr(driver).c_str(), OSUtility::GetMachineIdent(), thumb); + FileIO::CreateParentDirectory(m_CurrentLogFile); + ret->Create(m_CurrentLogFile.c_str()); if(ret->ErrorCode() != ContainerError::NoError)