From f02fd81c55d7c290e0409a06c696c0f6e2fc5518 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1ty=C3=A1s=20Mustoha?= Date: Fri, 3 May 2024 10:50:50 +0200 Subject: [PATCH] Fixed the SDL main entry point when using MSVC --- src/main.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 9d1e52a..fdf860f 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -25,6 +25,8 @@ #include "system/Paths.h" #include "system/util/MakeUnique.h" +#include "SDL_main.h" + #include #include #include @@ -35,7 +37,7 @@ const std::string LOG_MAIN = "main"; const std::string LOG_HELP = "help"; -int main(int argc, const char** argv) +int main(int argc, char* argv[]) { Log::info(LOG_MAIN) << "OpenBlok, created by Mátyás Mustoha, " << game_version << "\n";