mirror of
https://github.com/redstrate/Astra.git
synced 2025-04-23 12:57:45 +00:00
Create the data directory if it doesn't exist
Apparently Qt does not do this automatically on Windows, so this fixes another out of box bug on that platform.
This commit is contained in:
parent
95b52b43f8
commit
7cfa2e41a4
1 changed files with 3 additions and 0 deletions
|
@ -42,6 +42,9 @@ AssetUpdater::AssetUpdater(LauncherCore& launcher) : launcher(launcher) {
|
|||
|
||||
dataDir =
|
||||
QStandardPaths::writableLocation(QStandardPaths::AppDataLocation);
|
||||
|
||||
if(!QDir().exists(dataDir))
|
||||
QDir().mkdir(dataDir);
|
||||
}
|
||||
|
||||
void AssetUpdater::update(const ProfileSettings& profile) {
|
||||
|
|
Loading…
Add table
Reference in a new issue