GameList: Add EntryCompatibilityRatingToString

This commit is contained in:
Connor McLaughlin 2020-07-07 00:59:28 +10:00
parent 5274fa32ac
commit d1eae288bf
2 changed files with 8 additions and 0 deletions

View File

@ -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);

View File

@ -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);