video: Add support for [arcade_vertical] section (#691)

This commit is contained in:
Martin Donlon
2022-09-11 00:12:46 -07:00
committed by GitHub
parent b1d6ee2f52
commit a845f8407f
4 changed files with 42 additions and 16 deletions

View File

@@ -12,6 +12,7 @@
#include "file_io.h"
#include "user_io.h"
#include "video.h"
#include "support/arcade/mra_loader.h"
cfg_t cfg;
@@ -193,6 +194,7 @@ static int ini_get_section(char* buf, const char *vmode)
if (!strcasecmp(buf, "MiSTer") ||
(is_arcade() && !strcasecmp(buf, "arcade")) ||
(arcade_is_vertical() && !strcasecmp(buf, "arcade_vertical")) ||
((wc_pos >= 0) ? !strncasecmp(buf, user_io_get_core_name(1), wc_pos) : !strcasecmp(buf, user_io_get_core_name(1))) ||
((wc_pos >= 0) ? !strncasecmp(buf, user_io_get_core_name(0), wc_pos) : !strcasecmp(buf, user_io_get_core_name(0))))
{