1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-29 23:07:48 +02:00

Restored mod list display functionality in launcher

This commit is contained in:
Ivan Savenko
2024-11-13 17:25:59 +00:00
parent f8724b9558
commit 06ce71087e
14 changed files with 137 additions and 75 deletions

View File

@@ -120,7 +120,7 @@ QString ModState::getLocalSizeFormatted() const
QString ModState::getAuthors() const
{
return QString::fromStdString(impl.getValue("authors").String());
return QString::fromStdString(impl.getValue("author").String());
}
QString ModState::getContact() const
@@ -130,7 +130,7 @@ QString ModState::getContact() const
QString ModState::getLicenseUrl() const
{
return QString::fromStdString(impl.getValue("licenseUrl").String());
return QString::fromStdString(impl.getValue("licenseURL").String());
}
QString ModState::getLicenseName() const
@@ -173,7 +173,7 @@ bool ModState::isHidden() const
if (isTranslation() && !isInstalled())
return impl.getBaseLanguage() == CGeneralTextHandler::getPreferredLanguage();
return isCompatibility() || getID() == "vcmi";
return isCompatibility() || getID() == "vcmi" || getID() == "core";
}
bool ModState::isDisabled() const
@@ -198,7 +198,7 @@ bool ModState::isInstalled() const
bool ModState::isUpdateAvailable() const
{
return getInstalledVersion() != getRepositoryVersion() && !getRepositoryVersion().isEmpty();
return getInstalledVersion() != getRepositoryVersion() && !getRepositoryVersion().isEmpty() && !getInstalledVersion().isEmpty();;
}
bool ModState::isCompatible() const