76
72
/* ------------------------------------------------------------------------- */
78
static const resource_t resources[] = {
79
{ "FSDevice8ConvertP00", RES_INTEGER, (resource_value_t)1,
80
(void *)&fsdevice_convert_p00_enabled[0],
74
static const resource_string_t resources_string[] = {
75
{ "FSDevice8Dir", FSDEVICE_DEFAULT_DIR, RES_EVENT_NO, NULL,
76
(void *)&fsdevice_dir[0], set_fsdevice_dir, (void *)8 },
77
{ "FSDevice9Dir", FSDEVICE_DEFAULT_DIR, RES_EVENT_NO, NULL,
78
(void *)&fsdevice_dir[1], set_fsdevice_dir, (void *)9 },
79
{ "FSDevice10Dir", FSDEVICE_DEFAULT_DIR, RES_EVENT_NO, NULL,
80
(void *)&fsdevice_dir[2], set_fsdevice_dir, (void *)10 },
81
{ "FSDevice11Dir", FSDEVICE_DEFAULT_DIR, RES_EVENT_NO, NULL,
82
(void *)&fsdevice_dir[3], set_fsdevice_dir, (void *)11 },
86
static const resource_int_t resources_int[] = {
87
{ "FSDevice8ConvertP00", 1, RES_EVENT_NO, NULL,
88
&fsdevice_convert_p00_enabled[0],
81
89
set_fsdevice_convert_p00, (void *)8 },
82
{ "FSDevice9ConvertP00", RES_INTEGER, (resource_value_t)1,
83
(void *)&fsdevice_convert_p00_enabled[1],
90
{ "FSDevice9ConvertP00", 1, RES_EVENT_NO, NULL,
91
&fsdevice_convert_p00_enabled[1],
84
92
set_fsdevice_convert_p00, (void *)9 },
85
{ "FSDevice10ConvertP00", RES_INTEGER, (resource_value_t)1,
86
(void *)&fsdevice_convert_p00_enabled[2],
93
{ "FSDevice10ConvertP00", 1, RES_EVENT_NO, NULL,
94
&fsdevice_convert_p00_enabled[2],
87
95
set_fsdevice_convert_p00, (void *)10 },
88
{ "FSDevice11ConvertP00", RES_INTEGER, (resource_value_t)1,
89
(void *)&fsdevice_convert_p00_enabled[3],
96
{ "FSDevice11ConvertP00", 1, RES_EVENT_NO, NULL,
97
&fsdevice_convert_p00_enabled[3],
90
98
set_fsdevice_convert_p00, (void *)11 },
91
{ "FSDevice8Dir", RES_STRING, (resource_value_t)FSDEVICE_DEFAULT_DIR,
92
(void *)&fsdevice_dir[0], set_fsdevice_dir, (void *)8 },
93
{ "FSDevice9Dir", RES_STRING, (resource_value_t)FSDEVICE_DEFAULT_DIR,
94
(void *)&fsdevice_dir[1], set_fsdevice_dir, (void *)9 },
95
{ "FSDevice10Dir", RES_STRING, (resource_value_t)FSDEVICE_DEFAULT_DIR,
96
(void *)&fsdevice_dir[2], set_fsdevice_dir, (void *)10 },
97
{ "FSDevice11Dir", RES_STRING, (resource_value_t)FSDEVICE_DEFAULT_DIR,
98
(void *)&fsdevice_dir[3], set_fsdevice_dir, (void *)11 },
99
{ "FSDevice8SaveP00", RES_INTEGER, (resource_value_t)1,
100
(void *)&fsdevice_save_p00_enabled[0],
99
{ "FSDevice8SaveP00", 1, RES_EVENT_NO, NULL,
100
&fsdevice_save_p00_enabled[0],
101
101
set_fsdevice_save_p00, (void *)8 },
102
{ "FSDevice9SaveP00", RES_INTEGER, (resource_value_t)1,
103
(void *)&fsdevice_save_p00_enabled[1],
102
{ "FSDevice9SaveP00", 1, RES_EVENT_NO, NULL,
103
&fsdevice_save_p00_enabled[1],
104
104
set_fsdevice_save_p00, (void *)9 },
105
{ "FSDevice10SaveP00", RES_INTEGER, (resource_value_t)1,
106
(void *)&fsdevice_save_p00_enabled[2],
105
{ "FSDevice10SaveP00", 1, RES_EVENT_NO, NULL,
106
&fsdevice_save_p00_enabled[2],
107
107
set_fsdevice_save_p00, (void *)10 },
108
{ "FSDevice11SaveP00", RES_INTEGER, (resource_value_t)0,
109
(void *)&fsdevice_save_p00_enabled[3],
108
{ "FSDevice11SaveP00", 0, RES_EVENT_NO, NULL,
109
&fsdevice_save_p00_enabled[3],
110
110
set_fsdevice_save_p00, (void *)11 },
111
{ "FSDevice8HideCBMFiles", RES_INTEGER, (resource_value_t)0,
112
(void *)&fsdevice_hide_cbm_files_enabled[0],
111
{ "FSDevice8HideCBMFiles", 0, RES_EVENT_NO, NULL,
112
&fsdevice_hide_cbm_files_enabled[0],
113
113
set_fsdevice_hide_cbm_files, (void *)8 },
114
{ "FSDevice9HideCBMFiles", RES_INTEGER, (resource_value_t)0,
115
(void *)&fsdevice_hide_cbm_files_enabled[1],
114
{ "FSDevice9HideCBMFiles", 0, RES_EVENT_NO, NULL,
115
&fsdevice_hide_cbm_files_enabled[1],
116
116
set_fsdevice_hide_cbm_files, (void *)9 },
117
{ "FSDevice10HideCBMFiles", RES_INTEGER, (resource_value_t)0,
118
(void *)&fsdevice_hide_cbm_files_enabled[2],
117
{ "FSDevice10HideCBMFiles", 0, RES_EVENT_NO, NULL,
118
&fsdevice_hide_cbm_files_enabled[2],
119
119
set_fsdevice_hide_cbm_files, (void *)10 },
120
{ "FSDevice11HideCBMFiles", RES_INTEGER, (resource_value_t)0,
121
(void *)&fsdevice_hide_cbm_files_enabled[3],
120
{ "FSDevice11HideCBMFiles", 0, RES_EVENT_NO, NULL,
121
&fsdevice_hide_cbm_files_enabled[3],
122
122
set_fsdevice_hide_cbm_files, (void *)11 },
126
126
int fsdevice_resources_init(void)
128
return resources_register(resources);
128
if (resources_register_string(resources_string) < 0)
131
return resources_register_int(resources_int);
131
134
void fsdevice_resources_shutdown(void)