mirror of
https://github.com/love2d/love.git
synced 2026-08-15 15:51:12 +02:00
remove source code support for SDL2
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user