You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Fix macOS build with dev_build=yes and target=template_debug
This commit is contained in:
@@ -63,13 +63,16 @@ GodotApplication *GodotApp = nil;
|
||||
NSString *nsbundleid_env = [NSString stringWithUTF8String:(bundled_id != nullptr) ? bundled_id : ""];
|
||||
NSString *nsbundleid = [[NSBundle mainBundle] bundleIdentifier];
|
||||
if (nsappname == nil || isatty(STDOUT_FILENO) || isatty(STDIN_FILENO) || isatty(STDERR_FILENO) || ![nsbundleid isEqualToString:nsbundleid_env]) {
|
||||
#if DEV_ENABLED
|
||||
if (!OS_MacOS::is_debugger_attached())
|
||||
#ifdef TOOLS_ENABLED
|
||||
if (!OS_MacOS::is_debugger_attached()) {
|
||||
#else
|
||||
{
|
||||
#endif
|
||||
// If the executable is started from terminal or is not bundled, macOS WindowServer won't register and activate app window correctly (menu and title bar are grayed out and input ignored).
|
||||
[self performSelector:@selector(forceUnbundledWindowActivationHackStep1) withObject:nil afterDelay:0.02];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
- (void)mediaKeyEvent:(int)key state:(BOOL)state repeat:(BOOL)repeat {
|
||||
Key keycode = Key::NONE;
|
||||
|
||||
Reference in New Issue
Block a user