Settings: Fix memory cards not syncing with disc change in title mode

pull/538/head
Connor McLaughlin 5 years ago
parent 8c5f6bafc6
commit 88502e130e

@ -2,9 +2,17 @@
#include "common/string_util.h" #include "common/string_util.h"
#include "host_interface.h" #include "host_interface.h"
#include <array> #include <array>
#include <algorithm>
Settings::Settings() = default; Settings::Settings() = default;
bool Settings::HasAnyPerGameMemoryCards() const
{
return std::any_of(memory_card_types.begin(), memory_card_types.end(), [](MemoryCardType t) {
return (t == MemoryCardType::PerGame || t == MemoryCardType::PerGameTitle);
});
}
void Settings::Load(SettingsInterface& si) void Settings::Load(SettingsInterface& si)
{ {
region = region =

@ -113,10 +113,7 @@ struct Settings
bool log_to_window = false; bool log_to_window = false;
bool log_to_file = false; bool log_to_file = false;
ALWAYS_INLINE bool HasAnyPerGameMemoryCards() const bool HasAnyPerGameMemoryCards() const;
{
return (memory_card_types[0] == MemoryCardType::PerGame || memory_card_types[1] == MemoryCardType::PerGame);
}
enum : u32 enum : u32
{ {

Loading…
Cancel
Save