From 05a1ce147ac3fd93768d1cac8d10f4c12f8d25c1 Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Mon, 5 May 2025 17:01:02 -0400 Subject: [PATCH] Create patches storage directory if it doesn't exist --- launcher/src/patcher.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/launcher/src/patcher.cpp b/launcher/src/patcher.cpp index b3a415e..a6c3eeb 100644 --- a/launcher/src/patcher.cpp +++ b/launcher/src/patcher.cpp @@ -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); }