mirror of
https://github.com/redstrate/Astra.git
synced 2025-04-20 11:47:46 +00:00
Use base string in one last spot in Patcher
This commit is contained in:
parent
14854a6187
commit
2c691c35be
1 changed files with 4 additions and 3 deletions
|
@ -23,7 +23,7 @@ Patcher::Patcher(LauncherCore &launcher, const QString &baseDirectory, BootData
|
||||||
{
|
{
|
||||||
setupDirectories();
|
setupDirectories();
|
||||||
|
|
||||||
Q_EMIT m_launcher.stageChanged(i18n("Checking the FINAL FANTASY XIV Updater/Launcher version."));
|
Q_EMIT m_launcher.stageChanged(i18n("Checking %1 version.", getBaseString()));
|
||||||
}
|
}
|
||||||
|
|
||||||
Patcher::Patcher(LauncherCore &launcher, const QString &baseDirectory, GameData &gameData, QObject *parent)
|
Patcher::Patcher(LauncherCore &launcher, const QString &baseDirectory, GameData &gameData, QObject *parent)
|
||||||
|
@ -34,7 +34,7 @@ Patcher::Patcher(LauncherCore &launcher, const QString &baseDirectory, GameData
|
||||||
{
|
{
|
||||||
setupDirectories();
|
setupDirectories();
|
||||||
|
|
||||||
Q_EMIT m_launcher.stageChanged(i18n("Checking the FINAL FANTASY XIV Game version."));
|
Q_EMIT m_launcher.stageChanged(i18n("Checking %1 version.", getBaseString()));
|
||||||
}
|
}
|
||||||
|
|
||||||
QCoro::Task<> Patcher::patch(const QString &patchList)
|
QCoro::Task<> Patcher::patch(const QString &patchList)
|
||||||
|
@ -44,7 +44,7 @@ QCoro::Task<> Patcher::patch(const QString &patchList)
|
||||||
}
|
}
|
||||||
|
|
||||||
Q_EMIT m_launcher.stageIndeterminate();
|
Q_EMIT m_launcher.stageIndeterminate();
|
||||||
Q_EMIT m_launcher.stageChanged(i18n("Checking the %1 version.", getBaseString()));
|
Q_EMIT m_launcher.stageChanged(i18n("Checking %1 version.", getBaseString()));
|
||||||
|
|
||||||
const QStringList parts = patchList.split("\r\n");
|
const QStringList parts = patchList.split("\r\n");
|
||||||
|
|
||||||
|
@ -126,6 +126,7 @@ void Patcher::processPatch(const QueuedPatch &patch)
|
||||||
Q_ASSERT(patch.length == f.size());
|
Q_ASSERT(patch.length == f.size());
|
||||||
|
|
||||||
const int parts = std::ceil(static_cast<double>(patch.length) / static_cast<double>(patch.hashBlockSize));
|
const int parts = std::ceil(static_cast<double>(patch.length) / static_cast<double>(patch.hashBlockSize));
|
||||||
|
|
||||||
QByteArray block;
|
QByteArray block;
|
||||||
block.resize(patch.hashBlockSize);
|
block.resize(patch.hashBlockSize);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue