Skip to content

Commit

Permalink
explicitly disabling secure startup
Browse files Browse the repository at this point in the history
  • Loading branch information
Shchvova committed Oct 1, 2023
1 parent a65d7a6 commit 6f4d853
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 0 deletions.
5 changes: 5 additions & 0 deletions platform/mac/AppDelegate.mm
Original file line number Diff line number Diff line change
Expand Up @@ -659,6 +659,11 @@ -(id)init
return self;
}

- (BOOL)applicationSupportsSecureRestorableState:(NSApplication *)app
{
return NO;
}

- (void) checkOpenGLRequirements
{
// Force the OpenGL context to be created now and make current and query OpenGL for extensions.
Expand Down
5 changes: 5 additions & 0 deletions platform/mac/CoronaConsole/CoronaConsole/AppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ static void NotificationCallback(CFNotificationCenterRef center, void *observer,

@implementation AppDelegate

- (BOOL)applicationSupportsSecureRestorableState:(NSApplication *)app
{
return NO;
}

- (void)applicationWillFinishLaunching:(NSNotification *)aNotification
{
CFNotificationCenterAddObserver(CFNotificationCenterGetDistributedCenter(), (__bridge const void *)(self), NotificationCallback, CFSTR("CoronaConsole.clearConsole"), NULL, CFNotificationSuspensionBehaviorDeliverImmediately);
Expand Down
5 changes: 5 additions & 0 deletions platform/mac/CoronaLiveServer/CoronaLiveServer/AppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ @interface AppDelegate () <NSTableViewDataSource, NSTableViewDelegate, NSDraggin

@implementation AppDelegate

- (BOOL)applicationSupportsSecureRestorableState:(NSApplication *)app
{
return NO;
}

-(BOOL)addHTML5Project:(NSString*)project reportErrorToUser:(BOOL)guiError
{
if(self.httpServerController == nil) {
Expand Down
5 changes: 5 additions & 0 deletions platform/mac/CoronaShell/CoronaShell/AppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ @implementation AppDelegate
@synthesize suspendWhenMinimized = _suspendWhenMinimized;
@synthesize lastSentWindowStateForeground;

- (BOOL)applicationSupportsSecureRestorableState:(NSApplication *)app
{
return NO;
}

- (void)applicationDidFinishLaunching:(NSNotification *)aNotification
{
#ifdef USE_HOCKEYSDK
Expand Down

0 comments on commit 6f4d853

Please sign in to comment.