version tracking and auto installing

This commit is contained in:
2026-08-24 21:09:52 +03:00
parent 671fbe169d
commit 5bc59f8018
10 changed files with 1937 additions and 24 deletions
+11 -1
View File
@@ -61,9 +61,19 @@ QString LauncherPaths::runtimeDir()
return rootDir() + QStringLiteral("/runtime");
}
QString LauncherPaths::cacheDir()
{
return rootDir() + QStringLiteral("/cache");
}
QString LauncherPaths::versionManifestFile()
{
return cacheDir() + QStringLiteral("/version_manifest.json");
}
bool LauncherPaths::ensureRootExists(QString *error)
{
const QStringList required{rootDir(), runtimeDir()};
const QStringList required{rootDir(), runtimeDir(), cacheDir()};
for (const QString &path : required) {
if (!QDir().mkpath(path)) {
if (error)