Files
UnrealEngineUWP/Engine/Source/Programs/UnrealCEFSubProcess/Private/UnrealCEFSubProcess.cpp
Matthew Griffin bb70b349ce Merging CL 2804086 from //UE4/Release-4.11 to Dev-Main (//UE4/Dev-Main) to isolate copyright update
#lockdown Nick.Penwarden

[CL 2819020 by Matthew Griffin in Main branch]
2016-01-07 08:17:16 -05:00

32 lines
841 B
C++

// Copyright 1998-2016 Epic Games, Inc. All Rights Reserved.
//
// UnrealCEFSubProcess.cpp : Defines the entry point for the browser sub process
//
#include "UnrealCEFSubProcess.h"
#include "RequiredProgramMainCPPInclude.h"
#include "CEF3Utils.h"
#include "UnrealCEFSubProcessApp.h"
//#define DEBUG_USING_CONSOLE 0
IMPLEMENT_APPLICATION(UnrealCEFSubProcess, "UnrealCEFSubProcess")
#if WITH_CEF3
int32 RunCEFSubProcess(const CefMainArgs& MainArgs)
{
CEF3Utils::LoadCEF3Modules();
// Create an App object for handling various render process events, such as message passing
CefRefPtr<CefApp> App(new FUnrealCEFSubProcessApp);
// Execute the sub-process logic. This will block until the sub-process should exit.
int32 Result = CefExecuteProcess(MainArgs, App, nullptr);
CEF3Utils::UnloadCEF3Modules();
return Result;
}
#endif