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

This commit is contained in:
Connor McLaughlin 2020-06-04 02:15:27 +10:00
parent 8c5f6bafc6
commit 88502e130e
2 changed files with 9 additions and 4 deletions

View File

@ -2,9 +2,17 @@
#include "common/string_util.h"
#include "host_interface.h"
#include <array>
#include <algorithm>
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)
{
region =

View File

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