--- a/application/main.c Tue Jun 11 21:22:11 2024 +0200 +++ b/application/main.c Tue Jun 11 21:31:21 2024 +0200 @@ -39,25 +39,27 @@ #include "system.h" int idav_main(int argc, char **argv) { - sys_init(); - ui_init("idav", argc, argv); + sys_init(); + ui_init("idav", argc, argv); - application_init(); - ui_onstartup(application_startup, NULL); - - ui_main(); + application_init(); + ui_onstartup(application_startup, NULL); - sys_uninit(); - return 0; + ui_main(); + + sys_uninit(); + return 0; } #ifndef _WIN32 + int main(int argc, char** argv) { - return idav_main(argc, argv); + return idav_main(argc, argv); } #else + int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, PSTR lpCmdLine, int nCmdShow) { - return idav_main(__argc, __argv); + return idav_main(__argc, __argv); } #endif