2014-07-02 20:28:29 -04:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "stdafx.h"
|
|
|
|
|
|
|
|
class FolderUtilities
|
|
|
|
{
|
2015-07-05 19:21:49 -04:00
|
|
|
private:
|
|
|
|
static wstring _homeFolder;
|
|
|
|
public:
|
|
|
|
static void SetHomeFolder(wstring homeFolder);
|
|
|
|
static wstring GetHomeFolder();
|
|
|
|
static wstring GetSaveFolder();
|
|
|
|
static wstring GetSaveStateFolder();
|
|
|
|
static wstring GetMovieFolder();
|
|
|
|
static wstring GetScreenshotFolder();
|
2014-07-02 20:28:29 -04:00
|
|
|
|
2015-07-05 19:21:49 -04:00
|
|
|
static vector<wstring> GetFolders(wstring rootFolder);
|
|
|
|
static vector<wstring> GetFilesInFolder(wstring rootFolder, wstring mask, bool recursive);
|
2014-07-02 20:28:29 -04:00
|
|
|
|
2015-07-05 19:21:49 -04:00
|
|
|
static wstring GetFilename(wstring filepath, bool includeExtension);
|
|
|
|
static wstring GetFolderName(wstring filepath);
|
2015-07-01 23:17:14 -04:00
|
|
|
|
2015-07-05 19:21:49 -04:00
|
|
|
static int64_t GetFileModificationTime(wstring filepath);
|
|
|
|
|
|
|
|
static wstring CombinePath(wstring folder, wstring filename);
|
2014-07-02 20:28:29 -04:00
|
|
|
};
|