Scratched the idea about having the compatibilities in increments of 100, and just made them increments of 1 instead.

There shouldn't be a reason to add more categories to the current list, and we will have a 'notes' field for additional information....

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2994 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
cottonvibes 2010-05-13 06:57:14 +00:00
parent 57206faa23
commit ae3df35369
3 changed files with 2171 additions and 2161 deletions

File diff suppressed because it is too large Load Diff

View File

@ -291,4 +291,16 @@ public:
}
};
static wxString compatToStringWX(int compat) {
switch (compat) {
case 6: return wxString(L"Perfect");
case 5: return wxString(L"Playable");
case 4: return wxString(L"In-Game");
case 3: return wxString(L"Menu");
case 2: return wxString(L"Intro");
case 1: return wxString(L"Nothing");
default: return wxString(L"Unknown");
}
}
extern ScopedPtr<DataBase_Loader> GameDB;

View File

@ -580,17 +580,11 @@ void __fastcall eeGameStarting()
wxString gameCRC( wxsFormat( L"%8.8x", ElfCRC ) );
wxString gameName;
if (GameDB) {
gameName = GameDB->getStringWX("Name");
int compat = GameDB->getInt("Compat");
gameName = GameDB->getStringWX("Name");
gameName += L" (" + GameDB->getStringWX("Region") + L")";
gameName += L" [" + DiscID + L"]";
int compat = GameDB->getInt("Compat");
if (compat >= 600) gameName += L" [Status = Perfect]";
else if (compat >= 500) gameName += L" [Status = Playable]";
else if (compat >= 400) gameName += L" [Status = In-Game]";
else if (compat >= 300) gameName += L" [Status = Menu]";
else if (compat >= 200) gameName += L" [Status = Intro]";
else if (compat >= 100) gameName += L" [Status = Nothing]";
else gameName += L" [Status = Unknown]";
gameName += L" [Status = "+compatToStringWX(compat)+L"]";
}
else {
gameName += L" [" + DiscID + L"]";