mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-09-22 21:55:52 +00:00
Add TempLogFilename() utility function
This commit is contained in:
@@ -82,6 +82,19 @@ QString CaptureContext::ConfigFile(const QString &filename)
|
||||
return QDir::cleanPath(dir.absoluteFilePath(filename));
|
||||
}
|
||||
|
||||
QString CaptureContext::TempLogFilename(QString appname)
|
||||
{
|
||||
QString folder = Config.TemporaryCaptureDirectory;
|
||||
|
||||
QDir dir(folder);
|
||||
|
||||
if(folder == "" || !dir.exists())
|
||||
folder = QDir::tempPath();
|
||||
|
||||
return dir.absoluteFilePath(
|
||||
appname + "_" + QDateTime::currentDateTimeUtc().toString("yyyy.MM.dd_HH.mm.ss") + ".rdc");
|
||||
}
|
||||
|
||||
void CaptureContext::LoadLogfile(const QString &logFile, const QString &origFilename,
|
||||
bool temporary, bool local)
|
||||
{
|
||||
|
||||
@@ -68,7 +68,7 @@ public:
|
||||
|
||||
static QString ConfigFile(const QString &filename);
|
||||
|
||||
static QString TempLogFilename(QString appname);
|
||||
QString TempLogFilename(QString appname);
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
// Control functions
|
||||
|
||||
Reference in New Issue
Block a user