summaryrefslogtreecommitdiff
path: root/plugins/Updater/options.h
blob: ccaaacf1d184168a3bac8be4ee689518fae6bdab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#ifndef _OPTIONS_INC
#define _OPTIONS_INC

#include "services.h"
#include "icons.h"

typedef enum {VR_MAJOR, VR_MINOR, VR_RELEASE, VR_BUILD} VersionRequirement;

typedef struct Options_tag {
	bool check_on_startup;
	bool check_once;
	bool check_daily;
	bool no_conf_idle;
	bool backup;
	TCHAR temp_folder[MAX_PATH];
	TCHAR backup_folder[MAX_PATH];
	TCHAR data_folder[MAX_PATH];
	bool use_xml_backend;
	bool start_offline;
	bool popup_notify;
	bool set_colours;
	bool restart_menu_item;
	bool update_and_exit_menu_item;
	COLORREF bkCol;
	COLORREF textCol;
	VersionRequirement ver_req;
	bool save_zips;
	bool no_unzip;
	bool auto_dll_only;
	TCHAR zip_folder[MAX_PATH];
} Options;

extern Options options;

extern HWND hwndOptions;

#define WMU_CHECKING		(WM_USER + 41)
#define WMU_DONECHECKING	(WM_USER + 42)


int OptInit(WPARAM wParam, LPARAM lParam);

void LoadOptions();
void SaveOptions();

// do this after icolib support has been handled
void InitOptionsMenuItems();

#endif