mirror of https://github.com/PCSX2/pcsx2.git
GameDB: Fix empty could not find serial and searching for serial logs.
Fixes the logs from pasting when the size of the serial is 0 which is invalid. Update GameDatabase.cpp
This commit is contained in:
parent
059ce3b7f0
commit
a0b6290a4d
|
@ -753,6 +753,10 @@ const GameDatabaseSchema::GameEntry* GameDatabase::findGame(const std::string_vi
|
|||
GameDatabase::ensureLoaded();
|
||||
|
||||
std::string serialLower = StringUtil::toLower(serial);
|
||||
|
||||
if (serialLower.empty())
|
||||
return nullptr;
|
||||
|
||||
Console.WriteLn(fmt::format("[GameDB] Searching for '{}' in GameDB", serialLower));
|
||||
const auto gameEntry = s_game_db.find(serialLower);
|
||||
if (gameEntry != s_game_db.end())
|
||||
|
|
Loading…
Reference in New Issue