Skip to content

Commit

Permalink
Added Y/C Video Toggle into the ini file
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeS11 committed Sep 26, 2022
1 parent 5728bdd commit 82b2ffd
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions cfg.cpp
Expand Up @@ -33,6 +33,7 @@ typedef struct
static const ini_var_t ini_vars[] =
{
{ "YPBPR", (void*)(&(cfg.ypbpr)), UINT8, 0, 1 },
{ "YC_OUT", (void*)(&(cfg.yc_out)), UINT8, 0, 1 },
{ "COMPOSITE_SYNC", (void*)(&(cfg.csync)), UINT8, 0, 1 },
{ "FORCED_SCANDOUBLER", (void*)(&(cfg.forced_scandoubler)), UINT8, 0, 1 },
{ "VGA_SCALER", (void*)(&(cfg.vga_scaler)), UINT8, 0, 1 },
Expand Down
1 change: 1 addition & 0 deletions cfg.h
Expand Up @@ -15,6 +15,7 @@ typedef struct {
uint8_t reset_combo;
uint8_t ypbpr;
uint8_t csync;
uint8_t yc_out;
uint8_t vga_scaler;
uint8_t vga_sog;
uint8_t hdmi_audio_96k;
Expand Down
1 change: 1 addition & 0 deletions user_io.cpp
Expand Up @@ -2693,6 +2693,7 @@ void user_io_send_buttons(char force)

if (cfg.vga_scaler) map |= CONF_VGA_SCALER;
if (cfg.vga_sog) map |= CONF_VGA_SOG;
if (cfg.yc_out) map |= CONF_YC_OUT;
if (cfg.csync) map |= CONF_CSYNC;
if (cfg.ypbpr) map |= CONF_YPBPR;
if (cfg.forced_scandoubler) map |= CONF_FORCED_SCANDOUBLER;
Expand Down
1 change: 1 addition & 0 deletions user_io.h
Expand Up @@ -147,6 +147,7 @@
#define CONF_DIRECT_VIDEO 0b0000010000000000
#define CONF_HDMI_LIMITED2 0b0000100000000000
#define CONF_VGA_FB 0b0001000000000000
#define CONF_YC_OUT 0b0010000000000000

// core type value should be unlikely to be returned by broken cores
#define CORE_TYPE_UNKNOWN 0x55
Expand Down

0 comments on commit 82b2ffd

Please sign in to comment.