PAL/NTSC INI option for Menu core.
This commit is contained in:
@@ -15,6 +15,7 @@ vscale_border=0 ; set vertical border for TVs cutting the upper/bottom pa
|
||||
;bootscreen=0 ; uncomment to disable boot screen of some cores like Minimig.
|
||||
;mouse_throttle=10 ; 1-100 mouse speed divisor. Useful for very sensitive mouses
|
||||
rbf_hide_datecode=0 ; 1 - hides datecodes from rbf file names. Press F2 for quick temporary toggle
|
||||
menu_pal=0 ; 1 - PAL mode for menu core
|
||||
|
||||
; USER button emulation by keybaord. Usually it's reset button.
|
||||
; 0 - lctrl+lalt+ralt (lctrl+lgui+rgui on keyrah)
|
||||
|
||||
1
cfg.cpp
1
cfg.cpp
@@ -43,6 +43,7 @@ const ini_var_t ini_vars[] = {
|
||||
{ "VSCALE_MODE", (void*)(&(cfg.vscale_mode)), UINT8, 0, 3, 1 },
|
||||
{ "VSCALE_BORDER", (void*)(&(cfg.vscale_border)), UINT8, 0, 100, 1 },
|
||||
{ "RBF_HIDE_DATECODE", (void*)(&(cfg.rbf_hide_datecode)), UINT8, 0, 1, 1 },
|
||||
{ "MENU_PAL", (void*)(&(cfg.menu_pal)), UINT8, 0, 1, 1 },
|
||||
};
|
||||
|
||||
// mist ini config
|
||||
|
||||
1
cfg.h
1
cfg.h
@@ -32,6 +32,7 @@ typedef struct {
|
||||
uint8_t vscale_mode;
|
||||
uint8_t vscale_border;
|
||||
uint8_t rbf_hide_datecode;
|
||||
uint8_t menu_pal;
|
||||
char video_conf[1024];
|
||||
} cfg_t;
|
||||
|
||||
|
||||
@@ -2807,7 +2807,7 @@ static void setVideo()
|
||||
for (int i = 9; i < 21; i++)
|
||||
{
|
||||
printf("0x%X, ", vitems[i]);
|
||||
if (i & 1) spi_w(vitems[i] | ((i==9 && cfg.vsync_adjust==2) ? 0x8000 : 0));
|
||||
if (i & 1) spi_w(vitems[i] | ((i==9 && (is_menu_core() ? cfg.menu_pal : (cfg.vsync_adjust==2))) ? 0x8000 : 0));
|
||||
else
|
||||
{
|
||||
spi_w(vitems[i]);
|
||||
|
||||
Reference in New Issue
Block a user