System: Leave title empty when booting physical audio CDs

This commit is contained in:
Stenzek 2024-03-25 23:15:22 +10:00
parent 7b8704aba1
commit 83ebad1129
No known key found for this signature in database
1 changed files with 2 additions and 1 deletions

View File

@ -3360,7 +3360,8 @@ void System::UpdateRunningGame(const char* path, CDImage* image, bool booting)
// TODO: We could pull the title from the PSF. // TODO: We could pull the title from the PSF.
s_running_game_title = Path::GetFileTitle(path); s_running_game_title = Path::GetFileTitle(path);
} }
else if (image) // Check for an audio CD. Those shouldn't set any title.
else if (image && image->GetTrack(1).mode != CDImage::TrackMode::Audio)
{ {
std::string id; std::string id;
GetGameDetailsFromImage(image, &id, &s_running_game_hash); GetGameDetailsFromImage(image, &id, &s_running_game_hash);