1
Fork 0
mirror of https://github.com/redstrate/Astra.git synced 2025-04-22 20:47:45 +00:00

Create directory needed for version file when patching

Doesn't fix any real bugs, but just something I noticed since in
Dawntrail the first ex5 pack seems to only add a movie.
This commit is contained in:
Joshua Goins 2024-06-27 20:31:19 -04:00
parent bf5baadc38
commit 94ee8fa838

View file

@ -204,7 +204,9 @@ void Patcher::processPatch(const QueuedPatch &patch)
if (patch.repository == "game"_L1) {
verFilePath = m_baseDirectory + QStringLiteral("/ffxivgame.ver");
} else {
verFilePath = m_baseDirectory + QStringLiteral("/sqpack/") + patch.repository + QStringLiteral("/") + patch.repository + QStringLiteral(".ver");
const QString sqPackDir = m_baseDirectory + QStringLiteral("/sqpack/") + patch.repository + QStringLiteral("/");
Utility::createPathIfNeeded(sqPackDir);
verFilePath = sqPackDir + patch.repository + QStringLiteral(".ver");
}
}