Skip to content

Commit a775289

Browse files
committed
macOS/Simulator: fixing opening projects with Command Line
fixes coronalabs#79
1 parent fa1e397 commit a775289

File tree

2 files changed

+0
-18
lines changed

2 files changed

+0
-18
lines changed

platform/mac/AppDelegate.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,6 @@ namespace Rtt
126126
IBOutlet NSButton* rememberMyPreferenceAccessoryCheckboxView;
127127
BOOL relaunchPromptIsOpen;
128128
BOOL applicationHasBeenInitialized;
129-
BOOL authorizedToLaunch;
130129
BOOL launchedWithFile;
131130
BOOL allowLuaExit;
132131
BOOL fSimulatorWasSuspended;

platform/mac/AppDelegate.mm

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1388,10 +1388,7 @@ -(void)applicationWillFinishLaunching:(NSNotification*)aNotification
13881388
}
13891389

13901390
[self checkOpenGLRequirements];
1391-
#if !defined( Rtt_PROJECTOR )
13921391
[self coronaInit:aNotification];
1393-
authorizedToLaunch = NO;
1394-
#endif // Rtt_PROJECTOR
13951392
}
13961393

13971394
- (void) startDebugAndOpenPanel
@@ -2123,14 +2120,6 @@ - (BOOL) application:(NSApplication*)theApplication openFile:(NSString*)filepath
21232120
{
21242121
self.launchedWithFile = YES;
21252122
}
2126-
2127-
// If the user has not agreed to the license terms or some other critera,
2128-
// we can't let this method bypass the normal startup routine.
2129-
if( NO == authorizedToLaunch )
2130-
{
2131-
// return YES to prevent any dialog errors
2132-
return YES;
2133-
}
21342123

21352124
BOOL isDirectory = YES;
21362125
if( ! [[NSFileManager defaultManager] fileExistsAtPath:filepath isDirectory:&isDirectory] )
@@ -3021,12 +3010,6 @@ -(void)alertDidEnd:(NSAlert *)alert returnCode:(int)returnCode contextInfo:(void
30213010

30223011
-(void)willOpenForBuild:(id)sender
30233012
{
3024-
// If we didn't succeed in logging into the build server, bail
3025-
if ( ! authorizedToLaunch )
3026-
{
3027-
return;
3028-
}
3029-
30303013
fBuildProblemNotified = false;
30313014
}
30323015

0 commit comments

Comments
 (0)