You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
49 lines
906 B
C++
49 lines
906 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];
|
|
}
|
|
|
|
- (IBAction)OnQuitRequest:(id)Sender
|
|
{
|
|
[NSApp terminate: self];
|
|
}
|
|
|
|
- (IBAction)OnShowAboutWindow:(id)Sender
|
|
{
|
|
[NSApp orderFrontStandardAboutPanel: Sender];
|
|
}
|
|
|
|
@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;
|
|
}
|
|
|
|
return NSApplicationMain(argc, (const char **)argv);
|
|
}
|