1
Fork 0
mirror of https://github.com/redstrate/Astra.git synced 2025-05-01 16:37:44 +00:00

Fix various typos

This commit is contained in:
Joshua Goins 2025-04-29 15:12:07 -04:00
parent 377f10408c
commit 0041b53e3f
9 changed files with 13 additions and 13 deletions

View file

@ -9,7 +9,7 @@ plugins!
* Wine Support: Handles launching Wine for you. * Wine Support: Handles launching Wine for you.
* Dalamud Support: You can use Dalamud plugins out of the box! * Dalamud Support: You can use Dalamud plugins out of the box!
* Multiple Profiles: Customizable per-profile settings for users that need multiple game installs. * Multiple Profiles: Customizable per-profile settings for users that need multiple game installations.
* Encrypted Arguments: Game arguments are encrypted out of the box, and is as secure as other launchers. * Encrypted Arguments: Game arguments are encrypted out of the box, and is as secure as other launchers.
* Secure Password Storage: Login information is encrypted using your system keychain and is never stored plain-text. * Secure Password Storage: Login information is encrypted using your system keychain and is never stored plain-text.
* Game Patching Support: Can patch the game without the need to boot into the official launcher. * Game Patching Support: Can patch the game without the need to boot into the official launcher.

View file

@ -45,7 +45,7 @@ QCoro::Task<bool> CharacterSync::sync(const bool initialSync)
Q_EMIT launcher.stageChanged(i18n("Synchronizing character data...")); Q_EMIT launcher.stageChanged(i18n("Synchronizing character data..."));
// On game boot, check if we need the lock. Otherwise break it when we clean up. // On game boot, check if we need the lock. Otherwise, break it when we clean up.
if (initialSync) { if (initialSync) {
if (const auto hostname = co_await syncManager->checkLock(); hostname.has_value()) { if (const auto hostname = co_await syncManager->checkLock(); hostname.has_value()) {
// Don't warn about our own failures // Don't warn about our own failures

View file

@ -94,7 +94,7 @@ void LauncherCore::login(Profile *profile, const QString &username, const QStrin
const auto loginInformation = new LoginInformation(this); const auto loginInformation = new LoginInformation(this);
loginInformation->profile = profile; loginInformation->profile = profile;
// Benchmark never has to login, of course // Benchmark never has to log in, of course
if (!profile->config()->isBenchmark()) { if (!profile->config()->isBenchmark()) {
loginInformation->username = username; loginInformation->username = username;
loginInformation->password = password; loginInformation->password = password;

View file

@ -65,7 +65,7 @@ QCoro::Task<bool> Patcher::patch(const physis_PatchList &patchList)
co_return false; co_return false;
} }
// If we do, we want to make sure we have enough space for all of the repositories we download // If we do, we want to make sure we have enough space for all the repositories we download
QMap<QString, int64_t> repositorySizes; QMap<QString, int64_t> repositorySizes;
for (int i = 0; i < patchList.num_entries; i++) { for (int i = 0; i < patchList.num_entries; i++) {
// Record the largest byte size for the repository // Record the largest byte size for the repository
@ -103,7 +103,7 @@ QCoro::Task<bool> Patcher::patch(const physis_PatchList &patchList)
const int ourIndex = patchIndex++; const int ourIndex = patchIndex++;
const QString filename = QStringLiteral("%1.patch").arg(QLatin1String(patch.version)); const QString filename = QStringLiteral("%1.patch").arg(QLatin1String(patch.version));
const QString tempFilename = QStringLiteral("%1.patch~").arg(QLatin1String(patch.version)); // tilde afterwards to hide it easily const QString tempFilename = QStringLiteral("%1.patch~").arg(QLatin1String(patch.version)); // tilde afterward to hide it easily
const QString repository = Utility::repositoryFromPatchUrl(QLatin1String(patch.url)); const QString repository = Utility::repositoryFromPatchUrl(QLatin1String(patch.url));
const QDir repositoryDir = m_patchesDir.absoluteFilePath(repository); const QDir repositoryDir = m_patchesDir.absoluteFilePath(repository);
@ -153,7 +153,7 @@ QCoro::Task<bool> Patcher::patch(const physis_PatchList &patchList)
}); });
connect(patchReply, &QNetworkReply::readyRead, this, [this, tempPatchPath, patchReply] { connect(patchReply, &QNetworkReply::readyRead, this, [this, tempPatchPath, patchReply] {
// TODO: don't open the file each time we recieve data // TODO: don't open the file each time we receive data
QFile file(tempPatchPath); QFile file(tempPatchPath);
file.open(QIODevice::WriteOnly | QIODevice::Append); file.open(QIODevice::WriteOnly | QIODevice::Append);
file.write(patchReply->readAll()); file.write(patchReply->readAll());

View file

@ -41,7 +41,7 @@ QCoro::Task<std::optional<LoginAuth>> SquareEnixLogin::login(LoginInformation *i
m_info = info; m_info = info;
// First, let's check for boot updates. While not technically required for us, it's needed for later hash checking. // First, let's check for boot updates. While not technically required for us, it's needed for later hash checking.
// It's also a really good idea anyway, in case the official launcher is needed. // It's also a good idea anyway, in case the official launcher is needed.
while (m_lastRunHasPatched) { while (m_lastRunHasPatched) {
// There seems to be a limitation in their boot patching system. // There seems to be a limitation in their boot patching system.
// Their server can only give one patch a time, so the boot process must keep trying to patch until // Their server can only give one patch a time, so the boot process must keep trying to patch until
@ -66,7 +66,7 @@ QCoro::Task<std::optional<LoginAuth>> SquareEnixLogin::login(LoginInformation *i
co_return std::nullopt; co_return std::nullopt;
} }
// Finally, double check the *world* status to make sure we don't try to log in during maintenance. // Finally, double-check the *world* status to make sure we don't try to log in during maintenance.
// Doing it late here ensures we handle cases where the patch is available during maintenance (like during expansion launches) // Doing it late here ensures we handle cases where the patch is available during maintenance (like during expansion launches)
// but stops before trying to log in when you're not supposed to. // but stops before trying to log in when you're not supposed to.
if (!co_await checkGateStatus()) { if (!co_await checkGateStatus()) {
@ -107,7 +107,7 @@ QCoro::Task<bool> SquareEnixLogin::checkGateStatus() const
const QJsonDocument document = QJsonDocument::fromJson(reply->readAll()); const QJsonDocument document = QJsonDocument::fromJson(reply->readAll());
if (document.isEmpty()) { if (document.isEmpty()) {
Q_EMIT m_launcher.loginError(i18n("An error occured when checking login gate status:\n\n%1", reply->errorString())); Q_EMIT m_launcher.loginError(i18n("An error occurred when checking login gate status:\n\n%1", reply->errorString()));
co_return false; co_return false;
} }

View file

@ -87,7 +87,7 @@ Kirigami.Page {
} }
function onDalamudError(message: string): void { function onDalamudError(message: string): void {
dalamudErrorDialog.subtitle = i18n("An error occured while updating Dalamud:\n\n%1.\n\nWould you like to disable Dalamud?", message); dalamudErrorDialog.subtitle = i18n("An error occurred while updating Dalamud:\n\n%1.\n\nWould you like to disable Dalamud?", message);
dalamudErrorDialog.open(); dalamudErrorDialog.open();
} }
} }

View file

@ -288,7 +288,7 @@ FormCard.FormCardPage {
visible: LauncherCore.config.showDevTools visible: LauncherCore.config.showDevTools
text: i18n("Injection Method") text: i18n("Injection Method")
description: "It shouldn't be nessecary to change this setting, unless you're running into issues injecting Dalamud." description: "It shouldn't be necessary to change this setting, unless you're running into issues injecting Dalamud."
model: ["Entrypoint", "DLL Injection"] model: ["Entrypoint", "DLL Injection"]
currentIndex: page.profile.config.dalamudInjectMethod currentIndex: page.profile.config.dalamudInjectMethod
onCurrentIndexChanged: page.profile.config.dalamudInjectMethod = currentIndex onCurrentIndexChanged: page.profile.config.dalamudInjectMethod = currentIndex

View file

@ -39,7 +39,7 @@ Kirigami.Page {
target: page.benchmarkInstaller target: page.benchmarkInstaller
function onInstallFinished(): void { function onInstallFinished(): void {
// Prevents it from failing to push the page if the install happens too quickly. // Prevents it from failing to push the page if the installation happens too quickly.
Qt.callLater(() => applicationWindow().checkSetup()); Qt.callLater(() => applicationWindow().checkSetup());
} }

View file

@ -39,7 +39,7 @@ Kirigami.Page {
target: page.gameInstaller target: page.gameInstaller
function onInstallFinished(): void { function onInstallFinished(): void {
// Prevents it from failing to push the page if the install happens too quickly. // Prevents it from failing to push the page if the installation happens too quickly.
Qt.callLater(() => applicationWindow().checkSetup()); Qt.callLater(() => applicationWindow().checkSetup());
} }