mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-30 17:53:42 +01:00
Add some paranoia checks in the GameDB
This commit is contained in:
1 parent
ddeb2112cc
commit
dc4053095a
2 files changed
+9
-5
No files matched your search
+2
-2
@@ -343,7 +343,7 @@ ScreenRenderFlags GameScreen::render(ScreenRenderMode mode) {
|
||||
|
||||
// Let's check the CRC in the game database, looking up the ID and also matching the crc.
|
||||
std::vector<GameDBInfo> dbInfos;
|
||||
if (tvVerified_ && g_gameDB.GetGameInfos(info->id_version, &dbInfos)) {
|
||||
if (tvVerified_ && !info->id_version.empty() && g_gameDB.GetGameInfos(info->id_version, &dbInfos)) {
|
||||
bool found = false;
|
||||
for (auto &dbInfo : dbInfos) {
|
||||
if (dbInfo.crc == crcVal) {
|
||||
@@ -368,7 +368,7 @@ ScreenRenderFlags GameScreen::render(ScreenRenderMode mode) {
|
||||
GameDBInfo dbInfo;
|
||||
if (tvVerified_) {
|
||||
std::vector<GameDBInfo> dbInfos;
|
||||
if (!g_gameDB.GetGameInfos(info->id_version, &dbInfos)) {
|
||||
if (!info->id_version.empty() && !g_gameDB.GetGameInfos(info->id_version, &dbInfos)) {
|
||||
// tvVerified_->SetText(ga->T("Game ID unknown - not in the ReDump database"));
|
||||
// tvVerified_->SetVisibility(UI::V_VISIBLE);
|
||||
// tvVerified_->SetLevel(NoticeLevel::WARN);
|
||||
|
||||
Reference in new issue
Block a user