mirror of
https://github.com/iaddis/metalnes.git
synced 2024-05-20 05:00:59 -04:00
62 lines
1 KiB
Plaintext
62 lines
1 KiB
Plaintext
|
|
#import "AppDelegate.h"
|
|
|
|
#import <AVFoundation/AVFoundation.h>
|
|
#include <string>
|
|
|
|
#import <GLKit/GLKit.h>
|
|
|
|
#include "Core/Path.h"
|
|
#include <pthread.h>
|
|
#include "Application.h"
|
|
|
|
void SetCurrentThreadName(const char* threadName)
|
|
{
|
|
;
|
|
[[NSThread currentThread] setName: [NSString stringWithUTF8String:threadName] ]; // For Cocoa
|
|
pthread_setname_np(threadName); // For GDB.
|
|
}
|
|
|
|
|
|
@implementation AppDelegate
|
|
|
|
- (void)applicationWillFinishLaunching:(NSNotification *)notification
|
|
{
|
|
}
|
|
|
|
- (void)applicationDidFinishLaunching:(NSNotification *)aNotification
|
|
{
|
|
// Insert code here to initialize your application
|
|
}
|
|
|
|
|
|
- (void)applicationWillTerminate:(NSNotification *)aNotification {
|
|
// Insert code here to tear down your application
|
|
// AppShutdown();
|
|
}
|
|
|
|
- (NSApplicationTerminateReply)applicationShouldTerminate:(NSApplication *)app {
|
|
return NSTerminateNow;
|
|
}
|
|
|
|
- (BOOL) applicationShouldTerminateAfterLastWindowClosed:(NSApplication *)sender
|
|
{
|
|
return YES;
|
|
}
|
|
|
|
|
|
-(IBAction)saveState:(id)sender
|
|
{
|
|
|
|
}
|
|
-(IBAction)loadState:(id)sender
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
@end
|
|
|
|
|