341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
|
}
}
bool
execfile(OFString *cfgfile)
{
@autoreleasepool {
@try {
execute([OFString stringWithContentsOfFile:cfgfile]);
} @catch (id e) {
return false;
}
return true;
}
}
void
exec(OFString *cfgfile)
{
|
>
|
>
|
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
|
}
}
bool
execfile(OFString *cfgfile)
{
@autoreleasepool {
OFString *command;
@try {
command = [OFString stringWithContentsOfFile:cfgfile];
} @catch (id e) {
return false;
}
execute(command);
return true;
}
}
void
exec(OFString *cfgfile)
{
|