2018-08-17 04:04:47 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <QString>
|
|
|
|
|
|
|
|
class Path
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
static QString getLogDir();
|
|
|
|
|
|
|
|
static QString getBoxArtCacheDir();
|
|
|
|
|
2019-03-23 17:45:44 +00:00
|
|
|
static QByteArray readDataFile(QString fileName);
|
2020-11-21 20:45:34 +00:00
|
|
|
static void writeDataFile(QString fileName, QByteArray data);
|
2019-03-23 17:45:44 +00:00
|
|
|
|
|
|
|
// Only safe to use directly for Qt classes
|
2019-02-16 02:13:36 +00:00
|
|
|
static QString getDataFilePath(QString fileName);
|
2018-09-13 18:17:51 +00:00
|
|
|
|
2018-08-17 04:04:47 +00:00
|
|
|
static void initialize(bool portable);
|
|
|
|
|
2018-08-17 06:09:40 +00:00
|
|
|
private:
|
2020-11-21 20:45:34 +00:00
|
|
|
static QString s_CacheDir;
|
2018-08-17 04:04:47 +00:00
|
|
|
static QString s_LogDir;
|
|
|
|
static QString s_BoxArtCacheDir;
|
|
|
|
};
|