diff options
| author | Andrey Kleshchev <117672381+akleshchev@users.noreply.github.com> | 2025-09-03 20:30:12 +0300 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-09-03 20:30:12 +0300 | 
| commit | 90aa693f2a9ece9f1c624dba245f202e126bca5b (patch) | |
| tree | fae8bca7bb3f3ac05972803e2fefc05de8542408 /indra/newview/llappviewermacosx-objc.mm | |
| parent | 5593cde0e85d4d4b06efacffb6f00ed2fadb188a (diff) | |
| parent | 5ffcd3dc88892a651fe9a95974280efb85e18a8b (diff) | |
Merge Changes for support of apple silicon on macOS
Mac Arm
Diffstat (limited to 'indra/newview/llappviewermacosx-objc.mm')
| -rw-r--r-- | indra/newview/llappviewermacosx-objc.mm | 39 | 
1 files changed, 0 insertions, 39 deletions
diff --git a/indra/newview/llappviewermacosx-objc.mm b/indra/newview/llappviewermacosx-objc.mm index 9b6bfe621b..2ea3f2f171 100644 --- a/indra/newview/llappviewermacosx-objc.mm +++ b/indra/newview/llappviewermacosx-objc.mm @@ -33,45 +33,6 @@  #include "llappviewermacosx-objc.h" -void launchApplication(const std::string* app_name, const std::vector<std::string>* args) -{ - -    NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; -     -	if (app_name->empty()) return; - -	NSMutableString* app_name_ns = [NSMutableString stringWithString:[[NSBundle mainBundle] resourcePath]];	//Path to resource dir -	[app_name_ns appendFormat:@"/%@", [NSString stringWithCString:app_name->c_str()  -								encoding:[NSString defaultCStringEncoding]]]; - -	NSMutableArray *args_ns = nil; -	args_ns = [[NSMutableArray alloc] init]; - -	for (int i=0; i < args->size(); ++i) -	{ -        NSLog(@"Adding string %s", (*args)[i].c_str()); -		[args_ns addObject: -			[NSString stringWithCString:(*args)[i].c_str() -						encoding:[NSString defaultCStringEncoding]]]; -	} - -    NSTask *task = [[NSTask alloc] init]; -    NSBundle *bundle = [NSBundle bundleWithPath:[[NSWorkspace sharedWorkspace] fullPathForApplication:app_name_ns]]; -    [task setLaunchPath:[bundle executablePath]]; -    [task setArguments:args_ns]; -    [task launch]; -     -//	NSWorkspace *workspace = [NSWorkspace sharedWorkspace]; -//	NSURL *url = [NSURL fileURLWithPath:[workspace fullPathForApplication:app_name_ns]]; -// -//	NSError *error = nil; -//	[workspace launchApplicationAtURL:url options:0 configuration:[NSDictionary dictionaryWithObject:args_ns forKey:NSWorkspaceLaunchConfigurationArguments] error:&error]; -	//TODO Handle error -     -    [pool release]; -	return; -} -  void force_ns_sxeption()  {      NSException *exception = [NSException exceptionWithName:@"Forced NSException" reason:nullptr userInfo:nullptr];  | 
