1
Fork 0
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:
Joshua Goins 2025-05-05 17:01:02 -04:00
parent 5269ad440e
commit 05a1ce147a

View file

@ -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);
} }