aboutsummaryrefslogtreecommitdiff
path: root/launcher/minecraft/mod/ResourceFolderModel.cpp
diff options
context:
space:
mode:
authorSefa Eyeoglu <contact@scrumplex.net>2022-09-20 13:28:33 +0200
committerGitHub <noreply@github.com>2022-09-20 13:28:33 +0200
commitc6bcb6228b421983006d16c93f7cda091dc9679b (patch)
tree34bdf29ef57976517e5ce3c78e0a9dbe28d678cd /launcher/minecraft/mod/ResourceFolderModel.cpp
parent40c68595d7d5eccd1f264b2dc1e768b3faad6f16 (diff)
parenta24d589845aded0a485ddced900768efaca5328b (diff)
downloadPrismLauncher-c6bcb6228b421983006d16c93f7cda091dc9679b.tar.gz
PrismLauncher-c6bcb6228b421983006d16c93f7cda091dc9679b.tar.bz2
PrismLauncher-c6bcb6228b421983006d16c93f7cda091dc9679b.zip
Merge pull request #1108 from Scrumplex/better_texture_packs
Diffstat (limited to 'launcher/minecraft/mod/ResourceFolderModel.cpp')
-rw-r--r--launcher/minecraft/mod/ResourceFolderModel.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/launcher/minecraft/mod/ResourceFolderModel.cpp b/launcher/minecraft/mod/ResourceFolderModel.cpp
index 95bd5648..b2356309 100644
--- a/launcher/minecraft/mod/ResourceFolderModel.cpp
+++ b/launcher/minecraft/mod/ResourceFolderModel.cpp
@@ -14,6 +14,8 @@
ResourceFolderModel::ResourceFolderModel(QDir dir, QObject* parent) : QAbstractListModel(parent), m_dir(dir), m_watcher(this)
{
+ FS::ensureFolderPathExists(m_dir.absolutePath());
+
m_dir.setFilter(QDir::Readable | QDir::NoDotAndDotDot | QDir::Files | QDir::Dirs);
m_dir.setSorting(QDir::Name | QDir::IgnoreCase | QDir::LocaleAware);