Subversion Repositories filter_foundry

Rev

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 101... Line 101...
101
                        gdata->parmloaded = false;
101
                        gdata->parmloaded = false;
102
                        return true;
102
                        return true;
103
                }
103
                }
104
        }
104
        }
105
 
105
 
-
 
106
        // Try to read the file as FFL file
-
 
107
        if (reasonstr == NULL) {
-
 
108
                if (readfile_ffl(sfr, &reasonstr)) {
-
 
109
                        gdata->obfusc = false;
-
 
110
                        gdata->parmloaded = false;
-
 
111
                        return true;
-
 
112
                }
-
 
113
        }
-
 
114
 
106
        // If that didn't work, try to load as Windows image file (Resource API for 8BF/PRM files)
115
        // If that didn't work, try to load as Windows image file (Resource API for 8BF/PRM files)
107
        if (reasonstr == NULL) {
116
        if (reasonstr == NULL) {
108
                if (hm = LoadLibraryEx(sfr->sfFile.szName, NULL, LOAD_LIBRARY_AS_DATAFILE)) {
117
                if (hm = LoadLibraryEx(sfr->sfFile.szName, NULL, LOAD_LIBRARY_AS_DATAFILE)) {
109
                        if (readPARMresource(hm, &reasonstr)) {
118
                        if (readPARMresource(hm, &reasonstr)) {
110
                                if (gdata->parm.iProtected) {
119
                                if (gdata->parm.iProtected) {
Line 119... Line 128...
119
                        }
128
                        }
120
                        FreeLibrary(hm);
129
                        FreeLibrary(hm);
121
                }
130
                }
122
        }
131
        }
123
 
132
 
124
        // Is it a "Filters Unlimited" filter? (Only partially compatible with Filter Factory!!!)
133
        // Is it a "Filters Unlimited" FFX filter? (Only partially compatible with Filter Factory!!!)
125
        if (reasonstr == NULL) {
134
        if (reasonstr == NULL) {
126
                if (readfile_ffx(sfr, &reasonstr)) {
135
                if (readfile_ffx(sfr, &reasonstr)) {
127
                        gdata->parmloaded = true;
136
                        gdata->parmloaded = true;
128
                        return true;
137
                        return true;
129
                }
138
                }
130
        }
139
        }
131
 
140
 
132
        // Is it a "Filters Unlimited" filter? (Only partially compatible with Filter Factory!!!)
141
        // Is it a "Filters Unlimited" TXT filter? (Only partially compatible with Filter Factory!!!)
133
        if (reasonstr == NULL) {
142
        if (reasonstr == NULL) {
134
                if (readfile_picotxt_or_ffdecomp(sfr, &reasonstr)) {
143
                if (readfile_picotxt_or_ffdecomp(sfr, &reasonstr)) {
135
                        gdata->parmloaded = true;
144
                        gdata->parmloaded = true;
136
                        return true;
145
                        return true;
137
                }
146
                }