mirror of
				https://github.com/vcmi/vcmi.git
				synced 2025-10-31 00:07:39 +02:00 
			
		
		
		
	- removed access to one wog file
- removed way to avoid dependency checking in identifiers resolution - minor fixes
This commit is contained in:
		| @@ -130,8 +130,11 @@ bool CIdentifierStorage::resolveIdentifier(const ObjectCallback & request) | ||||
| 	} | ||||
| 	else | ||||
| 	{ | ||||
| 		// //...unless destination mod was specified explicitly | ||||
| 		allowedScopes.insert(request.remoteScope); | ||||
| 		//...unless destination mod was specified explicitly | ||||
| 		auto myDeps = VLC->modh->getModData(request.localScope).dependencies; | ||||
| 		if (request.remoteScope == "core" ||   // allow only available to all core mod | ||||
| 		    myDeps.count(request.remoteScope)) // or dependencies | ||||
| 			allowedScopes.insert(request.remoteScope); | ||||
| 	} | ||||
|  | ||||
| 	std::string fullID = request.type + '.' + request.name; | ||||
| @@ -159,6 +162,7 @@ bool CIdentifierStorage::resolveIdentifier(const ObjectCallback & request) | ||||
| 		request.callback(entries.first->second.id); | ||||
| 		return true; | ||||
| 	} | ||||
| 	logGlobal->errorStream() << "Unknown identifier " << request.type << "." << request.name << " from mod " << request.localScope; | ||||
| 	return false; | ||||
| } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user