Rev 208 | Rev 228 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 208 | Rev 210 | ||
---|---|---|---|
Line 112... | Line 112... | ||
112 | piplsize = fixpipl((PIPropertyList*)(newpipl+2),origsize-2,title, &event_id) + 2; |
112 | piplsize = fixpipl((PIPropertyList*)(newpipl+2),origsize-2,title, &event_id) + 2; |
113 | 113 | ||
114 | /* set up the PARM resource with saved parameters */ |
114 | /* set up the PARM resource with saved parameters */ |
115 | memcpy(pparm,&gdata->parm,sizeof(PARM_T)); |
115 | memcpy(pparm,&gdata->parm,sizeof(PARM_T)); |
116 | 116 | ||
- | 117 | /* Generate 'aete' resource (contains names of the parameters for the "Actions" tab in Photoshop) */ |
|
- | 118 | aetesize = aete_generate(newaete, pparm, event_id); |
|
- | 119 | ||
117 | /* convert to C strings for Windows PARM resource */ |
120 | /* convert to C strings for Windows PARM resource */ |
- | 121 | // Don't do it before aete_generate, because they need Pascal strings |
|
118 | myp2cstr(pparm->category); |
122 | myp2cstr(pparm->category); |
119 | myp2cstr(pparm->title); |
123 | myp2cstr(pparm->title); |
120 | myp2cstr(pparm->copyright); |
124 | myp2cstr(pparm->copyright); |
121 | myp2cstr(pparm->author); |
125 | myp2cstr(pparm->author); |
122 | for(i=0;i<4;++i) |
126 | for (i = 0; i < 4; ++i) |
123 | myp2cstr(pparm->map[i]); |
127 | myp2cstr(pparm->map[i]); |
124 | for(i=0;i<8;++i) |
128 | for (i = 0; i < 8; ++i) |
125 | myp2cstr(pparm->ctl[i]); |
129 | myp2cstr(pparm->ctl[i]); |
126 | 130 | ||
127 | /* Generate 'aete' resource (contains names of the parameters for the "Actions" tab in Photoshop) */ |
- | |
128 | aetesize = aete_generate(newaete, pparm, event_id); |
- | |
129 | - | ||
130 | if(gdata->obfusc){ |
131 | if(gdata->obfusc){ |
131 | parm_type = RT_RCDATA; |
132 | parm_type = RT_RCDATA; |
132 | parm_id = OBFUSCDATA_ID; |
133 | parm_id = OBFUSCDATA_ID; |
133 | obfusc((unsigned char*)pparm,sizeof(PARM_T)); |
134 | obfusc((unsigned char*)pparm,sizeof(PARM_T)); |
134 | }else{ |
135 | }else{ |