Files
Chris Gagnon 8fc25ea18e Merging //UE4/Dev-Main to Dev-Editor (//UE4/Dev-Editor)
#rb none

[CL 4676797 by Chris Gagnon in Dev-Editor branch]
2019-01-02 14:54:39 -05:00

32 lines
841 B
C++

// Copyright 1998-2019 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