Settings: Fix memory cards not syncing with disc change in title mode
This commit is contained in:
parent
8c5f6bafc6
commit
88502e130e
|
@ -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 =
|
||||
|
|
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue