Merge pull request #777 from housello/master

Shared memory card support with libtetro method
This commit is contained in:
Autechre 2021-03-11 08:45:27 +01:00 committed by GitHub
commit 573de0a46a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 6 deletions

View File

@ -3621,12 +3621,12 @@ static void check_variables(bool startup)
{
if (!strcmp(var.value, "enabled"))
{
if(use_mednafen_memcard0_method)
// if(use_mednafen_memcard0_method)
shared_memorycards = true;
else
MDFND_DispMessage(3, RETRO_LOG_WARN,
RETRO_MESSAGE_TARGET_ALL, RETRO_MESSAGE_TYPE_NOTIFICATION,
"Memory Card 0 Method not set to Mednafen; shared memory cards could not be enabled.");
// else
// MDFND_DispMessage(3, RETRO_LOG_WARN,
// RETRO_MESSAGE_TARGET_ALL, RETRO_MESSAGE_TYPE_NOTIFICATION,
// "Memory Card 0 Method not set to Mednafen; shared memory cards could not be enabled.");
}
else if (!strcmp(var.value, "disabled"))
{

View File

@ -1032,7 +1032,7 @@ struct retro_core_option_definition option_defs_us[] = {
{
BEETLE_OPT(shared_memory_cards),
"Shared Memory Cards (Restart)",
"When enabled, all games will save to and load from the same memory card files. When disabled, separate memory card files will be generated for each item of loaded content. Note: 'Memory Card 0 Method' must be set to 'Mednafen' for shared memory cards to take effect.",
"When enabled, all games will save to and load from the same memory card files. When disabled, separate memory card files will be generated for each item of loaded content. Note: if 'Memory Card 0 Method' is set to 'Libretro', only the right memory card will be affected.",
{
{ "disabled", NULL },
{ "enabled", NULL },