From 82cdef45b377eae34180af01cdd329cfd957d507 Mon Sep 17 00:00:00 2001 From: Stenzek Date: Wed, 23 Aug 2023 19:39:22 +1000 Subject: [PATCH] System: Fix crash on non-database game --- src/core/system.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/core/system.cpp b/src/core/system.cpp index f8e6a9137..9d88fdbcf 100644 --- a/src/core/system.cpp +++ b/src/core/system.cpp @@ -2910,7 +2910,9 @@ std::unique_ptr System::GetMemoryCardForSlot(u32 slot, MemoryCardTyp // But prefer a disc-specific card if one already exists. std::string disc_card_path = - g_settings.GetGameMemoryCardPath(MemoryCard::SanitizeGameTitleForFileName(s_running_game_entry->title), slot); + g_settings.GetGameMemoryCardPath(MemoryCard::SanitizeGameTitleForFileName( + s_running_game_entry ? s_running_game_entry->title : s_running_game_title), + slot); if (disc_card_path != card_path) { if (card_path.empty() || !g_settings.memory_card_use_playlist_title ||