mirror of
https://github.com/darlinghq/darling.git
synced 2025-02-17 16:17:30 +00:00
Make LSRegisterURL stub silent without STUB_VERBOSE
This commit is contained in:
parent
1b1fde4a6e
commit
1025c8845c
@ -25,9 +25,16 @@
|
||||
|
||||
static void get_main_executable_info(CFURLRef appURL, CFStringRef *exec, CFStringRef *bundleName);
|
||||
|
||||
static int verbose = 0;
|
||||
|
||||
__attribute__((constructor)) static void initme(void) {
|
||||
verbose = getenv("STUB_VERBOSE") != NULL;
|
||||
}
|
||||
|
||||
OSStatus LSRegisterURL(CFURLRef inURL, Boolean inUpdate)
|
||||
{
|
||||
printf("STUB: LSRegisterURL\n");
|
||||
if (verbose)
|
||||
printf("STUB: LSRegisterURL\n");
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user