From c2eba99cb9673752f3c07e2e799b5f4d0109ea66 Mon Sep 17 00:00:00 2001 From: lethosor Date: Thu, 5 Mar 2015 16:57:58 -0500 Subject: [PATCH] Create professions folder if necessary --- plugins/manipulator.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugins/manipulator.cpp b/plugins/manipulator.cpp index 544a4eb14..13f45e527 100644 --- a/plugins/manipulator.cpp +++ b/plugins/manipulator.cpp @@ -792,6 +792,11 @@ public: vector files; cerr << "Attempting to load professions: " << professions_folder.c_str() << endl; + if (!Filesystem::isdir(professions_folder) && !Filesystem::mkdir(professions_folder)) + { + cerr << professions_folder << ": Does not exist and cannot be created" << endl; + return; + } Filesystem::listdir(professions_folder, files); for(size_t i = 0; i < files.size(); i++) {