GameList: Support scanning PSF/MiniPSF files

This commit is contained in:
Connor McLaughlin
2021-01-24 14:06:52 +10:00
parent 41a9231a87
commit 76ec38ee47
2 changed files with 58 additions and 3 deletions

View File

@ -18,7 +18,9 @@ enum class GameListEntryType
{
Disc,
PSExe,
Playlist
Playlist,
PSF,
Count
};
enum class GameListCompatibilityRating
@ -71,6 +73,15 @@ public:
GameList();
~GameList();
/// Returns true if the filename is a PlayStation executable we can inject.
static bool IsExeFileName(const char* path);
/// Returns true if the filename is a Portable Sound Format file we can uncompress/load.
static bool IsPsfFileName(const char* path);
/// Returns true if the filename is a M3U Playlist we can handle.
static bool IsM3UFileName(const char* path);
static const char* EntryTypeToString(GameListEntryType type);
static const char* EntryCompatibilityRatingToString(GameListCompatibilityRating rating);
@ -127,6 +138,7 @@ private:
GameListEntry* GetMutableEntryForPath(const char* path);
static bool GetExeListEntry(const char* path, GameListEntry* entry);
static bool GetPsfListEntry(const char* path, GameListEntry* entry);
bool GetM3UListEntry(const char* path, GameListEntry* entry);
bool GetGameListEntry(const std::string& path, GameListEntry* entry);