- Fix a bug with story mode not able to find (unzipped) campaigns
This commit is contained in:
@@ -367,4 +367,16 @@ std::string buildFilePath(const vector<string> & folders, const string & filenam
|
||||
result.append(filename);
|
||||
return result;
|
||||
|
||||
}
|
||||
std::string ensureFolder(const std::string & folderName)
|
||||
{
|
||||
if (!folderName.size())
|
||||
return "";
|
||||
|
||||
string result = folderName;
|
||||
if (result[result.length()-1] != '/')
|
||||
{
|
||||
result.append("/");
|
||||
}
|
||||
return result;
|
||||
}
|
||||
Reference in New Issue
Block a user