From 60f6c9281bebd151ff13c5e59e95e7ed43cc43f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hatvani=20Tam=C3=A1s?= Date: Mon, 6 Apr 2026 15:37:56 +0200 Subject: [PATCH] using sdl main --- SakuraCore/src/Application.cpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/SakuraCore/src/Application.cpp b/SakuraCore/src/Application.cpp index 468be10..9ad5f13 100644 --- a/SakuraCore/src/Application.cpp +++ b/SakuraCore/src/Application.cpp @@ -4,7 +4,7 @@ #include "Log.h" #include "SDL3/SDL_events.h" #include "SDL3/SDL_hints.h" -#include "SDL3/SDL_main.h" +#include "SDL3/SDL_init.h" #include "SDL3/SDL_render.h" #include "SDL3/SDL_stdinc.h" #include "SDL3/SDL_timer.h" @@ -15,15 +15,10 @@ #include #include -#define SDL_MAIN_HANDLED 1 - namespace SakuraVNE { Application *Application::s_Instance = nullptr; -Application::Application(const AppData &appdata) : m_Window(), m_Renderer(nullptr), m_Surface(nullptr), m_isRunning(false), m_AppData(appdata) { - SDL_SetMainReady(); - m_initResult = Init(); -} +Application::Application(const AppData &appdata) : m_Window(), m_Renderer(nullptr), m_Surface(nullptr), m_isRunning(false), m_AppData(appdata) { m_initResult = Init(); } Application::~Application() { Shutdown(); } bool Application::Init() {