From 683db5351f557f07088061d54746dd147ef6d6a3 Mon Sep 17 00:00:00 2001 From: HeliumAnt Date: Sun, 12 Jan 2025 12:10:30 +0100 Subject: [PATCH] use sdl_main for win entrypoint --- Source/Main.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Source/Main.cpp b/Source/Main.cpp index 07eeaf72f..9b77f7a5d 100644 --- a/Source/Main.cpp +++ b/Source/Main.cpp @@ -18,9 +18,13 @@ /// Cortex Command Community Project Discord - https://discord.gg/TSU6StNQUG /// +#ifndef ALLEGRO_NO_MAGIC_MAIN +#define ALLEGRO_NO_MAGIC_MAIN +#endif #include "allegro.h" #include "SDL.h" -#include "SDL_image.h" +#include "SDL2/SDL_image.h" +#include "SDL2/SDL_main.h" #include "GUI.h" #include "GUIInputWrapper.h" @@ -469,7 +473,3 @@ int main(int argc, char** argv) { return EXIT_SUCCESS; } - -#ifdef _WIN32 -int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { return main(__argc, __argv); } -#endif