mirror of
https://github.com/vcmi/vcmi.git
synced 2025-01-14 02:33:51 +02:00
Fix build.
This commit is contained in:
parent
d7c0c3759a
commit
048e22dbe6
@ -554,7 +554,7 @@ void CModHandler::loadConfigFromFile (std::string name)
|
|||||||
std::string paths;
|
std::string paths;
|
||||||
for(auto& p : CResourceHandler::get()->getResourceNames(ResourceID("config/" + name)))
|
for(auto& p : CResourceHandler::get()->getResourceNames(ResourceID("config/" + name)))
|
||||||
{
|
{
|
||||||
paths += p + ", ";
|
paths += p.string() + ", ";
|
||||||
}
|
}
|
||||||
paths = paths.substr(0, paths.size() - 2);
|
paths = paths.substr(0, paths.size() - 2);
|
||||||
logGlobal->debugStream() << "Loading hardcoded features settings from [" << paths << "], result:";
|
logGlobal->debugStream() << "Loading hardcoded features settings from [" << paths << "], result:";
|
||||||
|
@ -87,9 +87,9 @@ boost::optional<boost::filesystem::path> CFilesystemList::getResourceName(const
|
|||||||
return boost::optional<boost::filesystem::path>();
|
return boost::optional<boost::filesystem::path>();
|
||||||
}
|
}
|
||||||
|
|
||||||
std::set<std::string> CFilesystemList::getResourceNames(const ResourceID & resourceName) const
|
std::set<boost::filesystem::path> CFilesystemList::getResourceNames(const ResourceID & resourceName) const
|
||||||
{
|
{
|
||||||
std::set<std::string> paths;
|
std::set<boost::filesystem::path> paths;
|
||||||
for(auto& loader : getResourcesWithName(resourceName))
|
for(auto& loader : getResourcesWithName(resourceName))
|
||||||
{
|
{
|
||||||
auto rn = loader->getResourceName(resourceName);
|
auto rn = loader->getResourceName(resourceName);
|
||||||
|
@ -71,7 +71,7 @@ public:
|
|||||||
bool existsResource(const ResourceID & resourceName) const override;
|
bool existsResource(const ResourceID & resourceName) const override;
|
||||||
std::string getMountPoint() const override;
|
std::string getMountPoint() const override;
|
||||||
boost::optional<boost::filesystem::path> getResourceName(const ResourceID & resourceName) const override;
|
boost::optional<boost::filesystem::path> getResourceName(const ResourceID & resourceName) const override;
|
||||||
std::set<std::string> getResourceNames(const ResourceID & resourceName) const override;
|
std::set<boost::filesystem::path> getResourceNames(const ResourceID & resourceName) const override;
|
||||||
std::unordered_set<ResourceID> getFilteredFiles(std::function<bool(const ResourceID &)> filter) const override;
|
std::unordered_set<ResourceID> getFilteredFiles(std::function<bool(const ResourceID &)> filter) const override;
|
||||||
bool createResource(std::string filename, bool update = false) override;
|
bool createResource(std::string filename, bool update = false) override;
|
||||||
std::vector<const ISimpleResourceLoader *> getResourcesWithName(const ResourceID & resourceName) const override;
|
std::vector<const ISimpleResourceLoader *> getResourcesWithName(const ResourceID & resourceName) const override;
|
||||||
|
@ -58,9 +58,9 @@ public:
|
|||||||
*
|
*
|
||||||
* @return std::set with names.
|
* @return std::set with names.
|
||||||
*/
|
*/
|
||||||
virtual std::set<std::string> getResourceNames(const ResourceID & resourceName) const
|
virtual std::set<boost::filesystem::path> getResourceNames(const ResourceID & resourceName) const
|
||||||
{
|
{
|
||||||
std::set<std::string> result;
|
std::set<boost::filesystem::path> result;
|
||||||
auto rn = getResourceName(resourceName);
|
auto rn = getResourceName(resourceName);
|
||||||
if(rn)
|
if(rn)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user