mirror of https://github.com/PCSX2/pcsx2.git
VMManager: Don't lookup the bios as a game.
Fixes the gamedb log falsely pasting that a bios is not in the db.
This commit is contained in:
parent
77f600a16c
commit
30ad66e8f1
|
@ -356,6 +356,9 @@ void VMManager::ApplyGameFixes()
|
||||||
{
|
{
|
||||||
s_active_game_fixes = 0;
|
s_active_game_fixes = 0;
|
||||||
|
|
||||||
|
if (s_game_crc == 0)
|
||||||
|
return;
|
||||||
|
|
||||||
const GameDatabaseSchema::GameEntry* game = GameDatabase::findGame(s_game_serial);
|
const GameDatabaseSchema::GameEntry* game = GameDatabase::findGame(s_game_serial);
|
||||||
if (!game)
|
if (!game)
|
||||||
return;
|
return;
|
||||||
|
@ -698,7 +701,9 @@ void VMManager::UpdateRunningGame(bool resetting, bool game_starting, bool swapp
|
||||||
|
|
||||||
std::string memcardFilters;
|
std::string memcardFilters;
|
||||||
|
|
||||||
if (const GameDatabaseSchema::GameEntry* game = GameDatabase::findGame(s_game_serial))
|
if (s_game_crc == 0)
|
||||||
|
s_game_name = "Booting PS2 BIOS...";
|
||||||
|
else if (const GameDatabaseSchema::GameEntry* game = GameDatabase::findGame(s_game_serial))
|
||||||
{
|
{
|
||||||
if (!s_elf_override.empty())
|
if (!s_elf_override.empty())
|
||||||
s_game_name = Path::GetFileTitle(FileSystem::GetDisplayNameFromPath(s_elf_override));
|
s_game_name = Path::GetFileTitle(FileSystem::GetDisplayNameFromPath(s_elf_override));
|
||||||
|
@ -707,11 +712,6 @@ void VMManager::UpdateRunningGame(bool resetting, bool game_starting, bool swapp
|
||||||
|
|
||||||
memcardFilters = game->memcardFiltersAsString();
|
memcardFilters = game->memcardFiltersAsString();
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
if (s_game_serial.empty() && s_game_crc == 0)
|
|
||||||
s_game_name = "Booting PS2 BIOS...";
|
|
||||||
}
|
|
||||||
|
|
||||||
sioSetGameSerial(memcardFilters.empty() ? s_game_serial : memcardFilters);
|
sioSetGameSerial(memcardFilters.empty() ? s_game_serial : memcardFilters);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue