|
@@ -46,13 +46,16 @@ int main(int argc, char *argv[]){
|
|
|
laLoadHyperResources("OURBRUSH");
|
|
|
//laLoadHyperResources("OURPALLETTE");
|
|
|
|
|
|
+ int anyload=0;
|
|
|
for(int i=1;i<argc;i++){
|
|
|
char* file=argv[i]; int mode=LA_UDF_MODE_APPEND;
|
|
|
- laManagedUDF* m; laUDF* udf = laOpenUDF(file, 1, 0, &m);
|
|
|
char* ext=strGetLastSegment(file,'.'); strToLower(ext);
|
|
|
if(strSame(ext,"ourpaint")){ mode=LA_UDF_MODE_OVERWRITE; }
|
|
|
- if(udf){ laExtractUDF(udf,m,mode); laCloseUDF(udf); }
|
|
|
+
|
|
|
+ laManagedUDF* m; laUDF* udf = laOpenUDF(file, 1, 0, &m);
|
|
|
+ if(udf){ laExtractUDF(udf,m,mode); laCloseUDF(udf); anyload=1; }
|
|
|
}
|
|
|
+ if(anyload){ laRecordEverythingAndPush(); }
|
|
|
|
|
|
//laAddRootDBInst("our.tools");
|
|
|
if(!MAIN.Windows.pFirst){
|