1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-15 00:05:02 +02:00

h3c converter implementation

This commit is contained in:
Laserlicht
2024-12-24 22:46:44 +01:00
parent ec25eb557b
commit a345517776
9 changed files with 342 additions and 48 deletions

View File

@ -144,7 +144,7 @@ TModID CModHandler::findResourceOrigin(const ResourcePath & name) const
return "core";
if(CResourceHandler::get("mapEditor")->existsResource(name))
return "core"; // Workaround for loading maps via map editor
return "mapEditor"; // Workaround for loading maps via map editor
}
catch( const std::out_of_range & e)
{
@ -189,6 +189,8 @@ std::string CModHandler::getModLanguage(const TModID& modId) const
return VLC->generaltexth->getInstalledLanguage();
if(modId == "map")
return VLC->generaltexth->getPreferredLanguage();
if(modId == "mapEditor")
return VLC->generaltexth->getPreferredLanguage();
return getModInfo(modId).getBaseLanguage();
}