From c11a83d4b25f0b78fa49904a50a19517329073c9 Mon Sep 17 00:00:00 2001 From: spiroskou <90531367+spiroskou@users.noreply.github.com> Date: Mon, 2 Sep 2024 19:35:42 +0300 Subject: [PATCH] Delete main.cpp --- main.cpp | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100644 main.cpp diff --git a/main.cpp b/main.cpp deleted file mode 100644 index 07b856c..0000000 --- a/main.cpp +++ /dev/null @@ -1,25 +0,0 @@ -#ifdef __EMSCRIPTEN__ -#include -#endif -#include "ChessSDL.h" -#include // for linking error - -int main(int argc, char* args[]) -{ - if (ChessSDL_MakePreparations()) { - return 1; - } - -#ifdef __EMSCRIPTEN__ - // Use emscripten_set_main_loop to call GameLoopIteration repeatedly - emscripten_set_main_loop(ChessSDL_GameLoopIteration, 0, 1); -#else - // Call GameLoopIteration in a loop for non-web environments - while (!ChessSDL_NeedToQuit()) { - ChessSDL_GameLoopIteration(); - } -#endif - - ChessSDL_Close(); - return 0; -}