mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-05-16 19:15:42 -04:00
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 "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…
x
Reference in New Issue
Block a user