MCPcopy Create free account
hub / github.com/cemu-project/Cemu / wWinMain

Function wWinMain

src/main.cpp:227–236  ·  view source on GitHub ↗

entrypoint for release builds

Source from the content-addressed store, hash-verified

225
226// entrypoint for release builds
227int wWinMain(_In_ HINSTANCE hInstance, _In_opt_ HINSTANCE hPrevInstance, _In_ LPTSTR lpCmdLine, _In_ int nShowCmd)
228{
229 if (FAILED(CoInitializeEx(nullptr, COINIT_MULTITHREADED | COINIT_DISABLE_OLE1DDE)))
230 cemuLog_log(LogType::Force, "CoInitializeEx() failed");
231 SDL_SetMainReady();
232 if (!LaunchSettings::HandleCommandline(lpCmdLine))
233 return 0;
234 gui_create();
235 return 0;
236}
237
238// entrypoint for debug builds with console
239int main(int argc, char* argv[])

Callers

nothing calls this directly

Calls 2

gui_createFunction · 0.85
cemuLog_logFunction · 0.50

Tested by

no test coverage detected