1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-23 00:28:08 +02:00

Unicode conversion functions now require source encoding

This commit is contained in:
Ivan Savenko
2023-02-24 16:15:45 +02:00
parent 8b3309b47d
commit bd70b6fabd
14 changed files with 319 additions and 313 deletions

View File

@ -943,8 +943,8 @@ std::vector<std::string> CModHandler::getModList(std::string path)
bool CModHandler::isScopeReserved(const TModID & scope)
{
static const std::array<TModID, 3> reservedScopes = {
"core", "map", "game"
static const std::array<TModID, 6> reservedScopes = {
"core", "map", "game", "root", "saves", "config"
};
return std::find(reservedScopes.begin(), reservedScopes.end(), scope) != reservedScopes.end();