Create professions folder if necessary

develop
lethosor 2015-03-05 16:57:58 -05:00
parent efa9224eef
commit c2eba99cb9
1 changed files with 5 additions and 0 deletions

@ -792,6 +792,11 @@ public:
vector <string> 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++)
{