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:
Jake Turner authored and Baldur Karlsson committed 2023-05-06 11:56:44 +01:00
1 parent 279a827c73
commit 3f72d8fe75
1 file changed
+2 -2
+2 -2
View File
@@ -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;