2013-08-22 17:22:49 +03:00
|
|
|
#include "StdInc.h"
|
|
|
|
#include "launcherdirs.h"
|
|
|
|
|
|
|
|
#include "../lib/VCMIDirs.h"
|
|
|
|
|
|
|
|
static CLauncherDirs launcherDirsGlobal;
|
|
|
|
|
|
|
|
CLauncherDirs::CLauncherDirs()
|
|
|
|
{
|
|
|
|
QDir().mkdir(downloadsPath());
|
2014-03-04 17:51:10 +03:00
|
|
|
QDir().mkdir(modsPath());
|
2013-08-22 17:22:49 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
CLauncherDirs & CLauncherDirs::get()
|
|
|
|
{
|
|
|
|
return launcherDirsGlobal;
|
|
|
|
}
|
|
|
|
|
|
|
|
QString CLauncherDirs::downloadsPath()
|
|
|
|
{
|
|
|
|
return QString::fromUtf8(VCMIDirs::get().userCachePath().c_str()) + "/downloads";
|
|
|
|
}
|
|
|
|
|
|
|
|
QString CLauncherDirs::modsPath()
|
|
|
|
{
|
2014-03-04 17:51:10 +03:00
|
|
|
return QString::fromUtf8(VCMIDirs::get().userDataPath().c_str()) + "/Mods";
|
2013-08-22 17:22:49 +03:00
|
|
|
}
|