mirror of
https://github.com/moonlight-stream/moonlight-qt
synced 2024-11-10 13:44:17 +00:00
27 lines
636 B
C++
27 lines
636 B
C++
#pragma once
|
|
|
|
#include <QString>
|
|
#include <QFileInfo>
|
|
|
|
class Path
|
|
{
|
|
public:
|
|
static QString getLogDir();
|
|
|
|
static QString getBoxArtCacheDir();
|
|
|
|
static QByteArray readDataFile(QString fileName);
|
|
static void writeCacheFile(QString fileName, QByteArray data);
|
|
static void deleteCacheFile(QString fileName);
|
|
static QFileInfo getCacheFileInfo(QString fileName);
|
|
|
|
// Only safe to use directly for Qt classes
|
|
static QString getDataFilePath(QString fileName);
|
|
|
|
static void initialize(bool portable);
|
|
|
|
private:
|
|
static QString s_CacheDir;
|
|
static QString s_LogDir;
|
|
static QString s_BoxArtCacheDir;
|
|
};
|