mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-24 15:36:33 +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");
|
||||
}
|
||||
|
||||
@@ -700,7 +700,7 @@ namespace renderdocui.Code
|
||||
try
|
||||
{
|
||||
if (folder.Length == 0 || !Directory.Exists(folder))
|
||||
folder = Path.GetTempPath();
|
||||
folder = Path.Combine(Path.GetTempPath(), "RenderDoc");
|
||||
}
|
||||
catch (ArgumentException)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user