Skip to content

Commit

Permalink
use sdl_main for win entrypoint
Browse files Browse the repository at this point in the history
  • Loading branch information
HeliumAnt committed Jan 12, 2025
1 parent 91fe85d commit 683db53
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Source/Main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,13 @@
/// Cortex Command Community Project Discord - https://discord.gg/TSU6StNQUG
/// </summary>

#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"
Expand Down Expand Up @@ -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

0 comments on commit 683db53

Please sign in to comment.