Subversion Repositories filter_foundry

Rev

Rev 210 | Rev 217 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 210 Rev 211
Line 76... Line 76...
76
                char *data;
76
                char *data;
77
                // char* debug = malloc(2000);
77
                // char* debug = malloc(2000);
78
                // sprintf(debug, "getAeteKey %c with title %s/%s in STANDALONE PLUGIN", c, INPLACEP2CSTR(parm->title), INPLACEP2CSTR(parm->category));
78
                // sprintf(debug, "getAeteKey %c with title %s/%s in STANDALONE PLUGIN", c, INPLACEP2CSTR(parm->title), INPLACEP2CSTR(parm->category));
79
                // simplealert(debug);
79
                // simplealert(debug);
80
 
80
 
-
 
81
                // Use random AETE keys, because AppleScript has a global namespace
-
 
82
                // and therefore requires unique AETE keys
81
                data = (char*)malloc(0x300);
83
                data = (char*)malloc(0x300);
82
                if (!data) return 'xxxx';
84
                if (!data) return 0;
83
                sprintf(data, "%s %s %c",
85
                sprintf(data, "%s %s %c",
84
                        INPLACEP2CSTR(parm->category),
86
                        INPLACEP2CSTR(parm->category),
85
                        INPLACEP2CSTR(parm->title),
87
                        INPLACEP2CSTR(parm->title),
86
                        c);
88
                        c);
87
                hash = printablehash(djb2(data));
89
                hash = printablehash(djb2(data));
Line 95... Line 97...
95
                                // Attention: AETE keys (xpr#, cTl#) must be equal in scripting.r, scripting.rc and scripting.c(getAeteKey)!
97
                                // Attention: AETE keys (xpr#, cTl#) must be equal in scripting.r, scripting.rc and scripting.c(getAeteKey)!
96
                if (c == 'R') return 'xprR';
98
                if (c == 'R') return 'xprR';
97
                if (c == 'G') return 'xprG';
99
                if (c == 'G') return 'xprG';
98
                if (c == 'B') return 'xprB';
100
                if (c == 'B') return 'xprB';
99
                if (c == 'A') return 'xprA';
101
                if (c == 'A') return 'xprA';
-
 
102
                if ((c >= '0') && (c <= '9')) return 'cTl0' + (c - '0');
100
                return 'cTl0' + (c - '0');
103
                return 0;
101
        }
104
        }
102
}
105
}
103
 
106
 
104
/* return true if dialog should be shown */
107
/* return true if dialog should be shown */
105
enum ScriptingShowDialog ReadScriptParamsOnRead(void)
108
enum ScriptingShowDialog ReadScriptParamsOnRead(void)