Rev 555 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 555 | Rev 557 | ||
---|---|---|---|
Line 114... | Line 114... | ||
114 | DISABLEDLGITEM(dp, ZOOMOUTITEM); // HideDialogItem(dp,ZOOMOUTITEM); |
114 | DISABLEDLGITEM(dp, ZOOMOUTITEM); // HideDialogItem(dp,ZOOMOUTITEM); |
115 | } |
115 | } |
116 | 116 | ||
117 | /* traverse expression tree, looking for constant references to sliders/maps */ |
117 | /* traverse expression tree, looking for constant references to sliders/maps */ |
118 | 118 | ||
119 | static int _checksl(struct node*p,int ctlflags[],int mapflags[]){ |
119 | static int _checksl(struct node*p,bool32_t ctlflags[], bool32_t mapflags[]){ |
120 | int s, i, result; |
120 | int s, i, result; |
121 | 121 | ||
122 | result = 0; |
122 | result = 0; |
123 | if(p){ |
123 | if(p){ |
124 | if( (p->kind==TOK_FN1 && p->v.sym->fn == (pfunc_type)ff_ctl) |
124 | if( (p->kind==TOK_FN1 && p->v.sym->fn == (pfunc_type)ff_ctl) |
Line 415... | Line 415... | ||
415 | FFLoadingResult res; |
415 | FFLoadingResult res; |
416 | 416 | ||
417 | // Backup everything, otherwise we might lose parameter data if the loading fails |
417 | // Backup everything, otherwise we might lose parameter data if the loading fails |
418 | bakState = saveInternalState(); |
418 | bakState = saveInternalState(); |
419 | 419 | ||
420 | if (0 == (res = loadfile(&sfr))) { |
420 | if (LOADING_OK == (res = loadfile(&sfr))) { |
421 | updatedialog(dp); |
421 | updatedialog(dp); |
422 | maindlgupdate(dp); |
422 | maindlgupdate(dp); |
423 | } |
423 | } |
424 | else { |
424 | else { |
425 | // Restore |
425 | // Restore |
Line 498... | Line 498... | ||
498 | free(filters); |
498 | free(filters); |
499 | free(title); |
499 | free(title); |
500 | 500 | ||
501 | if (saveDlgRet) { |
501 | if (saveDlgRet) { |
502 | FFSavingResult saveres = savefile_afs_pff_picotxt_guf(&sfr); |
502 | FFSavingResult saveres = savefile_afs_pff_picotxt_guf(&sfr); |
503 | if (saveres != 0) { |
503 | if (saveres != SAVING_OK) { |
504 | TCHAR* reason = FF_GetMsg_Cpy(saveres); |
504 | TCHAR* reason = FF_GetMsg_Cpy(saveres); |
505 | alertuser_id(MSG_CANNOT_SAVE_SETTINGS_ID, reason); |
505 | alertuser_id(MSG_CANNOT_SAVE_SETTINGS_ID, reason); |
506 | FF_GetMsg_Free(reason); |
506 | FF_GetMsg_Free(reason); |
507 | } |
507 | } |
508 | else { |
508 | else { |