1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-15 00:05:02 +02:00

resource generation

This commit is contained in:
Laserlicht
2024-08-19 23:18:14 +02:00
parent 11ac768599
commit fff0159ef6
12 changed files with 162 additions and 66 deletions

View File

@ -118,10 +118,11 @@ std::unordered_map<ResourcePath, boost::filesystem::path> CFilesystemLoader::lis
EResType::ARCHIVE_SND,
EResType::ARCHIVE_ZIP };
static const std::set<EResType> initialTypes(initArray, initArray + std::size(initArray));
assert(boost::filesystem::is_directory(baseDirectory));
std::unordered_map<ResourcePath, boost::filesystem::path> fileList;
if(!boost::filesystem::is_directory(baseDirectory))
return fileList;
std::vector<boost::filesystem::path> path; //vector holding relative path to our file
boost::filesystem::recursive_directory_iterator enddir;