System: Fix crash when using unknown BIOS

This commit is contained in:
Stenzek 2023-04-14 18:14:39 +10:00
parent fe41e92579
commit 2e3d924bc6
1 changed files with 1 additions and 1 deletions

View File

@ -1804,7 +1804,7 @@ bool System::LoadBIOS()
if (s_bios_image_info) if (s_bios_image_info)
Log_InfoPrintf("Using BIOS: %s", s_bios_image_info->description); Log_InfoPrintf("Using BIOS: %s", s_bios_image_info->description);
else else
Log_WarningPrintf("Using an unknown BIOS: %s", s_bios_image_info->hash.ToString().c_str()); Log_WarningPrintf("Using an unknown BIOS: %s", s_bios_hash.ToString().c_str());
std::memcpy(Bus::g_bios, bios_image->data(), Bus::BIOS_SIZE); std::memcpy(Bus::g_bios, bios_image->data(), Bus::BIOS_SIZE);
return true; return true;