mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-09-21 13:15:57 +00:00
Create config path if it doesn't already exist
This commit is contained in:
@@ -27,6 +27,7 @@
|
||||
#include <QFileInfo>
|
||||
#include <QRegularExpression>
|
||||
#include <QRegularExpressionMatch>
|
||||
#include <QStandardPaths>
|
||||
#include "Code/CaptureContext.h"
|
||||
#include "Code/QRDUtils.h"
|
||||
#include "Windows/MainWindow.h"
|
||||
@@ -119,6 +120,14 @@ int main(int argc, char *argv[])
|
||||
{
|
||||
PersistantConfig config;
|
||||
|
||||
{
|
||||
QString configPath = QStandardPaths::writableLocation(QStandardPaths::AppDataLocation);
|
||||
QDir dir(configPath);
|
||||
|
||||
if(!dir.exists())
|
||||
dir.mkpath(configPath);
|
||||
}
|
||||
|
||||
QString configFilename = CaptureContext::ConfigFile("UI.config");
|
||||
|
||||
if(!config.Deserialize(configFilename))
|
||||
|
||||
Reference in New Issue
Block a user