From 3f72d8fe75bd4ebe29ae63f77465f1d9d8b59c23 Mon Sep 17 00:00:00 2001 From: Jake Turner Date: Fri, 5 May 2023 18:38:19 +0100 Subject: [PATCH] Support launching .app files without NSBundle Downgrade the Error to a Warning and return the .app file path as the executable path --- renderdoc/os/posix/apple/apple_helpers.mm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/renderdoc/os/posix/apple/apple_helpers.mm b/renderdoc/os/posix/apple/apple_helpers.mm index 05987ee18..746825391 100644 --- a/renderdoc/os/posix/apple/apple_helpers.mm +++ b/renderdoc/os/posix/apple/apple_helpers.mm @@ -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;