mirror of
https://github.com/libretro/Mesen.git
synced 2024-12-03 15:12:17 +00:00
06ccf0bdb0
Also changed save states to contain the raw framebuffer rather than a PNG, which allows displaying the screenshot in the emulator window when loading a state while paused
40 lines
1.1 KiB
C++
40 lines
1.1 KiB
C++
#pragma once
|
|
|
|
#include "stdafx.h"
|
|
#include <unordered_set>
|
|
|
|
class FolderUtilities
|
|
{
|
|
private:
|
|
static string _homeFolder;
|
|
static string _saveFolderOverride;
|
|
static string _saveStateFolderOverride;
|
|
static string _screenshotFolderOverride;
|
|
static vector<string> _gameFolders;
|
|
|
|
public:
|
|
static void SetHomeFolder(string homeFolder);
|
|
static string GetHomeFolder();
|
|
|
|
static void SetFolderOverrides(string saveFolder, string saveStateFolder, string screenshotFolder);
|
|
|
|
static void AddKnownGameFolder(string gameFolder);
|
|
static vector<string> GetKnownGameFolders();
|
|
|
|
static string GetSaveFolder();
|
|
static string GetSaveStateFolder();
|
|
static string GetScreenshotFolder();
|
|
static string GetHdPackFolder();
|
|
static string GetDebuggerFolder();
|
|
static string GetRecentGamesFolder();
|
|
|
|
static vector<string> GetFolders(string rootFolder);
|
|
static vector<string> GetFilesInFolder(string rootFolder, std::unordered_set<string> extensions, bool recursive);
|
|
|
|
static string GetFilename(string filepath, bool includeExtension);
|
|
static string GetFolderName(string filepath);
|
|
|
|
static void CreateFolder(string folder);
|
|
|
|
static string CombinePath(string folder, string filename);
|
|
}; |