Skip to content

Commit 683db53

Browse files
committed
use sdl_main for win entrypoint
1 parent 91fe85d commit 683db53

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Source/Main.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,13 @@
1818
/// Cortex Command Community Project Discord - https://discord.gg/TSU6StNQUG
1919
/// </summary>
2020

21+
#ifndef ALLEGRO_NO_MAGIC_MAIN
22+
#define ALLEGRO_NO_MAGIC_MAIN
23+
#endif
2124
#include "allegro.h"
2225
#include "SDL.h"
23-
#include "SDL_image.h"
26+
#include "SDL2/SDL_image.h"
27+
#include "SDL2/SDL_main.h"
2428

2529
#include "GUI.h"
2630
#include "GUIInputWrapper.h"
@@ -469,7 +473,3 @@ int main(int argc, char** argv) {
469473

470474
return EXIT_SUCCESS;
471475
}
472-
473-
#ifdef _WIN32
474-
int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { return main(__argc, __argv); }
475-
#endif

0 commit comments

Comments
 (0)