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

remove resource

This commit is contained in:
Laserlicht
2024-08-20 22:45:11 +02:00
parent c56d667981
commit d8869a33da
5 changed files with 16 additions and 9 deletions

View File

@ -108,6 +108,11 @@ bool CFilesystemLoader::createResource(const std::string & requestedFilename, bo
return true;
}
void CFilesystemLoader::removeResource(const ResourcePath & resourceName)
{
fileList.erase(resourceName);
}
std::unordered_map<ResourcePath, boost::filesystem::path> CFilesystemLoader::listFiles(const std::string &mountPoint, size_t depth, bool initial) const
{
static const EResType initArray[] = {