Skip to content

Commit 598d393

Browse files
committed
System: Don't create any memory cards in PSF/GPU Dump mode
1 parent 36ebaf8 commit 598d393

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/core/system.cpp

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3797,6 +3797,10 @@ void System::ResetControllers()
37973797

37983798
void System::UpdateMemoryCards()
37993799
{
3800+
// Disable memory cards when running PSFs/GPU dumps.
3801+
if ((!s_state.running_game_path.empty() && IsPsfPath(s_state.running_game_path.c_str())) || IsReplayingGPUDump())
3802+
return;
3803+
38003804
for (u32 i = 0; i < NUM_CONTROLLER_AND_CARD_PORTS; i++)
38013805
{
38023806
const MemoryCardType type = g_settings.memory_card_types[i];
@@ -5693,11 +5697,6 @@ std::string System::GetGameMemoryCardPath(std::string_view serial, std::string_v
56935697
std::string System::GetMemoryCardPathForSlot(u32 slot, MemoryCardType type)
56945698
{
56955699
std::string ret;
5696-
5697-
// Disable memory cards when running PSFs/GPU dumps.
5698-
if ((!s_state.running_game_path.empty() && IsPsfPath(s_state.running_game_path.c_str())) || IsReplayingGPUDump())
5699-
return ret;
5700-
57015700
std::string message_key = fmt::format("MemoryCard{}SharedWarning", slot);
57025701

57035702
switch (type)

0 commit comments

Comments
 (0)