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
2023-05-05 18:38:19 +01:00
committed by Baldur Karlsson
parent 279a827c73
commit 3f72d8fe75
+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;