Store all files in the current directory for portable installations. Fixes #43

This commit is contained in:
Cameron Gutman
2018-08-16 21:04:47 -07:00
parent 345e800abd
commit 38ff2bf5cb
6 changed files with 79 additions and 12 deletions

View File

@@ -1,13 +1,12 @@
#include "boxartmanager.h"
#include "../path.h"
#include <QStandardPaths>
#include <QImageReader>
#include <QImageWriter>
BoxArtManager::BoxArtManager(QObject *parent) :
QObject(parent),
m_BoxArtDir(
QStandardPaths::writableLocation(QStandardPaths::CacheLocation) + "/boxart")
m_BoxArtDir(Path::getBoxArtCacheDir())
{
if (!m_BoxArtDir.exists()) {
m_BoxArtDir.mkpath(".");