mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-06-18 18:45:45 -04:00
GameList: Support scanning PSF/MiniPSF files
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user