@@ -48,9 +48,12 @@ namespace {
|
||||
QString getCreditsHtml()
|
||||
{
|
||||
QFile dataFile(":/documents/credits.html");
|
||||
dataFile.open(QIODevice::ReadOnly);
|
||||
|
||||
if (!dataFile.open(QIODevice::ReadOnly)) {
|
||||
qWarning() << "Failed to open file '" << dataFile.fileName() << "' for reading!";
|
||||
return {};
|
||||
}
|
||||
QString fileContent = QString::fromUtf8(dataFile.readAll());
|
||||
dataFile.close();
|
||||
|
||||
return fileContent.arg(QObject::tr("%1 Developers").arg(BuildConfig.LAUNCHER_DISPLAYNAME), QObject::tr("MultiMC Developers"),
|
||||
QObject::tr("With special thanks to"));
|
||||
|
||||
Reference in New Issue
Block a user