137 |
|
GT_SetGadgetAttrs(PrefsGadgets[GDX_DrivePath10], PrefsWnd, NULL, GTST_String, (ULONG)prefs->DrivePath[2], TAG_DONE); |
138 |
|
GT_SetGadgetAttrs(PrefsGadgets[GDX_DrivePath11], PrefsWnd, NULL, GTST_String, (ULONG)prefs->DrivePath[3], TAG_DONE); |
139 |
|
|
140 |
– |
GT_SetGadgetAttrs(PrefsGadgets[GDX_DriveType8], PrefsWnd, NULL, GTCY_Active, prefs->DriveType[0], TAG_DONE); |
141 |
– |
GT_SetGadgetAttrs(PrefsGadgets[GDX_DriveType9], PrefsWnd, NULL, GTCY_Active, prefs->DriveType[1], TAG_DONE); |
142 |
– |
GT_SetGadgetAttrs(PrefsGadgets[GDX_DriveType10], PrefsWnd, NULL, GTCY_Active, prefs->DriveType[2], TAG_DONE); |
143 |
– |
GT_SetGadgetAttrs(PrefsGadgets[GDX_DriveType11], PrefsWnd, NULL, GTCY_Active, prefs->DriveType[3], TAG_DONE); |
144 |
– |
|
140 |
|
GT_SetGadgetAttrs(PrefsGadgets[GDX_MapSlash], PrefsWnd, NULL, GTCB_Checked, prefs->MapSlash, TAG_DONE); |
141 |
|
GT_SetGadgetAttrs(PrefsGadgets[GDX_Emul1541Proc], PrefsWnd, NULL, GTCB_Checked, prefs->Emul1541Proc, TAG_DONE); |
142 |
|
|
243 |
|
prefs->REUSize = PrefsMsg.Code; |
244 |
|
} |
245 |
|
|
251 |
– |
int DriveType8Clicked(void) |
252 |
– |
{ |
253 |
– |
prefs->DriveType[0] = PrefsMsg.Code; |
254 |
– |
} |
255 |
– |
|
256 |
– |
int DriveType9Clicked(void) |
257 |
– |
{ |
258 |
– |
prefs->DriveType[1] = PrefsMsg.Code; |
259 |
– |
} |
260 |
– |
|
261 |
– |
int DriveType10Clicked(void) |
262 |
– |
{ |
263 |
– |
prefs->DriveType[2] = PrefsMsg.Code; |
264 |
– |
} |
265 |
– |
|
266 |
– |
int DriveType11Clicked(void) |
267 |
– |
{ |
268 |
– |
prefs->DriveType[3] = PrefsMsg.Code; |
269 |
– |
} |
270 |
– |
|
246 |
|
void get_drive(int i) |
247 |
|
{ |
248 |
|
bool result = FALSE; |
270 |
|
strncpy(file, s, 255); |
271 |
|
*s = 0; |
272 |
|
|
273 |
< |
if (prefs->DriveType[i] == DRVTYPE_D64) |
274 |
< |
result = AslRequestTags(drive_req, |
275 |
< |
ASLFR_TitleText, (ULONG)"Frodo: Select disk image file", |
276 |
< |
ASLFR_DrawersOnly, FALSE, |
277 |
< |
ASLFR_DoPatterns, TRUE, |
278 |
< |
ASLFR_InitialPattern, (ULONG)"#?.(d64|x64)", |
279 |
< |
ASLFR_InitialDrawer, (ULONG)dir, |
280 |
< |
ASLFR_InitialFile, (ULONG)file, |
306 |
< |
TAG_DONE); |
307 |
< |
else |
308 |
< |
result = AslRequestTags(drive_req, |
309 |
< |
ASLFR_TitleText, (ULONG)"Frodo: Select archive file", |
310 |
< |
ASLFR_DrawersOnly, FALSE, |
311 |
< |
ASLFR_DoPatterns, TRUE, |
312 |
< |
ASLFR_InitialPattern, (ULONG)"#?.(t64|LNX)", |
313 |
< |
ASLFR_InitialDrawer, (ULONG)dir, |
314 |
< |
ASLFR_InitialFile, (ULONG)file, |
315 |
< |
TAG_DONE); |
273 |
> |
result = AslRequestTags(drive_req, |
274 |
> |
ASLFR_TitleText, (ULONG)"Frodo: Select disk image or archive file", |
275 |
> |
ASLFR_DrawersOnly, FALSE, |
276 |
> |
ASLFR_DoPatterns, TRUE, |
277 |
> |
ASLFR_InitialPattern, (ULONG)"#?.(d64|x64|t64|LNX|P00)", |
278 |
> |
ASLFR_InitialDrawer, (ULONG)dir, |
279 |
> |
ASLFR_InitialFile, (ULONG)file, |
280 |
> |
TAG_DONE); |
281 |
|
} |
282 |
|
|
283 |
|
if (result) { |