handle the main function for sdl correctly as the docs say

This commit is contained in:
2026-03-09 14:54:23 +01:00
parent f844b8149f
commit 48b42e943e

View File

@@ -1,8 +1,11 @@
#define SDL_MAIN_HANDLED
#define SDL_MAIN_HANDLED 1
#include "Application.h"
#include "SDL3/SDL_main.h"
int main(int argc, char *argv[]) {
SDL_SetMainReady();
Application app;
bool success = app.Init();