24 行
806 B
Objective-C
24 行
806 B
Objective-C
#import <FxPlug/FxPlugSDK.h>
|
|
#import "DYDiagnostics.h"
|
|
#import "../Shared/DYBetaDiagnostics.h"
|
|
#import "../Shared/DYCodeIntegrity.h"
|
|
#include <string.h>
|
|
#include <sysexits.h>
|
|
|
|
int main(int argc, const char *argv[]) {
|
|
@autoreleasepool {
|
|
NSString *component = nil;
|
|
OSStatus status = DYValidateRunningInstallation(DYCodeRoleService, &component);
|
|
if (status != errSecSuccess) {
|
|
NSLog(@"大鱼调色拒绝启动插件服务,验签失败 (%@, %d)。%@", component, (int)status,
|
|
DYIntegrityRecoveryMessage);
|
|
return EX_CONFIG;
|
|
}
|
|
if (argc == 2 && strcmp(argv[1], "--self-test") == 0) return DYRunDiagnostics();
|
|
DYBetaStart();
|
|
[FxPrincipal startServicePrincipal];
|
|
DYBetaStop();
|
|
return 0;
|
|
}
|
|
}
|