remove source code support for SDL2

This commit is contained in:
Sasha Szpakowski
2024-10-18 20:22:26 -03:00
parent caca6196fc
commit 337d8fa048
38 changed files with 161 additions and 2419 deletions
-12
View File
@@ -27,11 +27,7 @@
#include <set>
#include <unordered_map>
#if __has_include(<SDL3/SDL.h>)
#include <SDL3/SDL.h>
#else
#include <SDL.h>
#endif
#include <jni.h>
#include <android/asset_manager.h>
@@ -44,14 +40,6 @@
#include "libraries/physfs/physfs.h"
#include "filesystem/physfs/PhysfsIo.h"
// Backward compatibility
#if !SDL_VERSION_ATLEAST(3, 0, 0)
#define SDL_GetAndroidJNIEnv SDL_AndroidGetJNIEnv
#define SDL_GetAndroidActivity SDL_AndroidGetActivity
#define SDL_GetAndroidInternalStoragePath SDL_AndroidGetInternalStoragePath
#define SDL_GetAndroidExternalStoragePath SDL_AndroidGetExternalStoragePath
#endif
namespace love
{
namespace android
-4
View File
@@ -123,10 +123,6 @@
# define LOVE_LEGENDARY_APP_ARGV_HACK
#endif
#if defined(LOVE_ANDROID) || defined(LOVE_IOS)
# define LOVE_LEGENDARY_ACCELEROMETER_AS_JOYSTICK_HACK
#endif
#if defined(LOVE_WINDOWS) || defined(LOVE_LINUX) || defined(LOVE_ANDROID)
# define LOVE_GRAPHICS_VULKAN
#endif
-6
View File
@@ -20,13 +20,7 @@
#include "delay.h"
#if __has_include(<SDL3/SDL_timer.h>)
#include <SDL3/SDL_timer.h>
#include <SDL3/SDL_version.h>
#else
#include <SDL_timer.h>
#include <SDL_version.h>
#endif
namespace love
{