mirror of
https://github.com/redstrate/Astra.git
synced 2025-05-13 21:07:46 +00:00
Create patches storage directory if it doesn't exist
This commit is contained in:
parent
5269ad440e
commit
05a1ce147a
1 changed files with 4 additions and 1 deletions
|
@ -282,8 +282,11 @@ void Patcher::setupDirectories()
|
||||||
dataDir.setPath(QStandardPaths::writableLocation(QStandardPaths::AppDataLocation));
|
dataDir.setPath(QStandardPaths::writableLocation(QStandardPaths::AppDataLocation));
|
||||||
|
|
||||||
m_patchesDir.setPath(dataDir.absoluteFilePath(QStringLiteral("patch")));
|
m_patchesDir.setPath(dataDir.absoluteFilePath(QStringLiteral("patch")));
|
||||||
m_patchesDirStorageInfo = QStorageInfo(m_patchesDir);
|
if (!m_patchesDir.exists()) {
|
||||||
|
QDir().mkpath(m_patchesDir.path());
|
||||||
|
}
|
||||||
|
|
||||||
|
m_patchesDirStorageInfo = QStorageInfo(m_patchesDir);
|
||||||
m_baseDirStorageInfo = QStorageInfo(m_baseDirectory);
|
m_baseDirStorageInfo = QStorageInfo(m_baseDirectory);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue