mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-23 22:37:55 +02:00
Use ResourcePath for referencing texts and json's
This commit is contained in:
@@ -68,9 +68,9 @@ std::unordered_set<ResourcePath> CFilesystemLoader::getFilteredFiles(std::functi
|
||||
return foundID;
|
||||
}
|
||||
|
||||
bool CFilesystemLoader::createResource(std::string filename, bool update)
|
||||
bool CFilesystemLoader::createResource(const ResourcePath & resID, bool update)
|
||||
{
|
||||
ResourcePath resID(filename);
|
||||
std::string filename = resID.getOriginalName();
|
||||
|
||||
if (fileList.find(resID) != fileList.end())
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user