1
Fork 0
mirror of https://github.com/redstrate/Astra.git synced 2025-05-11 20:47:45 +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));
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);
}