System: Fix loading state without media

This commit is contained in:
Stenzek 2024-08-12 21:21:27 +10:00
parent 3e708d066c
commit 5786f3a8c9
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -2556,7 +2556,7 @@ bool System::LoadStateFromBuffer(const SaveStateBuffer& buffer, Error* error, bo
INFO_LOG("Re-using same media '{}'", buffer.media_path);
media = std::move(old_media);
}
else
else if (!buffer.media_path.empty())
{
Error local_error;
media = CDImage::Open(buffer.media_path.c_str(), g_settings.cdrom_load_image_patches, error ? error : &local_error);