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:
@ -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();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user