You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
#rb none
#jira
#ROBOMERGE-OWNER: robert.manuszewski
#ROBOMERGE-AUTHOR: ben.marsh
#ROBOMERGE-SOURCE: CL 7321355 in //UE4/Release-4.23/... via CL 7321356
#ROBOMERGE-BOT: CORE (Main -> Dev-Core) (v371-7306989)
[CL 7370235 by ben marsh in Dev-Core branch]
53 lines
917 B
C++
53 lines
917 B
C++
// Copyright 2011-2019 Molecular Matters GmbH, all rights reserved.
|
|
|
|
#include "LC_EntryPoint.h"
|
|
#include "LC_ClientStartupThread.h"
|
|
#include "LC_API.h"
|
|
|
|
|
|
namespace
|
|
{
|
|
// startup thread
|
|
static ClientStartupThread* g_startupThread = nullptr;
|
|
}
|
|
|
|
|
|
// BEGIN EPIC MOD - Manually trigger startup/shutdown code
|
|
void Startup(HINSTANCE instance)
|
|
{
|
|
g_startupThread = new ClientStartupThread(instance);
|
|
api::Startup(g_startupThread);
|
|
}
|
|
|
|
|
|
void Shutdown(void)
|
|
{
|
|
api::Shutdown();
|
|
|
|
// wait for the startup thread to finish its work and clean up
|
|
g_startupThread->Join();
|
|
delete g_startupThread;
|
|
}
|
|
|
|
#if 0
|
|
BOOL WINAPI DllMain(_In_ HINSTANCE hinstDLL, _In_ DWORD dwReason, _In_ LPVOID /* lpvReserved */)
|
|
{
|
|
switch (dwReason)
|
|
{
|
|
case DLL_PROCESS_ATTACH:
|
|
Startup(hinstDLL);
|
|
break;
|
|
|
|
case DLL_PROCESS_DETACH:
|
|
Shutdown();
|
|
break;
|
|
|
|
case DLL_THREAD_ATTACH:
|
|
case DLL_THREAD_DETACH:
|
|
break;
|
|
}
|
|
|
|
return TRUE;
|
|
}
|
|
#endif
|