Skip to content
Permalink
Browse files
Merge pull request #10756 from AdmiralCurtiss/qt-memcard-change-hotfix
Qt/GameCubePane: Fix swapping memory cards mid-emulation.
  • Loading branch information
AdmiralCurtiss committed Jun 15, 2022
2 parents 431d757 + ac3920a commit f73b14b
Showing 1 changed file with 1 addition and 1 deletion.
@@ -372,14 +372,14 @@ void GameCubePane::BrowseMemcard(ExpansionInterface::Slot slot)
}
}

const std::string old_eu_path = Config::GetMemcardPath(slot, DiscIO::Region::PAL);
Config::SetBase(Config::GetInfoForMemcardPath(slot), raw_path);

if (Core::IsRunning())
{
// If emulation is running and the new card is different from the old one, notify the system to
// eject the old and insert the new card.
// TODO: This should probably done by a config change callback instead.
const std::string old_eu_path = Config::GetMemcardPath(slot, DiscIO::Region::PAL);
if (eu_path != old_eu_path)
{
// ChangeDevice unplugs the device for 1 second, which means that games should notice that

0 comments on commit f73b14b

Please sign in to comment.