mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-04-26 19:25:42 -04:00
System: Fix crash on non-database game
This commit is contained in:
parent
c7f987bfb7
commit
82cdef45b3
@ -2910,7 +2910,9 @@ std::unique_ptr<MemoryCard> System::GetMemoryCardForSlot(u32 slot, MemoryCardTyp
|
|||||||
|
|
||||||
// But prefer a disc-specific card if one already exists.
|
// But prefer a disc-specific card if one already exists.
|
||||||
std::string disc_card_path =
|
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 (disc_card_path != card_path)
|
||||||
{
|
{
|
||||||
if (card_path.empty() || !g_settings.memory_card_use_playlist_title ||
|
if (card_path.empty() || !g_settings.memory_card_use_playlist_title ||
|
||||||
|
Loading…
x
Reference in New Issue
Block a user