Download

Entry point of generated game from UE4 for windows platform

Hi,
I have been reading the UE4 engine source for learning purpose. But I am lost now. Where is the main entry point of a game built by UE4 editor’s buildtool?

Typically a windows application’s execution starts from something like this:


int WINAPI WinMain(_In_ HINSTANCE hInInstance, _In_opt_ HINSTANCE hPrevInstance, _In_ LPSTR, _In_ int nCmdShow)

I searched on UE4’s source in visual studio, I got several WinMain.


BootstrapPackagedGame.cpp
UE4EditorServicesMain.cpp
CrashReportClientMainWindows.cpp
LaunchWindows.cpp
SlateViewerMainWindows.cpp
SymbolDebuggerMainWindows.cpp
UnrealCEFSubProcessWindows.cpp
UnrealSyncMainWindows.cpp
UnrealVersionSelector.cpp
WindowsUnrealFrontendMain.cpp


Of course this is no surprise as we have editors and other tools. But which one is responsible for the windows executable produced by build tools, the entry point of runtime?

Hi,

LaunchWindows.cpp contains launch process, main loop and an application entry point for Windows :slight_smile: