GameList: Add EntryCompatibilityRatingToString
This commit is contained in:
parent
5274fa32ac
commit
d1eae288bf
|
@ -27,6 +27,13 @@ const char* GameList::EntryTypeToString(GameListEntryType type)
|
|||
return names[static_cast<int>(type)];
|
||||
}
|
||||
|
||||
const char* GameList::EntryCompatibilityRatingToString(GameListCompatibilityRating rating)
|
||||
{
|
||||
static std::array<const char*, static_cast<int>(GameListCompatibilityRating::Count)> names = {
|
||||
{"Unknown", "DoesntBoot", "CrashesInIntro", "CrashesInGame", "GraphicalAudioIssues", "NoIssues"}};
|
||||
return names[static_cast<int>(rating)];
|
||||
}
|
||||
|
||||
std::string GameList::GetGameCodeForPath(const char* image_path)
|
||||
{
|
||||
std::unique_ptr<CDImage> cdi = CDImage::Open(image_path);
|
||||
|
|
|
@ -69,6 +69,7 @@ public:
|
|||
~GameList();
|
||||
|
||||
static const char* EntryTypeToString(GameListEntryType type);
|
||||
static const char* EntryCompatibilityRatingToString(GameListCompatibilityRating rating);
|
||||
|
||||
/// Returns true if the filename is a PlayStation executable we can inject.
|
||||
static bool IsExeFileName(const char* path);
|
||||
|
|
Loading…
Reference in New Issue