Win32 - fix types in movie options dialog, added auto backup to config
This commit is contained in:
parent
e5019d818f
commit
0e7abb6dd8
|
@ -214,6 +214,7 @@ static CFGSTRUCT fceuconfig[] = {
|
||||||
AC(movieSubtitles),
|
AC(movieSubtitles),
|
||||||
AC(subtitlesOnAVI),
|
AC(subtitlesOnAVI),
|
||||||
AC(bindSavestate),
|
AC(bindSavestate),
|
||||||
|
AC(autoMovieBackup),
|
||||||
AC(ClipSidesOffset),
|
AC(ClipSidesOffset),
|
||||||
AC(PPUViewRefresh),
|
AC(PPUViewRefresh),
|
||||||
AC(NTViewRefresh),
|
AC(NTViewRefresh),
|
||||||
|
|
|
@ -37,7 +37,7 @@ void UpdateCheckBoxes(HWND hwndDlg)
|
||||||
CheckDlgButton(hwndDlg, IDC_MOVIE_BINDSAVESTATES, bindSavestate ? BST_CHECKED : BST_UNCHECKED);
|
CheckDlgButton(hwndDlg, IDC_MOVIE_BINDSAVESTATES, bindSavestate ? BST_CHECKED : BST_UNCHECKED);
|
||||||
CheckDlgButton(hwndDlg, IDC_MOVIE_DISPLAYSTATUSICON, status_icon ? BST_CHECKED : BST_UNCHECKED);
|
CheckDlgButton(hwndDlg, IDC_MOVIE_DISPLAYSTATUSICON, status_icon ? BST_CHECKED : BST_UNCHECKED);
|
||||||
CheckDlgButton(hwndDlg, IDC_MOVIE_DISPLAYSUBTITLES, movieSubtitles ? BST_CHECKED : BST_UNCHECKED);
|
CheckDlgButton(hwndDlg, IDC_MOVIE_DISPLAYSUBTITLES, movieSubtitles ? BST_CHECKED : BST_UNCHECKED);
|
||||||
CheckDlgButton(hwndDlg, IDC_MOVIE_DISPLAYSUBTITLES, subtitlesOnAVI ? BST_CHECKED : BST_UNCHECKED);
|
CheckDlgButton(hwndDlg, IDC_MOVIE_SUBTITLESINAVI, subtitlesOnAVI ? BST_CHECKED : BST_UNCHECKED);
|
||||||
CheckDlgButton(hwndDlg, IDC_MOVIE_AUTOBACKUP, autoMovieBackup ? BST_CHECKED : BST_UNCHECKED);
|
CheckDlgButton(hwndDlg, IDC_MOVIE_AUTOBACKUP, autoMovieBackup ? BST_CHECKED : BST_UNCHECKED);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -78,7 +78,7 @@ BOOL CALLBACK MovieOptionsCallB(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM l
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case IDC_MOVIE_DISPLAYSTATUSICON:
|
case IDC_MOVIE_DISPLAYSTATUSICON:
|
||||||
status_icon = pauseAfterPlayback?0:1;
|
status_icon = status_icon?0:1;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case IDC_MOVIE_DISPLAYSUBTITLES:
|
case IDC_MOVIE_DISPLAYSUBTITLES:
|
||||||
|
|
|
@ -99,15 +99,12 @@ BEGIN
|
||||||
POPUP "&Config"
|
POPUP "&Config"
|
||||||
BEGIN
|
BEGIN
|
||||||
MENUITEM "Hide Menu", MENU_HIDE_MENU
|
MENUITEM "Hide Menu", MENU_HIDE_MENU
|
||||||
MENUITEM "Pause After Playback", MENU_PAUSEAFTERPLAYBACK
|
|
||||||
MENUITEM "Enable Run in Background", MENU_RUN_IN_BACKGROUND
|
MENUITEM "Enable Run in Background", MENU_RUN_IN_BACKGROUND
|
||||||
MENUITEM "Enable Background Input", MENU_BACKGROUND_INPUT
|
MENUITEM "Enable Background Input", MENU_BACKGROUND_INPUT
|
||||||
MENUITEM "Enable Auto-save", MENU_ENABLE_AUTOSAVE
|
MENUITEM "Enable Auto-save", MENU_ENABLE_AUTOSAVE
|
||||||
MENUITEM "Frame Adv. - Skip Lag", MENU_DISPLAY_FA_LAGSKIP
|
MENUITEM "Frame Adv. - Skip Lag", MENU_DISPLAY_FA_LAGSKIP
|
||||||
MENUITEM "Bind savestates to movie", MENU_CONFIG_BINDSAVES
|
|
||||||
POPUP "Display"
|
POPUP "Display"
|
||||||
BEGIN
|
BEGIN
|
||||||
MENUITEM "Movie Status Icon", MENU_SHOW_STATUS_ICON
|
|
||||||
POPUP "Input Display"
|
POPUP "Input Display"
|
||||||
BEGIN
|
BEGIN
|
||||||
MENUITEM "Off", MENU_INPUTDISPLAY_0
|
MENUITEM "Off", MENU_INPUTDISPLAY_0
|
||||||
|
@ -117,8 +114,6 @@ BEGIN
|
||||||
END
|
END
|
||||||
MENUITEM "Lag Counter", MENU_DISPLAY_LAGCOUNTER
|
MENUITEM "Lag Counter", MENU_DISPLAY_LAGCOUNTER
|
||||||
MENUITEM "Frame Counter", ID_DISPLAY_FRAMECOUNTER
|
MENUITEM "Frame Counter", ID_DISPLAY_FRAMECOUNTER
|
||||||
MENUITEM "Movie Subtitles", ID_DISPLAY_MOVIESUBTITLES
|
|
||||||
MENUITEM "Movie Subtitles in AVI", ID_DISPLAY_MOVIESUBTITLES_AVI
|
|
||||||
MENUITEM SEPARATOR
|
MENUITEM SEPARATOR
|
||||||
MENUITEM "Graphics: BG", MENU_DISPLAY_BG
|
MENUITEM "Graphics: BG", MENU_DISPLAY_BG
|
||||||
MENUITEM "Graphics: OBJ", MENU_DISPLAY_OBJ
|
MENUITEM "Graphics: OBJ", MENU_DISPLAY_OBJ
|
||||||
|
|
|
@ -1043,10 +1043,6 @@ UpdateContextMenuItems(hfceuxcontextsub, whichContext);
|
||||||
case MENU_HIDE_MENU:
|
case MENU_HIDE_MENU:
|
||||||
ToggleHideMenu();
|
ToggleHideMenu();
|
||||||
break;
|
break;
|
||||||
case MENU_PAUSEAFTERPLAYBACK:
|
|
||||||
pauseAfterPlayback = pauseAfterPlayback?0:1;
|
|
||||||
UpdateCheckedMenuItems();
|
|
||||||
break;
|
|
||||||
case MENU_RUN_IN_BACKGROUND:
|
case MENU_RUN_IN_BACKGROUND:
|
||||||
eoptions ^= EO_BGRUN;
|
eoptions ^= EO_BGRUN;
|
||||||
if((eoptions & EO_BGRUN) == 0)
|
if((eoptions & EO_BGRUN) == 0)
|
||||||
|
@ -1072,15 +1068,8 @@ UpdateContextMenuItems(hfceuxcontextsub, whichContext);
|
||||||
frameAdvanceLagSkip ^= 1;
|
frameAdvanceLagSkip ^= 1;
|
||||||
UpdateCheckedMenuItems();
|
UpdateCheckedMenuItems();
|
||||||
break;
|
break;
|
||||||
case MENU_CONFIG_BINDSAVES:
|
|
||||||
bindSavestate ^= 1;
|
|
||||||
UpdateCheckedMenuItems();
|
|
||||||
|
|
||||||
//Display submenu
|
//Display submenu
|
||||||
case MENU_SHOW_STATUS_ICON:
|
|
||||||
status_icon = !status_icon;
|
|
||||||
UpdateCheckedMenuItems();
|
|
||||||
break;
|
|
||||||
case MENU_INPUTDISPLAY_0: //Input display off
|
case MENU_INPUTDISPLAY_0: //Input display off
|
||||||
input_display = 0;
|
input_display = 0;
|
||||||
UpdateCheckedMenuItems();
|
UpdateCheckedMenuItems();
|
||||||
|
@ -1105,16 +1094,6 @@ UpdateContextMenuItems(hfceuxcontextsub, whichContext);
|
||||||
FCEUI_MovieToggleFrameDisplay();
|
FCEUI_MovieToggleFrameDisplay();
|
||||||
UpdateCheckedMenuItems();
|
UpdateCheckedMenuItems();
|
||||||
break;
|
break;
|
||||||
case ID_DISPLAY_MOVIESUBTITLES:
|
|
||||||
movieSubtitles ^= 1;
|
|
||||||
if (movieSubtitles) FCEU_DispMessage("Movie subtitles on");
|
|
||||||
else FCEU_DispMessage("Movie subtitles off");
|
|
||||||
UpdateCheckedMenuItems();
|
|
||||||
break;
|
|
||||||
case ID_DISPLAY_MOVIESUBTITLES_AVI:
|
|
||||||
subtitlesOnAVI ^= 1;
|
|
||||||
UpdateCheckedMenuItems();
|
|
||||||
break;
|
|
||||||
case MENU_DISPLAY_BG:
|
case MENU_DISPLAY_BG:
|
||||||
case MENU_DISPLAY_OBJ:
|
case MENU_DISPLAY_OBJ:
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue