mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-12 04:50:35 +00:00
Support launching .app files without NSBundle
Downgrade the Error to a Warning and return the .app file path as the executable path
This commit is contained in:
committed by
Baldur Karlsson
parent
279a827c73
commit
3f72d8fe75
@@ -67,8 +67,8 @@ rdcstr apple_GetExecutablePathFromAppBundle(const char *appBundlePath)
|
||||
NSBundle *nsBundle = [NSBundle bundleWithPath:path];
|
||||
if(!nsBundle)
|
||||
{
|
||||
RDCERR("Failed to open application '%s' as an NSBundle", appBundlePath);
|
||||
return rdcstr();
|
||||
RDCWARN("Failed to open application '%s' as an NSBundle", appBundlePath);
|
||||
return rdcstr(appBundlePath);
|
||||
}
|
||||
|
||||
NSString *executablePath = nsBundle.executablePath;
|
||||
|
||||
Reference in New Issue
Block a user