version tracking and auto installing
This commit is contained in:
+11
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user