mirror of
https://github.com/love2d/love.git
synced 2026-08-16 16:20:42 +02:00
Fixed most PhysFS deprecated call warnings on iOS/Android.
This commit is contained in:
@@ -22,6 +22,7 @@
|
||||
#define LOVE_FILESYSTEM_PHYSFS_FILE_H
|
||||
|
||||
// LOVE
|
||||
#include "common/config.h"
|
||||
#include "filesystem/File.h"
|
||||
|
||||
// PhysFS
|
||||
@@ -34,6 +35,12 @@
|
||||
// STD
|
||||
#include <string>
|
||||
|
||||
// These platforms always use PhysFS 2.1.
|
||||
#if (defined(LOVE_IOS) || defined(LOVE_ANDROID)) \
|
||||
&& (PHYSFS_VER_MAJOR == 2 && PHYSFS_VER_MINOR >= 1)
|
||||
#define LOVE_USE_PHYSFS_2_1
|
||||
#endif
|
||||
|
||||
namespace love
|
||||
{
|
||||
namespace filesystem
|
||||
|
||||
Reference in New Issue
Block a user