Files
UnrealEngineUWP/Engine/Source/Programs/SlateViewer/Private/Linux/SlateViewerMainLinux.cpp
Dmitry Rekman 1041c8a2df Set Ctrl-C handler in SlateViewer.
[CL 2070655 by Dmitry Rekman in Main branch]
2014-05-12 15:25:10 -04:00

26 lines
537 B
C++

// Copyright 1998-2013 Epic Games, Inc. All Rights Reserved.
#include "SlateViewerApp.h"
static FString GSavedCommandLine;
/**
* WinMain, called when the application is started
*/
int main( int argc, char** argv )
{
FPlatformMisc::SetGracefulTerminationHandler();
for (int32 Option = 1; Option < argc; Option++)
{
GSavedCommandLine += TEXT(" ");
GSavedCommandLine += UTF8_TO_TCHAR(argv[Option]); // note: technically it depends on locale
}
// do the slate viewer thing
RunSlateViewer(*GSavedCommandLine);
return 0;
}