diff --git a/CMakeLists.txt b/CMakeLists.txt index a67f210e6..5ef0f77eb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2350,8 +2350,8 @@ elseif(HAIKU) set(HAVE_SDL_LOCALE TRUE) endif() - file(GLOB MAIN_SOURCES ${SDL3_SOURCE_DIR}/src/main/haiku/*.cc) - list(APPEND SOURCE_FILES ${MAIN_SOURCES}) + file(GLOB HAIKU_CORE_SOURCES ${SDL3_SOURCE_DIR}/src/core/haiku/*.cc) + list(APPEND SOURCE_FILES ${HAIKU_CORE_SOURCES}) CheckPTHREAD() list(APPEND EXTRA_LIBS root be media game device textencoding) diff --git a/include/SDL3/SDL_main_impl.h b/include/SDL3/SDL_main_impl.h index b3c056de6..9c0b9c37b 100644 --- a/include/SDL3/SDL_main_impl.h +++ b/include/SDL3/SDL_main_impl.h @@ -169,8 +169,6 @@ TInt E32Main() /* end of __NGAGE__ impl */ -/* TODO: remaining platforms */ - #else /* platforms that use a standard main() and just call SDL_RunApp(), like iOS and 3DS */ #include diff --git a/src/audio/haiku/SDL_haikuaudio.cc b/src/audio/haiku/SDL_haikuaudio.cc index 0ebacd322..5440e6c3a 100644 --- a/src/audio/haiku/SDL_haikuaudio.cc +++ b/src/audio/haiku/SDL_haikuaudio.cc @@ -27,7 +27,7 @@ #include #include -#include "../../main/haiku/SDL_BeApp.h" +#include "../../core/haiku/SDL_BeApp.h" extern "C" { diff --git a/src/main/haiku/SDL_BApp.h b/src/core/haiku/SDL_BApp.h similarity index 100% rename from src/main/haiku/SDL_BApp.h rename to src/core/haiku/SDL_BApp.h diff --git a/src/main/haiku/SDL_BeApp.cc b/src/core/haiku/SDL_BeApp.cc similarity index 100% rename from src/main/haiku/SDL_BeApp.cc rename to src/core/haiku/SDL_BeApp.cc diff --git a/src/main/haiku/SDL_BeApp.h b/src/core/haiku/SDL_BeApp.h similarity index 100% rename from src/main/haiku/SDL_BeApp.h rename to src/core/haiku/SDL_BeApp.h diff --git a/src/video/haiku/SDL_BWin.h b/src/video/haiku/SDL_BWin.h index 55df3c3db..011936f38 100644 --- a/src/video/haiku/SDL_BWin.h +++ b/src/video/haiku/SDL_BWin.h @@ -42,7 +42,7 @@ extern "C" { #if SDL_VIDEO_OPENGL #include #endif -#include "../../main/haiku/SDL_BApp.h" +#include "../../core/haiku/SDL_BApp.h" enum WinCommands { diff --git a/src/video/haiku/SDL_bframebuffer.cc b/src/video/haiku/SDL_bframebuffer.cc index 30e026efc..5e04f5eec 100644 --- a/src/video/haiku/SDL_bframebuffer.cc +++ b/src/video/haiku/SDL_bframebuffer.cc @@ -29,7 +29,7 @@ #include "SDL_bmodes.h" #include "SDL_BWin.h" -#include "../../main/haiku/SDL_BApp.h" +#include "../../core/haiku/SDL_BApp.h" #ifdef __cplusplus extern "C" { diff --git a/src/video/haiku/SDL_bmessagebox.cc b/src/video/haiku/SDL_bmessagebox.cc index e7b5f9314..2d675fea2 100644 --- a/src/video/haiku/SDL_bmessagebox.cc +++ b/src/video/haiku/SDL_bmessagebox.cc @@ -26,7 +26,7 @@ /* For application signature. */ -#include "../../main/haiku/SDL_BeApp.h" +#include "../../core/haiku/SDL_BeApp.h" #include #include diff --git a/src/video/haiku/SDL_bmodes.cc b/src/video/haiku/SDL_bmodes.cc index 47b2c5233..27c057f97 100644 --- a/src/video/haiku/SDL_bmodes.cc +++ b/src/video/haiku/SDL_bmodes.cc @@ -31,7 +31,7 @@ #include "SDL_bopengl.h" #endif -#include "../../main/haiku/SDL_BApp.h" +#include "../../core/haiku/SDL_BApp.h" #ifdef __cplusplus extern "C" { diff --git a/src/video/haiku/SDL_bopengl.cc b/src/video/haiku/SDL_bopengl.cc index e373a1c24..ebf1b696d 100644 --- a/src/video/haiku/SDL_bopengl.cc +++ b/src/video/haiku/SDL_bopengl.cc @@ -28,7 +28,7 @@ #include #include #include "SDL_BWin.h" -#include "../../main/haiku/SDL_BApp.h" +#include "../../core/haiku/SDL_BApp.h" #ifdef __cplusplus extern "C" { diff --git a/src/video/haiku/SDL_bvideo.cc b/src/video/haiku/SDL_bvideo.cc index c03bec793..3d29e7455 100644 --- a/src/video/haiku/SDL_bvideo.cc +++ b/src/video/haiku/SDL_bvideo.cc @@ -20,7 +20,7 @@ */ #include "SDL_internal.h" -#include "../../main/haiku/SDL_BApp.h" +#include "../../core/haiku/SDL_BApp.h" #if SDL_VIDEO_DRIVER_HAIKU diff --git a/src/video/haiku/SDL_bvideo.h b/src/video/haiku/SDL_bvideo.h index 94b86b02f..a81b3bb64 100644 --- a/src/video/haiku/SDL_bvideo.h +++ b/src/video/haiku/SDL_bvideo.h @@ -26,7 +26,7 @@ extern "C" { #endif -#include "../../main/haiku/SDL_BeApp.h" +#include "../../core/haiku/SDL_BeApp.h" #include "../SDL_sysvideo.h" extern void HAIKU_VideoQuit(_THIS);