equal
deleted
inserted
replaced
41 #include "window_func.h" |
41 #include "window_func.h" |
42 #include "date_func.h" |
42 #include "date_func.h" |
43 |
43 |
44 /* Variables to display file lists */ |
44 /* Variables to display file lists */ |
45 FiosItem *_fios_list; |
45 FiosItem *_fios_list; |
46 int _saveload_mode; |
46 SaveLoadDialogMode _saveload_mode; |
47 |
47 |
48 |
48 |
49 static bool _fios_path_changed; |
49 static bool _fios_path_changed; |
50 static bool _savegame_sort_dirty; |
50 static bool _savegame_sort_dirty; |
51 |
51 |
1669 WDF_STD_TOOLTIPS | WDF_DEF_WIDGET | WDF_STD_BTN | WDF_UNCLICK_BUTTONS | WDF_RESIZABLE, |
1669 WDF_STD_TOOLTIPS | WDF_DEF_WIDGET | WDF_STD_BTN | WDF_UNCLICK_BUTTONS | WDF_RESIZABLE, |
1670 _save_dialog_widgets, |
1670 _save_dialog_widgets, |
1671 SaveLoadDlgWndProc, |
1671 SaveLoadDlgWndProc, |
1672 }; |
1672 }; |
1673 |
1673 |
1674 void ShowSaveLoadDialog(int mode) |
1674 void ShowSaveLoadDialog(SaveLoadDialogMode mode) |
1675 { |
1675 { |
1676 static const StringID saveload_captions[] = { |
1676 static const StringID saveload_captions[] = { |
1677 STR_4001_LOAD_GAME, |
1677 STR_4001_LOAD_GAME, |
1678 STR_0298_LOAD_SCENARIO, |
1678 STR_0298_LOAD_SCENARIO, |
1679 STR_4000_SAVE_GAME, |
1679 STR_4000_SAVE_GAME, |