Rev 537 | Rev 550 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 537 | Rev 544 | ||
---|---|---|---|
Line 73... | Line 73... | ||
73 | // DM 28 Nov 2021: Removed this function. It makes no sense! The internal state is in the memory |
73 | // DM 28 Nov 2021: Removed this function. It makes no sense! The internal state is in the memory |
74 | // and the dialog is only the view! |
74 | // and the dialog is only the view! |
75 | 75 | ||
76 | /* |
76 | /* |
77 | int i; |
77 | int i; |
78 | char s[MAXEXPR+1]; |
78 | char s[MAXEXPR]; |
79 | 79 | ||
80 | for(i = 0; i < 8; ++i) |
80 | for(i = 0; i < 8; ++i) |
81 | slider[i] = (value_type)(GETSLIDERVALUE(dp,FIRSTCTLITEM+i)); |
81 | slider[i] = (value_type)(GETSLIDERVALUE(dp,FIRSTCTLITEM+i)); |
82 | 82 | ||
83 | if(!gdata->standalone) |
83 | if(!gdata->standalone) |
84 | for(i = 0; i < 4; ++i){ |
84 | for(i = 0; i < 4; ++i){ |
85 | // stash expression strings |
85 | // stash expression strings |
86 | if(GETCTLTEXT(dp,FIRSTEXPRITEM+i,s,MAXEXPR)){ |
86 | if(GETCTLTEXT(dp,FIRSTEXPRITEM+i,s,MAXEXPR)){ // cchMax: NULL is included, so MAXEXPR is correct |
87 | if(expr[i]) |
87 | if(expr[i]) |
88 | free(expr[i]); |
88 | free(expr[i]); |
89 | expr[i] = _strdup(s); |
89 | expr[i] = _strdup(s); |
90 | } |
90 | } |
91 | if(!expr[i]) |
91 | if(!expr[i]) |
Line 93... | Line 93... | ||
93 | } |
93 | } |
94 | */ |
94 | */ |
95 | } |
95 | } |
96 | 96 | ||
97 | struct node *updateexpr(DIALOGREF dp,int item){ |
97 | struct node *updateexpr(DIALOGREF dp,int item){ |
98 | char s[MAXEXPR+1]; |
98 | char s[MAXEXPR]; |
99 | int i; |
99 | int i; |
100 | 100 | ||
101 | i = item - FIRSTEXPRITEM; |
101 | i = item - FIRSTEXPRITEM; |
102 | 102 | ||
103 | freetree(tree[i]); |
103 | freetree(tree[i]); |
104 | 104 | ||
105 | if(!gdata->standalone){ |
105 | if(!gdata->standalone){ |
106 | GETCTLTEXT(dp,item,s,MAXEXPR); |
106 | GETCTLTEXT(dp,item,s,MAXEXPR); // cchMax: NULL is included, so MAXEXPR is correct |
107 | 107 | ||
108 | if(expr[i]) |
108 | if(expr[i]) |
109 | free(expr[i]); |
109 | free(expr[i]); |
110 | expr[i] = _strdup(s); |
110 | expr[i] = _strdup(s); |
111 | } |
111 | } |
Line 376... | Line 376... | ||
376 | tmp1 = filters; |
376 | tmp1 = filters; |
377 | 377 | ||
378 | FF_GetMsg(title, MSG_LOAD_FILTER_SETTINGS_TITLE_ID); |
378 | FF_GetMsg(title, MSG_LOAD_FILTER_SETTINGS_TITLE_ID); |
379 | 379 | ||
380 | strcpy_advance_id(&tmp1, MSG_ALL_SUPPORTED_FILES_ID); |
380 | strcpy_advance_id(&tmp1, MSG_ALL_SUPPORTED_FILES_ID); |
381 | strcpy_advance(&tmp1, (TCHAR*)TEXT(" (*.afs, *.8bf, *.pff, *.prm, *.bin, *.rsrc, *.txt, *.ffx, *.guf)")); tmp1++; |
381 | strcpy_advance(&tmp1, (TCHAR*)TEXT(" (*.afs, *.8bf, *.pff, *.prm, *.bin, *.rsrc, *.txt, *.ffx, *.ffl, *.guf)")); tmp1++; |
382 | strcpy_advance(&tmp1, (TCHAR*)TEXT("*.afs;*.8bf;*.pff;*.prm;*.bin;*.rsrc;*.txt;*.ffx;*.guf")); tmp1++; |
382 | strcpy_advance(&tmp1, (TCHAR*)TEXT("*.afs;*.8bf;*.pff;*.prm;*.bin;*.rsrc;*.txt;*.ffx;*.ffl;*.guf")); tmp1++; |
383 | 383 | ||
384 | strcpy_advance_id(&tmp1, MSG_OPEN_AFS_ID); |
384 | strcpy_advance_id(&tmp1, MSG_OPEN_AFS_ID); |
385 | strcpy_advance(&tmp1, (TCHAR*)TEXT(" (*.afs)")); tmp1++; |
385 | strcpy_advance(&tmp1, (TCHAR*)TEXT(" (*.afs)")); tmp1++; |
386 | strcpy_advance(&tmp1, (TCHAR*)TEXT("*.afs")); tmp1++; |
386 | strcpy_advance(&tmp1, (TCHAR*)TEXT("*.afs")); tmp1++; |
387 | 387 | ||
Line 407... | Line 407... | ||
407 | 407 | ||
408 | strcpy_advance_id(&tmp1, MSG_OPEN_FFX_ID); |
408 | strcpy_advance_id(&tmp1, MSG_OPEN_FFX_ID); |
409 | strcpy_advance(&tmp1, (TCHAR*)TEXT(" (*.ffx)")); tmp1++; |
409 | strcpy_advance(&tmp1, (TCHAR*)TEXT(" (*.ffx)")); tmp1++; |
410 | strcpy_advance(&tmp1, (TCHAR*)TEXT("*.ffx")); tmp1++; |
410 | strcpy_advance(&tmp1, (TCHAR*)TEXT("*.ffx")); tmp1++; |
411 | 411 | ||
- | 412 | strcpy_advance_id(&tmp1, MSG_OPEN_FFL_ID); |
|
- | 413 | strcpy_advance(&tmp1, (TCHAR*)TEXT(" (*.ffl)")); tmp1++; |
|
- | 414 | strcpy_advance(&tmp1, (TCHAR*)TEXT("*.ffl")); tmp1++; |
|
- | 415 | ||
412 | strcpy_advance_id(&tmp1, MSG_OPEN_GUF_ID); |
416 | strcpy_advance_id(&tmp1, MSG_OPEN_GUF_ID); |
413 | strcpy_advance(&tmp1, (TCHAR*)TEXT(" (*.guf)")); tmp1++; |
417 | strcpy_advance(&tmp1, (TCHAR*)TEXT(" (*.guf)")); tmp1++; |
414 | strcpy_advance(&tmp1, (TCHAR*)TEXT("*.guf")); tmp1++; |
418 | strcpy_advance(&tmp1, (TCHAR*)TEXT("*.guf")); tmp1++; |
415 | 419 | ||
416 | strcpy_advance_id(&tmp1, MSG_ALL_FILES_ID); |
420 | strcpy_advance_id(&tmp1, MSG_ALL_FILES_ID); |