mirror of
https://github.com/love2d/love.git
synced 2026-08-16 16:20:42 +02:00
Merge branch 'main' into 12.0-development
This commit is contained in:
@@ -867,10 +867,9 @@ void *getIOFromFD(int fd)
|
||||
|
||||
const char *getArg0()
|
||||
{
|
||||
static PHYSFS_AndroidInit androidInit = {
|
||||
SDL_AndroidGetJNIEnv(),
|
||||
SDL_AndroidGetActivity()
|
||||
};
|
||||
static PHYSFS_AndroidInit androidInit = {nullptr, nullptr};
|
||||
androidInit.jnienv = SDL_AndroidGetJNIEnv();
|
||||
androidInit.context = SDL_AndroidGetActivity();
|
||||
return (const char *) &androidInit;
|
||||
}
|
||||
|
||||
|
||||
+3
-1
@@ -102,7 +102,7 @@
|
||||
#endif
|
||||
|
||||
// DLL-stuff.
|
||||
#if defined(_MSC_VER)
|
||||
#if defined(_MSC_VER) || defined(__MINGW32__)
|
||||
# define LOVE_EXPORT __declspec(dllexport)
|
||||
#elif defined(__GNUC__) || defined(__clang__)
|
||||
# define LOVE_EXPORT __attribute__((visibility("default")))
|
||||
@@ -114,8 +114,10 @@
|
||||
#ifndef LOVE_WINDOWS_UWP
|
||||
# define LOVE_LEGENDARY_CONSOLE_IO_HACK
|
||||
#endif // LOVE_WINDOWS_UWP
|
||||
#ifndef __MINGW32__
|
||||
# define NOMINMAX
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if defined(LOVE_MACOS) || defined(LOVE_IOS)
|
||||
# define LOVE_LEGENDARY_APP_ARGV_HACK
|
||||
|
||||
@@ -149,6 +149,8 @@ static NSArray *getLovesInDocuments()
|
||||
[paths addObject:path.stringByDeletingLastPathComponent];
|
||||
}
|
||||
|
||||
[paths sortUsingSelector:@selector(localizedCaseInsensitiveCompare:)];
|
||||
|
||||
return paths;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user