Files
UnrealEngineUWP/Engine/Source/Programs/SymbolDebugger/Private/Mac/SymbolDebuggerMainMac.cpp
Michael Trepka e0b50589d2 Removed Mac MainMenu.xib, the app and window menus are now generated dynamically.
[CL 2088627 by Michael Trepka in Main branch]
2014-05-29 17:46:24 -04:00

43 lines
821 B
C++

// Copyright 1998-2014 Epic Games, Inc. All Rights Reserved.
#include "SymbolDebuggerApp.h"
static FString GSavedCommandLine;
@interface UE4AppDelegate : NSObject <NSApplicationDelegate>
{
}
@end
@implementation UE4AppDelegate
- (void)applicationDidFinishLaunching:(NSNotification *)Notification
{
RunSymbolDebugger(*GSavedCommandLine);
[NSApp terminate: self];
}
@end
int main(int argc, char *argv[])
{
for (int32 Option = 1; Option < argc; Option++)
{
GSavedCommandLine += TEXT(" ");
FString Argument(ANSI_TO_TCHAR(argv[Option]));
if (Argument.Contains(TEXT(" ")))
{
Argument = FString::Printf(TEXT("\"%s\""), *Argument);
}
GSavedCommandLine += Argument;
}
SCOPED_AUTORELEASE_POOL;
[NSApplication sharedApplication];
[NSApp setDelegate:[UE4AppDelegate new]];
[NSApp run];
return 0;
}