mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-28 17:36:36 +00:00
If no capture directory is specified in the UI, save to $TEMP/RenderDoc
This commit is contained in:
@@ -103,8 +103,14 @@ QString CaptureContext::TempLogFilename(QString appname)
|
||||
QDir dir(folder);
|
||||
|
||||
if(folder == "" || !dir.exists())
|
||||
{
|
||||
dir = QDir(QDir::tempPath());
|
||||
|
||||
dir.mkdir("RenderDoc");
|
||||
|
||||
dir = QDir(dir.absoluteFilePath("RenderDoc"));
|
||||
}
|
||||
|
||||
return dir.absoluteFilePath(
|
||||
appname + "_" + QDateTime::currentDateTimeUtc().toString("yyyy.MM.dd_HH.mm.ss") + ".rdc");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user