mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-24 22:14:36 +02:00
Hidden maps
This commit is contained in:
parent
617a4385a2
commit
e669d31d33
@ -534,6 +534,13 @@ void SelectionTab::parseMaps(const std::unordered_set<ResourceID> & files)
|
||||
{
|
||||
try
|
||||
{
|
||||
const std::string filename_prefix = file.getName().substr(file.getName().find_last_of("/\\") + 1, 2);
|
||||
if(filename_prefix == "__")
|
||||
{
|
||||
logGlobal->trace("Map %s marked as hidden");
|
||||
continue;
|
||||
}
|
||||
|
||||
auto mapInfo = std::make_shared<CMapInfo>();
|
||||
mapInfo->mapInit(file.getName());
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user